diff options
author | Anton Hansson <hansson@google.com> | 2018-02-08 14:57:45 +0000 |
---|---|---|
committer | Anton Hansson <hansson@google.com> | 2018-02-12 11:42:14 +0000 |
commit | 1399b12aaa602ccd4cb97c366c4ea3fe05f5a3be (patch) | |
tree | fc845655d5e952713ea95f28adcdb8413eae37d4 /hikey.mk | |
parent | 8ba551fd28ec2ece48c7685ca8d8fb92f2586239 (diff) | |
download | hikey-1399b12aaa602ccd4cb97c366c4ea3fe05f5a3be.tar.gz |
Add a 64 bit only product for hikey.
Also restructure some of the current make files:
- make a hikey-common.mk instead of importing hikey.mk and overriding
- don't set ro.zygote etc directly, import the helper makefiles instead
This new product avoids building all the 32 bit native executables and
libraries that gets built for the 'hikey' product. Sample benefits:
- makes the build faster
- saves ram and cpu, because there is no 32 bit zygote created
- frees up space on the system partition
Test: lunch hikey && m -j
Test: lunch hikey32 && m -j
Test: lunch hikey64_only && m -j
Bug: 72810053
Change-Id: I0d40b1c1c4e763b14258df7034921e0a3dc12208
Diffstat (limited to 'hikey.mk')
-rw-r--r-- | hikey.mk | 37 |
1 files changed, 2 insertions, 35 deletions
@@ -1,39 +1,6 @@ -ifndef TARGET_KERNEL_USE -TARGET_KERNEL_USE=4.9 -endif +$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) +$(call inherit-product, device/linaro/hikey/hikey-common.mk) -ifndef TARGET_COMPRESSED_KERNEL -TARGET_COMPRESSED_KERNEL=false -endif - -ifeq ($(TARGET_COMPRESSED_KERNEL), false) -TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image-dtb-$(TARGET_KERNEL_USE) -else -TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image.gz-dtb-$(TARGET_KERNEL_USE) -endif - -TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hi6220-hikey.dtb-$(TARGET_KERNEL_USE) - -ifeq ($(TARGET_KERNEL_USE), 3.18) - TARGET_FSTAB := fstab.hikey-$(TARGET_KERNEL_USE) - HIKEY_USE_LEGACY_TI_BLUETOOTH := true -else - ifeq ($(TARGET_KERNEL_USE), 4.4) - HIKEY_USE_LEGACY_TI_BLUETOOTH := true - else - HIKEY_USE_LEGACY_TI_BLUETOOTH := false - endif - TARGET_FSTAB := fstab.hikey -endif - -# -# Inherit the full_base and device configurations -$(call inherit-product, device/linaro/hikey/hikey/device-hikey.mk) -$(call inherit-product, device/linaro/hikey/device-common.mk) -$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) - -# -# Overrides PRODUCT_NAME := hikey PRODUCT_DEVICE := hikey PRODUCT_BRAND := Android |