Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: Ieb0202f4357b849cce5f2459fbe1c5088e989644
- Loading branch information
Showing
8 changed files
with
127 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright (C) 2014 The CyanogenMod Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Inherit from those products. Most specific first. | ||
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) | ||
|
||
# Inherit from bacon device | ||
$(call inherit-product, device/fairphone_devices/FP2/FP2.mk) | ||
|
||
# Inherit some common CM stuff. | ||
$(call inherit-product, vendor/cm/config/common_full_phone.mk) | ||
|
||
PRODUCT_MODEL := FP2 | ||
|
||
PRODUCT_NAME := cm_FP2 | ||
PRODUCT_DEVICE := FP2 | ||
PRODUCT_BRAND := Fairphone | ||
PRODUCT_MANUFACTURER := Fairphone | ||
PRODUCT_PROPERTY_OVERRIDES += \ | ||
ro.com.google.clientidbase=android-fairphone | ||
|
||
TARGET_VENDOR := Fairphone | ||
TARGET_VENDOR_PRODUCT_NAME := FP2 | ||
TARGET_VENDOR_DEVICE_NAME := FP2 | ||
PRODUCT_BUILD_PROP_OVERRIDES += TARGET_DEVICE=FP2 PRODUCT_NAME=FP2 | ||
|
||
## Use the latest approved GMS identifiers unless running a signed build | ||
ifneq ($(SIGN_BUILD),true) | ||
PRODUCT_BUILD_PROP_OVERRIDES += \ | ||
PRIVATE_BUILD_DESC="f2p-user 5.1.1 LMY48B YOG4PAS1N0 release-keys" | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
CM_DTB_FILES = $(wildcard $(TOP)/$(TARGET_KERNEL_SOURCE)/arch/arm/boot/*.dtb) | ||
CM_DTS_FILE = $(lastword $(subst /, ,$(1))) | ||
DTB_FILE := $(addprefix $(KERNEL_OUT)/arch/arm/boot/,$(patsubst %.dts,%.dtb,$(call CM_DTS_FILE,$(1)))) | ||
ZIMG_FILE = $(addprefix $(KERNEL_OUT)/arch/arm/boot/,$(patsubst %.dts,%-zImage,$(call CM_DTS_FILE,$(1)))) | ||
KERNEL_ZIMG = $(KERNEL_OUT)/arch/arm/boot/zImage | ||
|
||
define append-cm-dtb | ||
mkdir -p $(KERNEL_OUT)/arch/arm/boot;\ | ||
$(foreach d, $(CM_DTB_FILES), \ | ||
cat $(KERNEL_ZIMG) $(call DTB_FILE,$(d)) > $(call ZIMG_FILE,$(d));) | ||
endef | ||
|
||
|
||
## Build and run dtbtool | ||
DTBTOOL := $(HOST_OUT_EXECUTABLES)/dtbToolCM$(HOST_EXECUTABLE_SUFFIX) | ||
INSTALLED_DTIMAGE_TARGET := $(PRODUCT_OUT)/dt.img | ||
|
||
$(INSTALLED_DTIMAGE_TARGET): $(DTBTOOL) $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr $(INSTALLED_KERNEL_TARGET) | ||
@echo -e ${CL_CYN}"Start DT image: $@"${CL_RST} | ||
$(call append-cm-dtb) | ||
$(call pretty,"Target dt image: $(INSTALLED_DTIMAGE_TARGET)") | ||
$(DTBTOOL) -2 -o $(INSTALLED_DTIMAGE_TARGET) -s $(BOARD_KERNEL_PAGESIZE) -p $(KERNEL_OUT)/scripts/dtc/ $(KERNEL_OUT)/arch/arm/boot/ | ||
@echo -e ${CL_CYN}"Made DT image: $@"${CL_RST} | ||
|
||
|
||
## Overload bootimg generation: Same as the original, + --dt arg | ||
$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(INSTALLED_DTIMAGE_TARGET) | ||
$(call pretty,"Target boot image: $@") | ||
$(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) $(INTERNAL_BOOTIMAGE_ARGS_COMMON) $(BOARD_MKBOOTIMG_ARGS) --dt $(INSTALLED_DTIMAGE_TARGET) --output $@ | ||
$(hide) $(call assert-max-image-size,$@,$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw) | ||
@echo -e ${CL_CYN}"Made boot image: $@"${CL_RST} | ||
|
||
## Overload recoveryimg generation: Same as the original, + --dt arg | ||
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) $(INSTALLED_DTIMAGE_TARGET) \ | ||
$(recovery_ramdisk) \ | ||
$(recovery_kernel) | ||
@echo -e ${CL_CYN}"----- Making recovery image ------"${CL_RST} | ||
$(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --dt $(INSTALLED_DTIMAGE_TARGET) --output $@ | ||
$(hide) $(call assert-max-image-size,$@,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw) | ||
@echo -e ${CL_CYN}"Made recovery image: $@"${CL_RST} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,4 +143,3 @@ audio.offload.gapless.enabled=false | |
|
||
#enable dsds | ||
persist.radio.multisim.config=dsds | ||
ro.adb.secure=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
add_lunch_combo cm_FP2-user | ||
add_lunch_combo cm_FP2-userdebug | ||
add_lunch_combo cm_FP2-eng |