diff options
author | Mohd Faraz <androiabledroid@gmail.com> | 2022-10-02 09:48:52 +0200 |
---|---|---|
committer | Jan Altensen (Stricted) <info@stricted.net> | 2022-10-13 10:34:28 +0200 |
commit | 3d1e865abeb97da96e652109e7d32b460911f34a (patch) | |
tree | e13eaaa3fdb9a53fe290cf193f570ca4adac19de | |
parent | 23e4b57ec023fca831a89aa759cff1c32ad9e510 (diff) |
extract-utils: Fix for `sh_binary`
* srcs, prefer isn't available in sh_binary
Change-Id: I5f94432748aba4a417520ba850b7a9c4d7dddbe7
Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
-rw-r--r-- | extract_utils.sh | 7 |
1 files 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 |