summaryrefslogtreecommitdiff
path: root/device-common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'device-common.mk')
-rw-r--r--device-common.mk25
1 files changed, 23 insertions, 2 deletions
diff --git a/device-common.mk b/device-common.mk
index 6d047521..0e498f46 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -17,6 +17,28 @@
# 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)
+ 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)
+endif
+$(warning EXPECTED_LINARO_VENDOR_VERSION=$(EXPECTED_LINARO_VENDOR_VERSION))
ifneq (,$(filter $(TARGET_PRODUCT),hikey960_tv hikey_tv))
# Setup TV Build
@@ -69,8 +91,7 @@ PRODUCT_PROPERTY_OVERRIDES += wifi.interface=wlan0 \
PRODUCT_RUNTIMES := runtime_libart_default
# Build default bluetooth a2dp and usb audio HALs
-PRODUCT_PACKAGES += audio.a2dp.default \
- audio.bluetooth.default \
+PRODUCT_PACKAGES += audio.bluetooth.default \
audio.usb.default \
audio.r_submix.default \
tinyplay