From 8b55b6865a34449a4195a3a76e6b0a77c8f80018 Mon Sep 17 00:00:00 2001 From: Shareef Ali Date: Tue, 1 Oct 2019 10:28:07 -0400 Subject: [PATCH] Fix ophan bytecode in product partition I notice files weren't being included because it thought it was an orphan bytcode in /product --- scripts/generate-vendor.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/generate-vendor.sh b/scripts/generate-vendor.sh index 528080ef..61c04de8 100755 --- a/scripts/generate-vendor.sh +++ b/scripts/generate-vendor.sh @@ -660,6 +660,10 @@ gen_mk_for_bytecode() { origin="$inDir/system/$relSubRoot" lcMPath="\$(PRODUCT_OUT)/\$(TARGET_COPY_OUT_SYSTEM)/$relSubRoot" dsoRootBase="/system" + elif [[ "$relRoot" == "product" ]]; then + origin="$inDir/product/$relSubRoot" + lcMPath="\$(PRODUCT_OUT)/\$(TARGET_COPY_OUT_PRODUCT)/$relSubRoot" + dsoRootBase="/product" else echo "[-] Invalid '$relRoot' relative directory" abort 1 @@ -1037,7 +1041,7 @@ gen_android_mk() { echo "include vendor/$VENDOR_DIR/$DEVICE/AndroidBoardVendor.mk" } >> "$ANDROID_MK" - for root in "vendor" "proprietary" + for root in "vendor" "proprietary" "product" do for path in "${SUBDIRS_WITH_BC[@]}" do