summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Weiss <luca@z3ntu.xyz>2022-09-27 14:52:41 +0200
committerLuca Weiss <luca@z3ntu.xyz>2022-09-27 14:52:41 +0200
commit04563775b3d60a6645da3382ffa5ea38b76bae9a (patch)
treebe0c1a3847216b80a0dfb584d370a1a9e64bce93
parent929c9b99ec92d7b81817173afa42b346c25c8bdc (diff)
extract_utils: fix generating system/bin & system/etc blueprint
Previously the wrong variables were checked to see if the prefix matches, so e.g. no cc_prebuilt_binary were generated for those binaries. Change-Id: I744c6f6a4584921a26547478ac14a160c56e07b7
-rw-r--r--extract_utils.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/extract_utils.sh b/extract_utils.sh
index 6297411..ff64af3 100644
--- a/extract_utils.sh
+++ b/extract_utils.sh
@@ -782,7 +782,7 @@ function write_product_packages() {
write_blueprint_packages "ETC" "" "" "ETC" >> "$ANDROIDBP"
fi
local S_ETC=( $(prefix_match "system/etc/") )
- if [ "${#ETC[@]}" -gt "0" ]; then
+ if [ "${#S_ETC[@]}" -gt "0" ]; then
write_blueprint_packages "ETC" "system" "" "S_ETC" >> "$ANDROIDBP"
fi
local V_ETC=( $(prefix_match "vendor/etc/") )
@@ -808,7 +808,7 @@ function write_product_packages() {
write_blueprint_packages "EXECUTABLES" "" "" "BIN" >> "$ANDROIDBP"
fi
local S_BIN=( $(prefix_match "system/bin/") )
- if [ "${#BIN[@]}" -gt "0" ]; then
+ if [ "${#S_BIN[@]}" -gt "0" ]; then
write_blueprint_packages "EXECUTABLES" "system" "" "S_BIN" >> "$ANDROIDBP"
fi
local V_BIN=( $(prefix_match "vendor/bin/") )