aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2022-10-30 08:25:45 +0000
committerRon Yorston <rmy@pobox.com>2022-10-30 08:25:45 +0000
commit7390f29cfc9a3cc0636e20f84f24fbd05f821720 (patch)
treeee040facd1f276cb5daf733092f137527c75630f /applets
parentd71cb67ff91762ae78e87440b87d7c9a160b2937 (diff)
downloadbusybox-w32-7390f29cfc9a3cc0636e20f84f24fbd05f821720.tar.gz
busybox-w32-7390f29cfc9a3cc0636e20f84f24fbd05f821720.tar.bz2
busybox-w32-7390f29cfc9a3cc0636e20f84f24fbd05f821720.zip
build system: allow building with w64devkit
Make some adjustments to the build system to allow busybox-w32 to be built with w64devkit: - Strip drive prefix from CURDIR in Makefile to avoid confusing make with colons. - Limit file redirection to a subshell in the usage_compressed and embedded_scripts scripts. Otherwise it isn't possible to move the open generated file on Windows. - Change the option tests in Kbuild.include to allow for /dev/null not existing on Windows. - Create host binaries without a '.exe' extension. Otherwise they're rebuilt more often than necessary. - Modify split-include.c to allow for Windows' popen() not expanding wildcards. (GitHub issue #239)
Diffstat (limited to 'applets')
-rwxr-xr-xapplets/usage_compressed2
1 files changed, 2 insertions, 0 deletions
diff --git a/applets/usage_compressed b/applets/usage_compressed
index 36fc2a007..94d70f33b 100755
--- a/applets/usage_compressed
+++ b/applets/usage_compressed
@@ -16,6 +16,7 @@ if test $? != 0; then
16 exit 1 16 exit 1
17fi 17fi
18 18
19(
19exec >"$target.$$" 20exec >"$target.$$"
20 21
21echo '#define UNPACKED_USAGE "" \' 22echo '#define UNPACKED_USAGE "" \'
@@ -58,5 +59,6 @@ echo '#define PACKED_USAGE \'
58 -e 's/\(...\)/0\1,/g' \ 59 -e 's/\(...\)/0\1,/g' \
59 -e 's/$/ \\/' 60 -e 's/$/ \\/'
60echo '' 61echo ''
62)
61 63
62mv -- "$target.$$" "$target" 64mv -- "$target.$$" "$target"