commit 6d82ae0f70fc61dbd592e4d721757c662358e4ac parent e462dbfb83041c01a8061d43e81819487a3e5da4 Author: Szymon Mikulicz <szymon.mikulicz@posteo.net> Date: Fri, 3 Jul 2026 02:22:13 +0200 config instaed of sed Diffstat:
| M | Makefile | | | 13 | +++++++------ |
| A | config | | | 2 | ++ |
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile @@ -52,9 +52,8 @@ $(CC): .deps/busybox-$(BB_VER)/.config: .deps/busybox-$(BB_VER)/Config.in $(CC) $(info MK $@) - @make -C .deps/busybox-$(BB_VER) defconfig HOSTCFLAGS+="-static" HOSTLDFLAGS+="-static" EXTRA_LDFLAGS="-static" - @sed "s/# CONFIG_STATIC is not set/CONFIG_STATIC=y/" $@ > $@.tmp && mv $@.tmp $@ - @sed "s/# CONFIG_FEATURE_SH_STANDALONE is not set/CONFIG_FEATURE_SH_STANDALONE=y/" $@ > $@.tmp && mv $@.tmp $@ + @cp config $@ + @yes "" | make -C .deps/busybox-$(BB_VER) oldconfig HOSTCFLAGS+="-static" HOSTLDFLAGS+="-static" EXTRA_LDFLAGS="-static" .deps/busybox-$(BB_VER)/busybox: .deps/busybox-$(BB_VER)/.config $(CC) $(info MK $@) @@ -92,9 +91,11 @@ test: test/stabbish_plain test/stabbish_bzip2 test/stabbish_gzip test/stabbish_x .PHONY: clean: - rm -rf *.inc.* main.o stabbish test features.h + $(info CLEAN .) + @rm -rf *.inc.* main.o stabbish test features.h .PHONY: cleanall: clean - make -C .deps/busybox-$(BB_VER) clean - rm .deps/busybox-$(BB_VER)/.config + $(info CLEAN .deps/busybox-$(BB_VER)) + @make -C .deps/busybox-$(BB_VER) clean + @rm -f .deps/busybox-$(BB_VER)/.config diff --git a/config b/config @@ -0,0 +1,2 @@ +CONFIG_STATIC=y +CONFIG_FEATURE_SH_STANDALONE=y