diff options
author | Ron Yorston <rmy@pobox.com> | 2022-10-30 08:25:45 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2022-10-30 08:25:45 +0000 |
commit | 7390f29cfc9a3cc0636e20f84f24fbd05f821720 (patch) | |
tree | ee040facd1f276cb5daf733092f137527c75630f /scripts/embedded_scripts | |
parent | d71cb67ff91762ae78e87440b87d7c9a160b2937 (diff) | |
download | busybox-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 'scripts/embedded_scripts')
-rwxr-xr-x | scripts/embedded_scripts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/embedded_scripts b/scripts/embedded_scripts index 205ac591a..8407c1f78 100755 --- a/scripts/embedded_scripts +++ b/scripts/embedded_scripts | |||
@@ -90,6 +90,7 @@ concatenate_scripts() { | |||
90 | done | 90 | done |
91 | } | 91 | } |
92 | 92 | ||
93 | ( | ||
93 | exec >"$target.$$" | 94 | exec >"$target.$$" |
94 | 95 | ||
95 | if [ $n -ne 0 ] | 96 | if [ $n -ne 0 ] |
@@ -127,5 +128,6 @@ then | |||
127 | -e 's/$/ \\/' | 128 | -e 's/$/ \\/' |
128 | printf '\n' | 129 | printf '\n' |
129 | fi | 130 | fi |
131 | ) | ||
130 | 132 | ||
131 | mv -- "$target.$$" "$target" | 133 | mv -- "$target.$$" "$target" |