From 0087f159f1d868a778b3cb995de0acf772016825 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Tue, 11 Aug 2009 13:55:33 +0200 Subject: Rootfs: busybox: use CFLAGS defined by user and use 80 char lines Signed-off-by: Abdoulaye Walsimou Gaye --- packages/busybox/busybox.mk | 19 ++++++++++++------- 1 file 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, # 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, # \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.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 $@ -- cgit v1.2.3