aboutsummaryrefslogtreecommitdiffstats
path: root/sub/busybox
diff options
context:
space:
mode:
Diffstat (limited to 'sub/busybox')
-rw-r--r--sub/busybox/Makefile4
-rw-r--r--sub/busybox/host-full-config2
2 files changed, 5 insertions, 1 deletions
diff --git a/sub/busybox/Makefile b/sub/busybox/Makefile
index d516be0..8422f5e 100644
--- a/sub/busybox/Makefile
+++ b/sub/busybox/Makefile
@@ -25,7 +25,11 @@ $(OUTPUT)/build-host/.lh_bb_copied: $(OUTPUT)/sources/.lh_bb_dled | $(OUTPUT)/bu
exec setuidgid $(NORMALUSER) s6-touch $@
$(OUTPUT)/build-host/busybox-$(BUSYBOX_VERSION)/.config: $(OUTPUT)/build-host/.lh_bb_copied sub/busybox/host-full-config | $(OUTPUT)/build-build/.lh_skarnet_installed $(OUTPUT)/tmp/.lh_prepared
+ifeq ($(BUILD_HOST_STATIC),true)
+ exec setuidgid $(NORMALUSER) sed -e "s/# CONFIG_STATIC is not set/CONFIG_STATIC=y/" $(WD)/sub/busybox/host-full-config $@
+else
exec setuidgid $(NORMALUSER) cp -f $(WD)/sub/busybox/host-full-config $@
+endif
$(OUTPUT)/build-host/.lh_bb_built: $(OUTPUT)/build-host/busybox-$(BUSYBOX_VERSION)/.config | $(OUTPUT)/build-build/.lh_skarnet_installed
exec setuidgid $(NORMALUSER) cd $(OUTPUT)/build-host/busybox-$(BUSYBOX_VERSION) $(MAKE) -j1 busybox install CROSS_COMPILE=$(TRIPLE)- CC="$(BUILD_HOST_CC)" HOSTCC="$(BUILD_BUILD_CC)"
diff --git a/sub/busybox/host-full-config b/sub/busybox/host-full-config
index 74b2ba6..2f2e04c 100644
--- a/sub/busybox/host-full-config
+++ b/sub/busybox/host-full-config
@@ -41,7 +41,7 @@ CONFIG_PLATFORM_LINUX=y
#
# Build Options
#
-CONFIG_STATIC=y
+# CONFIG_STATIC is not set
# CONFIG_PIE is not set
# CONFIG_NOMMU is not set
# CONFIG_BUILD_LIBBUSYBOX is not set