2018-02-13 17:37:28 -05:00
|
|
|
# Busybox is always included, unless explicitly turned off
|
|
|
|
CONFIG_BUSYBOX ?= y
|
|
|
|
modules-$(CONFIG_BUSYBOX) += busybox
|
2016-08-02 19:29:33 -04:00
|
|
|
|
2018-02-09 12:15:35 -05:00
|
|
|
busybox_version := 1.28.0
|
2016-08-02 19:29:33 -04:00
|
|
|
busybox_dir := busybox-$(busybox_version)
|
|
|
|
busybox_tar := busybox-$(busybox_version).tar.bz2
|
|
|
|
busybox_url := https://busybox.net/downloads/$(busybox_tar)
|
2018-02-09 12:15:35 -05:00
|
|
|
busybox_hash := 604553b7dbd59ded9e3ad7c6af49ed2cff599adf3e54d9463e5e0027b362019c
|
2016-08-02 19:29:33 -04:00
|
|
|
|
2017-01-28 12:16:34 -05:00
|
|
|
busybox_configure := $(MAKE) CC="$(heads_cc)" oldconfig
|
2018-02-05 15:59:26 -05:00
|
|
|
busybox_config := config/busybox.config
|
2016-08-02 19:29:33 -04:00
|
|
|
busybox_output := busybox
|
2016-12-29 18:23:08 -05:00
|
|
|
busybox_target := \
|
2017-04-08 13:23:34 -04:00
|
|
|
$(CROSS_TOOLS) \
|
2017-03-21 14:29:07 -04:00
|
|
|
$(MAKE_JOBS) \
|
2018-05-02 16:13:23 -04:00
|
|
|
|
|
|
|
# Install symlinks when the busybox program is installed
|
|
|
|
|
|
|
|
ifeq "$(CONFIG_BUSYBOX)" "y"
|
|
|
|
initrd_bins += $(initrd_bin_dir)/busybox
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(initrd_tmp_dir)/bin/busybox: $(build)/$(busybox_dir)/.build
|
|
|
|
$(call do,SYMLINK,bin/busybox,\
|
|
|
|
$(MAKE) \
|
|
|
|
-C $(build)/$(busybox_dir) \
|
|
|
|
CC="$(heads_cc)" \
|
|
|
|
CONFIG_PREFIX="$(initrd_bin_dir)/.." \
|
|
|
|
install \
|
|
|
|
| tee -a $(build)/log/busybox.log \
|
|
|
|
$(VERBOSE_REDIRECT) \
|
|
|
|
)
|
2018-05-03 18:03:24 -04:00
|
|
|
@touch $< # ensure that our build file is still newer
|
2018-05-02 16:13:23 -04:00
|
|
|
|
2016-08-02 19:29:33 -04:00
|
|
|
|
2016-12-29 18:23:08 -05:00
|
|
|
busybox_depends := $(musl_dep)
|