summaryrefslogtreecommitdiff
path: root/device-common.mk
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2022-02-02 04:37:53 +0000
committerJohn Stultz <john.stultz@linaro.org>2022-02-15 03:20:58 +0000
commitaf6e3c040223f3dfa5ac3e8b684b16a37d9a078c (patch)
tree9fcd985667c812af50791c7d6dfbe6813d5d245d /device-common.mk
parentde8954df2e8a82fb0465583d4692ab1db26adde6 (diff)
downloadhikey-af6e3c040223f3dfa5ac3e8b684b16a37d9a078c.tar.gz
hikey960/hikey: Transition to using to vendor-package
Moves the bootloader objects, and mali libraries to the vendor package and adds the support files, tweaking the flash-all.sh script Will use the vendor-package located here: https://releases.linaro.org/android/aosp-linaro-vendor-package/extract-linaro_devices-20220210.tgz Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I5e22c28c6f2c9ce3a7ec42e72411192dfbb6b312
Diffstat (limited to 'device-common.mk')
-rw-r--r--device-common.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/device-common.mk b/device-common.mk
index 6d047521..90695957 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -17,6 +17,31 @@
# Enable updating of APEXes
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
+# Check vendor package version
+# If you need to make changes to the vendor partition,
+# please modify the source git project here:
+# https://staging-git.codelinaro.org/linaro/linaro-aosp/aosp-linaro-vendor-package
+include $(LOCAL_PATH)/vendor-package-ver.mk
+ifneq (,$(wildcard $(LINARO_VENDOR_PATH)/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/version.mk))
+ # Unfortunately inherit-product doesn't export build variables from the
+ # called make file to the caller, so we have to include it directly here.
+ include $(LINARO_VENDOR_PATH)/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/version.mk
+ ifneq ($(TARGET_LINARO_VENDOR_VERSION), $(EXPECTED_LINARO_VENDOR_VERSION))
+ $(warning TARGET_LINARO_VENDOR_VERSION ($(TARGET_LINARO_VENDOR_VERSION)) does not match exiting the build ($(EXPECTED_LINARO_VENDOR_VERSION)).)
+ $(warning Please download new binaries here:)
+ $(warning $(VND_PKG_URL) )
+ $(warning And extract in the ANDROID_TOP_DIR)
+ # Would be good to error out here, but that causes other issues
+ endif
+else
+ $(warning Missing Linaro Vendor Package!)
+ $(warning Please download new binaries here:)
+ $(warning $(VND_PKG_URL) )
+ $(warning And extract in the ANDROID_TOP_DIR)
+ # Would be good to error out here, but that causes other issues
+endif
+
+$(warning, EXPECTED_LINARO_VENDOR_VERSION=$(EXPECTED_LINARO_VENDOR_VERSION))
ifneq (,$(filter $(TARGET_PRODUCT),hikey960_tv hikey_tv))
# Setup TV Build