summaryrefslogtreecommitdiff
path: root/src/lib/Makefile.inc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2013-07-07 14:04:26 -0700
committerRonald G. Minnich <rminnich@gmail.com>2013-07-14 20:33:58 +0200
commit545c0caac8ff5cc5c8cc80b1c4d6dce5a2e17032 (patch)
treefedaffe28b68d2ecf3b57cc0b51527c651493737 /src/lib/Makefile.inc
parenteac991629f40bdb0d0d80319249dd378a295e6fa (diff)
downloadcoreboot-545c0caac8ff5cc5c8cc80b1c4d6dce5a2e17032.tar.xz
Add a HAVE_ARCH_MEMMOVE option to allow overriding memmove.
Change-Id: I4b6a57e7d8e7e685c609b1d85368585b9dd197dc Signed-off-by: Gabe Black <gabeblack@chromium.org> Reviewed-on: http://review.coreboot.org/3761 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/lib/Makefile.inc')
-rw-r--r--src/lib/Makefile.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc
index d44f4a73e0..f1783ba4b9 100644
--- a/src/lib/Makefile.inc
+++ b/src/lib/Makefile.inc
@@ -26,6 +26,9 @@ ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
bootblock-y += memcpy.c
endif
bootblock-y += memcmp.c
+ifneq ($(CONFIG_HAVE_ARCH_MEMMOVE),y)
+bootblock-y += memmove.c
+endif
ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y)
romstage-y += memset.c
@@ -56,7 +59,9 @@ romstage-$(CONFIG_EARLY_CBMEM_INIT) += cbmem.c
endif
romstage-y += compute_ip_checksum.c
+ifneq ($(CONFIG_HAVE_ARCH_MEMMOVE),y)
romstage-y += memmove.c
+endif
romstage-$(CONFIG_ARCH_X86) += gcc.c
ramstage-y += hardwaremain.c
@@ -70,7 +75,9 @@ ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
ramstage-y += memcpy.c
endif
ramstage-y += memcmp.c
+ifneq ($(CONFIG_HAVE_ARCH_MEMMOVE),y)
ramstage-y += memmove.c
+endif
ramstage-y += malloc.c
smm-$(CONFIG_SMM_TSEG) += malloc.c
ramstage-y += delay.c