svn commit: trunk/busybox: arch arch/i386

vda at busybox.net vda at busybox.net
Mon Oct 9 19:47:38 UTC 2006


Author: vda
Date: 2006-10-09 12:47:38 -0700 (Mon, 09 Oct 2006)
New Revision: 16349

Log:
build system: fix for non-i386 builds


Added:
   trunk/busybox/arch/
   trunk/busybox/arch/i386/
   trunk/busybox/arch/i386/Makefile

Modified:
   trunk/busybox/Makefile
   trunk/busybox/Makefile.custom
   trunk/busybox/Makefile.flags
   trunk/busybox/Makefile.help


Changeset:
Modified: trunk/busybox/Makefile
===================================================================
--- trunk/busybox/Makefile	2006-10-09 17:27:40 UTC (rev 16348)
+++ trunk/busybox/Makefile	2006-10-09 19:47:38 UTC (rev 16349)
@@ -2,7 +2,7 @@
 PATCHLEVEL = 2
 SUBLEVEL = 1
 EXTRAVERSION = .svn
-NAME=Unnamed
+NAME = Unnamed
 
 # *DOCUMENTATION*
 # To see a list of typical targets execute "make help"

Modified: trunk/busybox/Makefile.custom
===================================================================
--- trunk/busybox/Makefile.custom	2006-10-09 17:27:40 UTC (rev 16348)
+++ trunk/busybox/Makefile.custom	2006-10-09 19:47:38 UTC (rev 16349)
@@ -1,31 +1,7 @@
-### # defconfig is allyesconfig minus any features that are specialized enough
-### # or cause enough behavior change that the user really should switch them on
-### # manually if that's what they want.  Sort of "maximum sane config".
+# ==========================================================================
+# Build system
+# ==========================================================================
 
-### defconfig: scripts/config/conf
-### 	@./scripts/config/conf -y $(CONFIG_CONFIG_IN) > /dev/null
-### 	@$(SED) -i -r -e "s/^(CONFIG_(DEBUG.*|STATIC|SELINUX|NITPICK|BUILD_(AT_ONCE|LIBBUSYBOX)|FEATURE_(DEVFS|FULL_LIBBUSYBOX|SHARED_BUSYBOX|MTAB_SUPPORT|CLEAN_UP|UDHCP_DEBUG)|INSTALL_NO_USR))=.*/# \1 is not set/" .config
-### 	@./scripts/config/conf -o $(CONFIG_CONFIG_IN) > /dev/null
-
-### allbareconfig: scripts/config/conf
-### 	@./scripts/config/conf -y $(CONFIG_CONFIG_IN) > /dev/null
-### 	@$(SED) -i -r -e "s/^(CONFIG_(DEBUG|STATIC|SELINUX|DEVFSD|NC_GAPING_SECURITY_HOLE|BUILD_AT_ONCE)).*/# \1 is not set/" .config
-### 	@$(SED) -i -e "/FEATURE/s/=.*//;/^[^#]/s/.*FEATURE.*/# \0 is not set/;" .config
-### 	@echo "CONFIG_FEATURE_BUFFERS_GO_ON_STACK=y" >> .config
-### 	@yes n | ./scripts/config/conf -o $(CONFIG_CONFIG_IN) > /dev/null
-
-### hosttools:
-### 	$(Q)cp .config .config.bak || noold=yea
-### 	$(Q)$(MAKE) CC="$(HOSTCC)" CFLAGS="$(HOSTCFLAGS) $(INCS)" allnoconfig
-### 	$(Q)mv .config .config.in
-### 	$(Q)(grep -v CONFIG_SED .config.in ; \
-### 	 echo "CONFIG_SED=y" ; ) > .config
-### 	$(Q)$(MAKE) CC="$(HOSTCC)" CFLAGS="$(HOSTCFLAGS) $(INCS)" oldconfig include/bb_config.h
-### 	$(Q)$(MAKE) CC="$(HOSTCC)" CFLAGS="$(HOSTCFLAGS) $(INCS)" busybox
-### 	$(Q)[ -f .config.bak ] && mv .config.bak .config || rm .config
-### 	mv busybox sed
-### 	@echo "Now do: $(MAKE) SED=$(objtree)/sed <target>"
-
 %.bflt: %_unstripped
 	$(CROSS_COMPILE)elf2flt $(ELF2FLTFLAGS) $< -o $@
 

Modified: trunk/busybox/Makefile.flags
===================================================================
--- trunk/busybox/Makefile.flags	2006-10-09 17:27:40 UTC (rev 16348)
+++ trunk/busybox/Makefile.flags	2006-10-09 19:47:38 UTC (rev 16349)
@@ -1,5 +1,5 @@
 # ==========================================================================
