heads/modules/busybox

38 lines
1.0 KiB
Plaintext
Raw Normal View History

2018-02-13 22:37:28 +00:00
# Busybox is always included, unless explicitly turned off
CONFIG_BUSYBOX ?= y
modules-$(CONFIG_BUSYBOX) += busybox
2016-08-02 23:29:33 +00:00
busybox_version := 1.32.0
2016-08-02 23:29:33 +00:00
busybox_dir := busybox-$(busybox_version)
busybox_tar := busybox-$(busybox_version).tar.bz2
busybox_url := https://busybox.net/downloads/$(busybox_tar)
busybox_hash := c35d87f1d04b2b153d33c275c2632e40d388a88f19a9e71727e0bbbff51fe689
2016-08-02 23:29:33 +00:00
2017-01-28 17:16:34 +00:00
busybox_configure := $(MAKE) CC="$(heads_cc)" oldconfig
busybox_config := config/busybox.config
2016-08-02 23:29:33 +00:00
busybox_output := busybox
busybox_target := \
$(CROSS_TOOLS) \
2017-03-21 18:29:07 +00:00
$(MAKE_JOBS) \
# 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) \
)
@touch $< # ensure that our build file is still newer
2016-08-02 23:29:33 +00:00
busybox_depends := $(musl_dep)