diff --git a/scripts/generate-vendor.sh b/scripts/generate-vendor.sh index b7c96a56..97466d01 100755 --- a/scripts/generate-vendor.sh +++ b/scripts/generate-vendor.sh @@ -1215,7 +1215,8 @@ update_vendor_blobs_mk "$BLOBS_LIST" # Generate device-vendor.mk makefile (will be updated later) echo "[*] Generating '$(basename "$DEVICE_VENDOR_MK")'" -echo -e "\$(call inherit-product, vendor/$VENDOR_DIR/$DEVICE/$DEVICE-vendor-blobs.mk)\n" >> "$DEVICE_VENDOR_MK" +echo -e "VENDOR_DEVICE := \$(TARGET_PRODUCT:aosp_%=%)" >> "$DEVICE_VENDOR_MK" +echo -e "\$(call inherit-product, vendor/$VENDOR_DIR/\$(VENDOR_DEVICE)/\$(VENDOR_DEVICE)-vendor-blobs.mk)\n" >> "$DEVICE_VENDOR_MK" # Append items listed in device vendor configuration file {