svn commit: branches/busybox_1_9_stable/scripts

aldot at busybox.net aldot at busybox.net
Fri Apr 11 10:22:13 UTC 2008


Author: aldot
Date: 2008-04-11 03:22:12 -0700 (Fri, 11 Apr 2008)
New Revision: 21702

Log:
- pull updates from trunk


Modified:
   branches/busybox_1_9_stable/scripts/Makefile.IMA


Changeset:
Modified: branches/busybox_1_9_stable/scripts/Makefile.IMA
===================================================================
--- branches/busybox_1_9_stable/scripts/Makefile.IMA	2008-04-11 08:46:56 UTC (rev 21701)
+++ branches/busybox_1_9_stable/scripts/Makefile.IMA	2008-04-11 10:22:12 UTC (rev 21702)
@@ -6,12 +6,42 @@
 src		:= $(srctree)
 obj		:= $(objtree)
 
+# Look for make include files relative to root of kernel src
+MAKEFLAGS += --include-dir=$(srctree)
+
 default: busybox
+
+ifndef HOSTCC
+HOSTCC = cc
+endif
+AS              = $(CROSS_COMPILE)as
+CC              = $(CROSS_COMPILE)gcc
+LD              = $(CC) -nostdlib
+CPP             = $(CC) -E
+AR              = $(CROSS_COMPILE)ar
+NM              = $(CROSS_COMPILE)nm
+STRIP           = $(CROSS_COMPILE)strip
+OBJCOPY         = $(CROSS_COMPILE)objcopy
+OBJDUMP         = $(CROSS_COMPILE)objdump
+
+CFLAGS := $(CFLAGS)
+CPPFLAGS+= -D"KBUILD_STR(s)=\#s" #-Q
+WHOLE_PROGRAM:=$(call cc-option,-fwhole-program,)
+
 include .config
+# We need some generic definitions
+include $(srctree)/scripts/Kbuild.include
+
+include Makefile.flags
 ifdef CONFIG_FEATURE_COMPRESS_USAGE
 usage_stuff = include/usage_compressed.h
 endif
 
+ifndef BB_VER
+BB_VER:=""
+endif
+
+
 # pull in the config stuff
 lib-all-y := applets/applets.o
 lib-y:=
@@ -109,25 +139,6 @@
 lib-all-y += $(patsubst %,libbb/%,$(sort $(lib-y)))
 lib-y:=
 
-include Makefile.flags
-ifndef BB_VER
-BB_VER:=""
-endif
-
-CPPFLAGS+= -D"KBUILD_STR(s)=\#s" #-Q
-
-HOSTCC = gcc
-AS              = $(CROSS_COMPILE)as
-CC              = $(CROSS_COMPILE)gcc
-LD              = $(CC) -nostdlib
-CPP             = $(CC) -E
-AR              = $(CROSS_COMPILE)ar
-NM              = $(CROSS_COMPILE)nm
-STRIP           = $(CROSS_COMPILE)strip
-OBJCOPY         = $(CROSS_COMPILE)objcopy
-OBJDUMP         = $(CROSS_COMPILE)objdump
-
-WHOLE_PROGRAM:=$(call cc-option,-fwhole-program,)
 busybox: $(usage_stuff)
 	$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) --combine $(WHOLE_PROGRAM) \
 		-funit-at-a-time -Wno-error -std=gnu99  \




More information about the busybox-cvs mailing list