From d21f10ecf7ac3e093a8a60e59f14da6fd15ec652 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 5 Apr 2024 05:35:57 -0500 Subject: [PATCH] Add suffix to toybox-prereq build. --- scripts/prereq/build.sh | 2 +- scripts/recreate-prereq.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/prereq/build.sh b/scripts/prereq/build.sh index 4c88dbab..0a5f8621 100755 --- a/scripts/prereq/build.sh +++ b/scripts/prereq/build.sh @@ -12,4 +12,4 @@ toys/posix/sed.c toys/posix/sort.c toys/posix/tail.c toys/posix/tee.c toys/posix/uname.c toys/posix/wc.c toys/posix/xargs.c " -$BUILD lib/*.c $FILES $LINK -o toybox +$BUILD lib/*.c $FILES $LINK -o toybox-prereq diff --git a/scripts/recreate-prereq.sh b/scripts/recreate-prereq.sh index 328290ef..4e0db113 100755 --- a/scripts/recreate-prereq.sh +++ b/scripts/recreate-prereq.sh @@ -24,10 +24,11 @@ cat > scripts/prereq/build.sh << 'EOF' BUILD='cc -funsigned-char -I scripts/prereq -I . -Os -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables -fno-strict-aliasing -DTOYBOX_VERSION=""' LINK='' EOF +grep -A999 FILES= generated/build.sh >> scripts/prereq/build.sh +sed -i 's/ toybox$/&-prereq/' scripts/prereq/build.sh # harvest stripped down headers -grep -A999 FILES= generated/build.sh >> scripts/prereq/build.sh echo > scripts/prereq/generated/tags.h sed 's/.*/#define HELP_& ""/' <<<"$CMDLIST" > scripts/prereq/generated/help.h egrep "($(xargs <<<"$CMDLIST"|tr ' [:lower:]' '|[:upper:]'))" \ -- 2.39.2