Do not include busybox if CONFIG_BUSYBOX is not set (issue #346)

This commit is contained in:
Trammell hudson 2018-03-08 11:41:28 -05:00
parent d9808f6659
commit dd8685c1be
No known key found for this signature in database
GPG Key ID: 687A5005935B1533

View File

@ -338,9 +338,11 @@ $(foreach m, $(modules-y), \
$(call map,initrd_lib_add,$(call libs,$m)) \
)
# hack to install busybox into the initrd
# hack to install busybox into the initrd if busybox is configured
ifeq "$(CONFIG_BUSYBOX)" "y"
$(build)/$(BOARD)/heads.cpio: busybox.intermediate
initrd_bins += $(initrd_bin_dir)/busybox
endif
$(initrd_bin_dir)/busybox: $(build)/$(busybox_dir)/busybox
$(do,SYMLINK,$@,$(MAKE) \