summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-08-11 13:55:33 +0200
committerAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-08-11 13:55:33 +0200
commit0087f159f1d868a778b3cb995de0acf772016825 (patch)
tree76e6f3c7354794d5867d133c65e63e80942cd439
parentf0597cd66d635e1ef3c0a413756ec68732e631a9 (diff)
downloadembtoolkit-0087f159f1d868a778b3cb995de0acf772016825.tar.gz
embtoolkit-0087f159f1d868a778b3cb995de0acf772016825.tar.bz2
embtoolkit-0087f159f1d868a778b3cb995de0acf772016825.tar.xz
Rootfs: busybox: use CFLAGS defined by user and use 80 char lines
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
-rw-r--r--packages/busybox/busybox.mk19
1 files changed, 12 insertions, 7 deletions
diff --git a/packages/busybox/busybox.mk b/packages/busybox/busybox.mk
index efffbad..066cf22 100644
--- a/packages/busybox/busybox.mk
+++ b/packages/busybox/busybox.mk
@@ -1,4 +1,4 @@
-#########################################################################################
+################################################################################
# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
# Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved.
#
@@ -14,13 +14,13 @@
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
-#########################################################################################
+################################################################################
#
# \file busybox.mk
# \brief busybox.mk of Embtoolkit
# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
# \date May 2009
-#########################################################################################
+################################################################################
BB_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_BB_VERSION_STRING)))
BB_DOT_CONFIG := $(subst ",,$(strip $(CONFIG_EMBTK_BB_DOT_CONFIG)))
@@ -32,8 +32,11 @@ busybox_install: $(BB_BUILD_DIR)/.installed
$(BB_BUILD_DIR)/.installed: download_busybox $(BB_BUILD_DIR)/.decompressed \
$(BB_BUILD_DIR)/.Config.in.renewed
- CFLAGS="-Os -pipe -fno-strict-aliasing" \
- $(MAKE) -C $(BB_BUILD_DIR) CROSS_COMPILE=$(TOOLS)/bin/$(STRICT_GNU_TARGET)- \
+ $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \
+ busybox-$(BB_VERSION) in your root filesystem...")
+ @CFLAGS="$(TARGET_CFLAGS) -pipe -fno-strict-aliasing" \
+ $(MAKE) -C $(BB_BUILD_DIR) \
+ CROSS_COMPILE=$(TOOLS)/bin/$(STRICT_GNU_TARGET)- \
CONFIG_PREFIX=$(ROOTFS) install
@touch $@
@@ -45,7 +48,8 @@ $(BB_BUILD_DIR)/.decompressed:
$(call EMBTK_GENERIC_MESSAGE,"Decompressing $(BB_PACKAGE) ...")
@tar -C $(PACKAGES_BUILD) -xjf $(DOWNLOAD_DIR)/$(BB_PACKAGE)
@test -e $(BB_BUILD_DIR)/.config || \
- cp $(EMBTK_ROOT)/packages/busybox/$(BB_DOT_CONFIG) $(BB_BUILD_DIR)/.config
+ cp $(EMBTK_ROOT)/packages/busybox/$(BB_DOT_CONFIG) \
+ $(BB_BUILD_DIR)/.config
@touch $@
$(BB_BUILD_DIR)/.Config.in.renewed:
@@ -53,6 +57,7 @@ $(BB_BUILD_DIR)/.Config.in.renewed:
sed 's|source |source $(BB_BUILD_DIR)/|' < Config.in >Config.in.tmp; \
sed 's/networking\/Config.in/&.new/' <Config.in.tmp >Config.in.new; \
cd networking; \
- sed 's|source networking|source $(BB_BUILD_DIR)/networking|' < Config.in >Config.in.new
+ sed 's|source networking|source $(BB_BUILD_DIR)/networking|' \
+ < Config.in >Config.in.new
touch $@