Commit 7829b7cb authored by peturbg's avatar peturbg
Browse files

core: include vendor_buildinfo.sh when TARGET_COPY_OUT_VENDOR=system When...

core: include vendor_buildinfo.sh when TARGET_COPY_OUT_VENDOR=system  When TARGET_COPY_OUT_VENDOR=system the props from vendor_buildinfo.sh need to be included in the system build.prop.  Change-Id: I53587c341b500439fde07d91795b051132c7a65b
parent 5359bad4
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
 core/Makefile
@@ -441,6 +441,16 @@ endif
	        TARGET_CPU_ABI2="$(TARGET_CPU_ABI2)" \
			$(PRODUCT_BUILD_PROP_OVERRIDES) \
	        bash $(BUILDINFO_SH) >> $@
+ifeq ($(TARGET_COPY_OUT_VENDOR),system)
+	$(hide) TARGET_DEVICE="$(TARGET_DEVICE)" \
+			PRODUCT_NAME="$(TARGET_PRODUCT)" \
+			PRODUCT_BRAND="$(PRODUCT_BRAND)" \
+			PRODUCT_MODEL="$(PRODUCT_MODEL)" \
+			PRODUCT_MANUFACTURER="$(PRODUCT_MANUFACTURER)" \
+			TARGET_BOOTLOADER_BOARD_NAME="$(TARGET_BOOTLOADER_BOARD_NAME)" \
+			TARGET_BOARD_PLATFORM="$(TARGET_BOARD_PLATFORM)" \
+	        bash $(VENDOR_BUILDINFO_SH) >> $@
+endif
	$(hide) $(foreach file,$(system_prop_file), \
	    if [ -f "$(file)" ]; then \
	        echo Target buildinfo from: "$(file)"; \
	        
	        
	        
	        https://github.com/DU-X/android_build/commit/fe9651d0c3673a8d1647274e242edc499f27af7d
 No newline at end of file