From 3d1e865abeb97da96e652109e7d32b460911f34a Mon Sep 17 00:00:00 2001 From: Mohd Faraz Date: Sun, 2 Oct 2022 09:48:52 +0200 Subject: [PATCH] extract-utils: Fix for `sh_binary` * srcs, prefer isn't available in sh_binary Change-Id: I5f94432748aba4a417520ba850b7a9c4d7dddbe7 Signed-off-by: Mohd Faraz --- extract_utils.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extract_utils.sh b/extract_utils.sh index 428b597..cc80d22 100644 --- a/extract_utils.sh +++ b/extract_utils.sh @@ -527,12 +527,15 @@ function write_blueprint_packages() { fi printf '\tname: "%s",\n' "$PKGNAME" printf '\towner: "%s",\n' "$VENDOR" - printf '\tsrcs: ["%s/bin/%s"],\n' "$SRC" "$FILE" if [ "$EXTENSION" != "sh" ]; then + printf '\tsrcs: ["%s/bin/%s"],\n' "$SRC" "$FILE" printf '\tcheck_elf_files: false,\n' printf '\tstrip: {\n' printf '\t\tnone: true,\n' printf '\t},\n' + printf '\tprefer: true,\n' + else + printf '\tsrc: "%s/bin/%s",\n' "$SRC" "$FILE" fi unset EXTENSION else @@ -553,7 +556,7 @@ function write_blueprint_packages() { printf '\tsub_dir: "%s",\n' "$DIRNAME" fi fi - if [ "$CLASS" = "SHARED_LIBRARIES" ] || [ "$CLASS" = "EXECUTABLES" ] ; then + if [ "$CLASS" = "SHARED_LIBRARIES" ]; then printf '\tprefer: true,\n' fi if [ "$EXTRA" = "priv-app" ]; then