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>
This commit is contained in:
Gabe Black 2013-07-07 14:04:26 -07:00 committed by Ronald G. Minnich
parent eac991629f
commit 545c0caac8
2 changed files with 11 additions and 0 deletions

View File

@ -244,6 +244,10 @@ config HAVE_ARCH_MEMCPY
bool bool
default n default n
config HAVE_ARCH_MEMMOVE
bool
default n
menu "Chipset" menu "Chipset"
comment "CPU" comment "CPU"

View File

@ -26,6 +26,9 @@ ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
bootblock-y += memcpy.c bootblock-y += memcpy.c
endif endif
bootblock-y += memcmp.c bootblock-y += memcmp.c
ifneq ($(CONFIG_HAVE_ARCH_MEMMOVE),y)
bootblock-y += memmove.c
endif
ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y) ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y)
romstage-y += memset.c romstage-y += memset.c
@ -56,7 +59,9 @@ romstage-$(CONFIG_EARLY_CBMEM_INIT) += cbmem.c
endif endif
romstage-y += compute_ip_checksum.c romstage-y += compute_ip_checksum.c
ifneq ($(CONFIG_HAVE_ARCH_MEMMOVE),y)
romstage-y += memmove.c romstage-y += memmove.c
endif
romstage-$(CONFIG_ARCH_X86) += gcc.c romstage-$(CONFIG_ARCH_X86) += gcc.c
ramstage-y += hardwaremain.c ramstage-y += hardwaremain.c
@ -70,7 +75,9 @@ ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
ramstage-y += memcpy.c ramstage-y += memcpy.c
endif endif
ramstage-y += memcmp.c ramstage-y += memcmp.c
ifneq ($(CONFIG_HAVE_ARCH_MEMMOVE),y)
ramstage-y += memmove.c ramstage-y += memmove.c
endif
ramstage-y += malloc.c ramstage-y += malloc.c
smm-$(CONFIG_SMM_TSEG) += malloc.c smm-$(CONFIG_SMM_TSEG) += malloc.c
ramstage-y += delay.c ramstage-y += delay.c