From 7390f29cfc9a3cc0636e20f84f24fbd05f821720 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 30 Oct 2022 08:25:45 +0000 Subject: 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) --- scripts/embedded_scripts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/embedded_scripts') 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() { done } +( exec >"$target.$$" if [ $n -ne 0 ] @@ -127,5 +128,6 @@ then -e 's/$/ \\/' printf '\n' fi +) mv -- "$target.$$" "$target" -- cgit v1.2.3-55-g6feb