hikey960/hikey: Re-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
Previously this patch was reverted, as there would be build
errors when the vendor pacakge was missing.
This patch re-applies the earlier change, with some additional
fixes to ensure we don't see build trouble when the package is
missing.
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: I53ec5516d91391c0d3f18c801e730eff150076af
diff --git a/Android.mk b/Android.mk
index 41d191f..179188a 100644
--- a/Android.mk
+++ b/Android.mk
@@ -24,6 +24,19 @@
LOCAL_PATH := $(call my-dir)
+
+ifeq (,$(wildcard $(LINARO_VENDOR_PATH)/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/version.mk))
+droidcore: $(PRODUCT_OUT)/missing_vendor_package
+$(PRODUCT_OUT)/missing_vendor_package:
+ echo
+ echo "Missing Linaro Vendor Package!"
+ echo "Please download new binaries here:"
+ echo " $(VND_PKG_URL)"
+ echo "And extract in the ANDROID_TOP_DIR"
+ echo
+ false
+endif
+
$(eval $(call declare-1p-copy-files,device/linaro/hikey,.conf))
$(eval $(call declare-1p-copy-files,device/linaro/hikey,.img))
$(eval $(call declare-1p-copy-files,device/linaro/hikey,.kl))