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
diff --git a/hikey960.mk b/hikey960.mk
index 521321b..0612447 100644
--- a/hikey960.mk
+++ b/hikey960.mk
@@ -12,6 +12,7 @@
#
# Inherit the full_base and device configurations
+$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, device/linaro/hikey/hikey960/device-hikey960.mk)
$(call inherit-product, device/linaro/hikey/device-common.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)