summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/compressed/Makefile
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2011-09-13 21:42:55 -0400
committerNicolas Pitre <nico@fluxnic.net>2011-09-14 13:51:58 -0400
commitdf4879fa2603fbf0804a80f9f146ef9023dd621f (patch)
treef9b88191c3cb423daac502fd307b63c69ab47df0 /arch/arm/boot/compressed/Makefile
parent5ffb04f6690d71fab241b3562ebf52b893ac4ff1 (diff)
downloadblackbird-op-linux-df4879fa2603fbf0804a80f9f146ef9023dd621f.tar.gz
blackbird-op-linux-df4879fa2603fbf0804a80f9f146ef9023dd621f.zip
ARM: zImage: gather some string functions into string.c
This is a small subset of string functions needed by commits to come. Except for memcpy() which is unchanged from its original location, their implementation is meant to be small, and -Os is enforced to prevent gcc from doing pointless loop unrolling. Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org> Tested-by: Shawn Guo <shawn.guo@linaro.org> Tested-by: Dave Martin <dave.martin@linaro.org> Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Diffstat (limited to 'arch/arm/boot/compressed/Makefile')
-rw-r--r--arch/arm/boot/compressed/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile
index 4867647b9796..c20ddc69d950 100644
--- a/arch/arm/boot/compressed/Makefile
+++ b/arch/arm/boot/compressed/Makefile
@@ -26,6 +26,10 @@ HEAD = head.o
OBJS += misc.o decompress.o
FONTC = $(srctree)/drivers/video/console/font_acorn_8x8.c
+# string library code (-Os is enforced to keep it much smaller)
+OBJS += string.o
+CFLAGS_string.o := -Os
+
#
# Architecture dependencies
#
OpenPOWER on IntegriCloud