diff options
Diffstat (limited to 'sub/busybox/Makefile')
-rw-r--r-- | sub/busybox/Makefile | 4 |
1 files changed, 4 insertions, 0 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)" |