diff options
-rw-r--r-- | scripts/Makefile.IMA | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/Makefile.IMA b/scripts/Makefile.IMA index a92373151..ca8bc279c 100644 --- a/scripts/Makefile.IMA +++ b/scripts/Makefile.IMA | |||
@@ -13,7 +13,7 @@ usage_stuff = include/usage_compressed.h | |||
13 | endif | 13 | endif |
14 | 14 | ||
15 | # pull in the config stuff | 15 | # pull in the config stuff |
16 | lib-all-y := applets/applets.o applets/busybox.o | 16 | lib-all-y := applets/applets.o |
17 | lib-y:= | 17 | lib-y:= |
18 | include procps/Kbuild | 18 | include procps/Kbuild |
19 | lib-all-y += $(patsubst %,procps/%,$(sort $(lib-y))) | 19 | lib-all-y += $(patsubst %,procps/%,$(sort $(lib-y))) |
@@ -118,14 +118,15 @@ CPPFLAGS+= -D"KBUILD_STR(s)=\#s" #-Q | |||
118 | 118 | ||
119 | HOSTCC = gcc | 119 | HOSTCC = gcc |
120 | CC = gcc | 120 | CC = gcc |
121 | STRIP = strip | ||
121 | WHOLE_PROGRAM:=$(call cc-option,-fwhole-program,) | 122 | WHOLE_PROGRAM:=$(call cc-option,-fwhole-program,) |
122 | busybox: $(usage_stuff) | 123 | busybox: $(usage_stuff) |
123 | $(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) --combine $(WHOLE_PROGRAM) \ | 124 | $(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) --combine $(WHOLE_PROGRAM) \ |
124 | -funit-at-a-time -Wno-error -std=gnu99 \ | 125 | -funit-at-a-time -Wno-error -std=gnu99 \ |
125 | -o $(@)_unstripped $(lib-all-y:.o=.c) \ | 126 | -o $(@)_unstripped $(lib-all-y:.o=.c) \ |
126 | -Wl,--start-group -lcrypt -lm -Wl,--end-group | 127 | -Wl,--start-group -lcrypt -lm -Wl,--end-group |
127 | cp $(@)_unstripped $@ | 128 | cp -f $(@)_unstripped $@ |
128 | -strip -s -R .note -R .comment -R .version $@ | 129 | -$(STRIP) -s -R .note -R .comment -R .version $@ |
129 | 130 | ||
130 | applets/usage: | 131 | applets/usage: |
131 | $(HOSTCC) -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I$(srctree)/include -o applets/usage applets/usage.c | 132 | $(HOSTCC) -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I$(srctree)/include -o applets/usage applets/usage.c |