aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2024-04-05 05:35:57 -0500
committerRob Landley <rob@landley.net>2024-04-05 05:35:57 -0500
commitd21f10ecf7ac3e093a8a60e59f14da6fd15ec652 (patch)
treea8c2fd92b01fd7ac59d6a72f4222a1a0162e88b2
parentb947b52b81a74bb81395f5e93751310048ae8886 (diff)
downloadtoybox-d21f10ecf7ac3e093a8a60e59f14da6fd15ec652.tar.gz
Add suffix to toybox-prereq build.
-rwxr-xr-xscripts/prereq/build.sh2
-rwxr-xr-xscripts/recreate-prereq.sh3
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:]'))" \