aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/Makefile.IMA7
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
13endif 13endif
14 14
15# pull in the config stuff 15# pull in the config stuff
16lib-all-y := applets/applets.o applets/busybox.o 16lib-all-y := applets/applets.o
17lib-y:= 17lib-y:=
18include procps/Kbuild 18include procps/Kbuild
19lib-all-y += $(patsubst %,procps/%,$(sort $(lib-y))) 19lib-all-y += $(patsubst %,procps/%,$(sort $(lib-y)))
@@ -118,14 +118,15 @@ CPPFLAGS+= -D"KBUILD_STR(s)=\#s" #-Q
118 118
119HOSTCC = gcc 119HOSTCC = gcc
120CC = gcc 120CC = gcc
121STRIP = strip
121WHOLE_PROGRAM:=$(call cc-option,-fwhole-program,) 122WHOLE_PROGRAM:=$(call cc-option,-fwhole-program,)
122busybox: $(usage_stuff) 123busybox: $(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
130applets/usage: 131applets/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