-# Building
+# Build system
 # ==========================================================================
 
 BB_VER = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
@@ -13,7 +13,7 @@
 	-D"BB_VER=KBUILD_STR($(BB_VER))" -DBB_BT=AUTOCONF_TIMESTAMP \
 	-Wall -Wstrict-prototypes -Wshadow -Werror \
 	-funsigned-char -fno-builtin-strlen -finline-limit=0 -static-libgcc \
-	-Os -march=i386 -mpreferred-stack-boundary=2 \
+	-Os -mpreferred-stack-boundary=2 \
 	-falign-functions=1 -falign-jumps=1 -falign-loops=1 \
 	-fomit-frame-pointer -ffunction-sections -fdata-sections \
 	-funsigned-char -fno-builtin-strlen \

Modified: trunk/busybox/Makefile.help
===================================================================
--- trunk/busybox/Makefile.help	2006-10-09 17:27:40 UTC (rev 16348)
+++ trunk/busybox/Makefile.help	2006-10-09 19:47:38 UTC (rev 16349)
@@ -1,52 +1,6 @@
-### Kernel's one:
-### help:
-### 	@echo  'Cleaning targets:'
-### 	@echo  '  clean		  - remove most generated files but keep the config'
-### 	@echo  '  mrproper	  - remove all generated files + config + various backup files'
-### 	@echo  ''
-### 	@echo  'Configuration targets:'
-### 	@$(MAKE) -f $(srctree)/scripts/kconfig/Makefile help
-### 	@echo  ''
-### 	@echo  'Other generic targets:'
-### 	@echo  '  all		  - Build all targets marked with [*]'
-### 	@echo  '* busybox	  - Build the bare kernel'
-### 	@echo  '* modules	  - Build all modules'
-### 	@echo  '  modules_install - Install all modules to INSTALL_MOD_PATH (default: /)'
-### 	@echo  '  dir/            - Build all files in dir and below'
-### 	@echo  '  dir/file.[ois]  - Build specified target only'
-### 	@echo  '  dir/file.ko     - Build module including final link'
-### 	@echo  '  rpm		  - Build a kernel as an RPM package'
-### 	@echo  '  tags/TAGS	  - Generate tags file for editors'
-### 	@echo  '  cscope	  - Generate cscope index'
-### 	@echo  '  kernelrelease	  - Output the release version string'
-### 	@echo  '  kernelversion	  - Output the version stored in Makefile'
-### 	@echo  ''
-### 	@echo  'Static analysers'
-### 	@echo  '  checkstack      - Generate a list of stack hogs'
-### 	@echo  '  namespacecheck  - Name space analysis on compiled kernel'
-### 	@echo  ''
-### 	@echo  'Kernel packaging:'
-### 	@$(MAKE) $(build)=$(package-dir) help
-### 	@echo  ''
-### 	@echo  'Documentation targets:'
-### 	@$(MAKE) -f $(srctree)/Documentation/DocBook/Makefile dochelp
-### 	@echo  ''
-### 	@echo  'Architecture specific targets ($(ARCH)):'
-### 	@$(if $(archhelp),$(archhelp),\
-### 		echo '  No architecture specific help defined for $(ARCH)')
-### 	@echo  ''
-### 	@$(if $(boards), \
-### 		$(foreach b, $(boards), \
-### 		printf "  %-24s - Build for %s\\n" $(b) $(subst _defconfig,,$(b));) \
-### 		echo '')
-### 
-### 	@echo  '  make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build'
-### 	@echo  '  make O=dir [targets] Locate all output files in "dir", including .config'
-### 	@echo  '  make C=1   [targets] Check all c source with $$CHECK (sparse)'
-### 	@echo  '  make C=2   [targets] Force check of all c source with $$CHECK (sparse)'
-### 	@echo  ''
-### 	@echo  'Execute "make" or "make all" to build all targets marked with [*] '
-### 	@echo  'For further info see the ./README file'
+# ==========================================================================
+# Build system
+# ==========================================================================
 
 help:
 	@echo 'Cleaning:'

Added: trunk/busybox/arch/i386/Makefile
===================================================================
--- trunk/busybox/arch/i386/Makefile	2006-10-09 17:27:40 UTC (rev 16348)
+++ trunk/busybox/arch/i386/Makefile	2006-10-09 19:47:38 UTC (rev 16349)
@@ -0,0 +1,5 @@
+# ==========================================================================
+# Build system
+# ==========================================================================
+
+CPPFLAGS += -march=i386




More information about the busybox-cvs mailing list