diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-04-26 11:45:55 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-04-26 11:45:55 +0000 |
commit | 08782ae7d8812933ad3f932132955ea1c0fb1e52 (patch) | |
tree | 1808993dc06e0c9a473c2e77236ce5d31039466d /make/busybox.mk | |
parent | 057adc1c84e0082cdf88da23a32bf2098680ff4e (diff) | |
download | buildroot-novena-08782ae7d8812933ad3f932132955ea1c0fb1e52.tar.gz buildroot-novena-08782ae7d8812933ad3f932132955ea1c0fb1e52.zip |
Major rework
Diffstat (limited to 'make/busybox.mk')
-rw-r--r-- | make/busybox.mk | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/make/busybox.mk b/make/busybox.mk new file mode 100644 index 000000000..179a5d74d --- /dev/null +++ b/make/busybox.mk @@ -0,0 +1,47 @@ +############################################################# +# +# busybox +# +############################################################# +USE_BUSYBOX_SNAPSHOT=true +ifeq ($(USE_BUSYBOX_SNAPSHOT),true) +# Be aware that this changes daily.... +BUSYBOX_DIR:=$(BUILD_DIR)/busybox +BUSYBOX_SOURCE=busybox-snapshot.tar.bz2 +BUSYBOX_SITE:=http://www.busybox.net/downloads/snapshots +UNZIP=bzcat +else +BUSYBOX_DIR:=$(BUILD_DIR)/busybox-0.60.2 +BUSYBOX_SOURCE:=busybox-0.60.2.tar.gz +BUSYBOX_SITE:=http://www.busybox.net/downloads +UNZIP=zcat +endif +BUSYBOX_PATCH:=$(SOURCE_DIR)/busybox.patch + + +$(DL_DIR)/$(BUSYBOX_SOURCE): + wget -P $(DL_DIR) --passive-ftp $(BUSYBOX_SITE)/$(BUSYBOX_SOURCE) + +busybox-source: $(DL_DIR)/$(BUSYBOX_SOURCE) $(BUSYBOX_PATCH) + +$(BUSYBOX_DIR)/Config.h: $(DL_DIR)/$(BUSYBOX_SOURCE) $(BUSYBOX_PATCH) + $(UNZIP) $(DL_DIR)/$(BUSYBOX_SOURCE) | tar -C $(BUILD_DIR) -xvf - + cat $(BUSYBOX_PATCH) | patch -d $(BUSYBOX_DIR) -p1 +ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true) + perl -i -p -e "s/^DOLFS.*/DOLFS=true/;" $(BUSYBOX_DIR)/Makefile +endif + +$(BUSYBOX_DIR)/busybox: $(BUSYBOX_DIR)/Config.h + make CROSS="$(TARGET_CROSS)" PREFIX="$(TARGET_DIR)" -C $(BUSYBOX_DIR) + +$(TARGET_DIR)/bin/busybox: $(BUSYBOX_DIR)/busybox + make CROSS="$(TARGET_CROSS)" PREFIX="$(TARGET_DIR)" -C $(BUSYBOX_DIR) install + +busybox: uclibc $(TARGET_DIR)/bin/busybox + +busybox-clean: + rm -f $(TARGET_DIR)/bin/busybox + -make -C $(BUSYBOX_DIR) clean + +busybox-dirclean: + rm -rf $(BUSYBOX_DIR) |