diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-04-11 08:46:56 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-04-11 08:46:56 +0000 |
commit | 119f87be2a4fb8d45a67be19f0341b8f3d96b091 (patch) | |
tree | 08b5dbc0a9f598e9135a42e1720abb43943052e2 | |
parent | da616dbfa8a0f493f7bf42a34cc32a4dd065b0ac (diff) | |
download | busybox-w32-119f87be2a4fb8d45a67be19f0341b8f3d96b091.tar.gz busybox-w32-119f87be2a4fb8d45a67be19f0341b8f3d96b091.tar.bz2 busybox-w32-119f87be2a4fb8d45a67be19f0341b8f3d96b091.zip |
- add printutils and util-linux/volume_id
- pull in Kbuild.includes
-rw-r--r-- | scripts/Makefile.IMA | 55 |
1 files changed, 36 insertions, 19 deletions
diff --git a/scripts/Makefile.IMA b/scripts/Makefile.IMA index 1d7bc2cc3..762e25292 100644 --- a/scripts/Makefile.IMA +++ b/scripts/Makefile.IMA | |||
@@ -6,12 +6,42 @@ objtree := $(CURDIR) | |||
6 | src := $(srctree) | 6 | src := $(srctree) |
7 | obj := $(objtree) | 7 | obj := $(objtree) |
8 | 8 | ||
9 | # Look for make include files relative to root of kernel src | ||
10 | MAKEFLAGS += --include-dir=$(srctree) | ||
11 | |||
9 | default: busybox | 12 | default: busybox |
13 | |||
14 | ifndef HOSTCC | ||
15 | HOSTCC = cc | ||
16 | endif | ||
17 | AS = $(CROSS_COMPILE)as | ||
18 | CC = $(CROSS_COMPILE)gcc | ||
19 | LD = $(CC) -nostdlib | ||
20 | CPP = $(CC) -E | ||
21 | AR = $(CROSS_COMPILE)ar | ||
22 | NM = $(CROSS_COMPILE)nm | ||
23 | STRIP = $(CROSS_COMPILE)strip | ||
24 | OBJCOPY = $(CROSS_COMPILE)objcopy | ||
25 | OBJDUMP = $(CROSS_COMPILE)objdump | ||
26 | |||
27 | CFLAGS := $(CFLAGS) | ||
28 | CPPFLAGS+= -D"KBUILD_STR(s)=\#s" #-Q | ||
29 | WHOLE_PROGRAM:=$(call cc-option,-fwhole-program,) | ||
30 | |||
10 | include .config | 31 | include .config |
32 | # We need some generic definitions | ||
33 | include $(srctree)/scripts/Kbuild.include | ||
34 | |||
35 | include Makefile.flags | ||
11 | ifdef CONFIG_FEATURE_COMPRESS_USAGE | 36 | ifdef CONFIG_FEATURE_COMPRESS_USAGE |
12 | usage_stuff = include/usage_compressed.h | 37 | usage_stuff = include/usage_compressed.h |
13 | endif | 38 | endif |
14 | 39 | ||
40 | ifndef BB_VER | ||
41 | BB_VER:="" | ||
42 | endif | ||
43 | |||
44 | |||
15 | # pull in the config stuff | 45 | # pull in the config stuff |
16 | lib-all-y := applets/applets.o | 46 | lib-all-y := applets/applets.o |
17 | lib-y:= | 47 | lib-y:= |
@@ -90,6 +120,9 @@ lib-y:= | |||
90 | include util-linux/Kbuild | 120 | include util-linux/Kbuild |
91 | lib-all-y += $(patsubst %,util-linux/%,$(sort $(lib-y))) | 121 | lib-all-y += $(patsubst %,util-linux/%,$(sort $(lib-y))) |
92 | lib-y:= | 122 | lib-y:= |
123 | include util-linux/volume_id/Kbuild | ||
124 | lib-all-y += $(patsubst %,util-linux/volume_id/%,$(sort $(lib-y))) | ||
125 | lib-y:= | ||
93 | include init/Kbuild | 126 | include init/Kbuild |
94 | lib-all-y += $(patsubst %,init/%,$(sort $(lib-y))) | 127 | lib-all-y += $(patsubst %,init/%,$(sort $(lib-y))) |
95 | lib-y:= | 128 | lib-y:= |
@@ -99,6 +132,9 @@ lib-y:= | |||
99 | include editors/Kbuild | 132 | include editors/Kbuild |
100 | lib-all-y += $(patsubst %,editors/%,$(sort $(lib-y))) | 133 | lib-all-y += $(patsubst %,editors/%,$(sort $(lib-y))) |
101 | lib-y:= | 134 | lib-y:= |
135 | include printutils/Kbuild | ||
136 | lib-all-y += $(patsubst %,printutils/%,$(sort $(lib-y))) | ||
137 | lib-y:= | ||
102 | include selinux/Kbuild | 138 | include selinux/Kbuild |
103 | lib-all-y += $(patsubst %,selinux/%,$(sort $(lib-y))) | 139 | lib-all-y += $(patsubst %,selinux/%,$(sort $(lib-y))) |
104 | lib-y:= | 140 | lib-y:= |
@@ -109,25 +145,6 @@ include libbb/Kbuild | |||
109 | lib-all-y += $(patsubst %,libbb/%,$(sort $(lib-y))) | 145 | lib-all-y += $(patsubst %,libbb/%,$(sort $(lib-y))) |
110 | lib-y:= | 146 | lib-y:= |
111 | 147 | ||
112 | include Makefile.flags | ||
113 | ifndef BB_VER | ||
114 | BB_VER:="" | ||
115 | endif | ||
116 | |||
117 | CPPFLAGS+= -D"KBUILD_STR(s)=\#s" #-Q | ||
118 | |||
119 | HOSTCC = gcc | ||
120 | AS = $(CROSS_COMPILE)as | ||
121 | CC = $(CROSS_COMPILE)gcc | ||
122 | LD = $(CC) -nostdlib | ||
123 | CPP = $(CC) -E | ||
124 | AR = $(CROSS_COMPILE)ar | ||
125 | NM = $(CROSS_COMPILE)nm | ||
126 | STRIP = $(CROSS_COMPILE)strip | ||
127 | OBJCOPY = $(CROSS_COMPILE)objcopy | ||
128 | OBJDUMP = $(CROSS_COMPILE)objdump | ||
129 | |||
130 | WHOLE_PROGRAM:=$(call cc-option,-fwhole-program,) | ||
131 | busybox: $(usage_stuff) | 148 | busybox: $(usage_stuff) |
132 | $(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) --combine $(WHOLE_PROGRAM) \ | 149 | $(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) --combine $(WHOLE_PROGRAM) \ |
133 | -funit-at-a-time -Wno-error -std=gnu99 \ | 150 | -funit-at-a-time -Wno-error -std=gnu99 \ |