diff options
author | Gabe Black <gabeblack@chromium.org> | 2012-11-27 21:08:06 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2012-11-28 19:40:03 (GMT) |
commit | b16f521a5e87208cebbd17964452e11704416c3f (patch) | |
tree | f3a37b94139b202e67fcebd905a91e2ff6eb07da /arch/x86/cpu/Makefile | |
parent | 8a487a4417221412d1cd23d4e08253fc9413be51 (diff) | |
download | u-boot-b16f521a5e87208cebbd17964452e11704416c3f.tar.xz |
x86: Allow excluding reset vector code from u-boot
When running from coreboot we don't want this code.
This version works by ifdef-ing out all of the code that would go
into those sections and all the code that refers to it. The sections are
then empty, and the linker will either leave them empty for the loader
to ignore or remove them entirely.
Signed-off-by: Gabe Black <gabeblack@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/Makefile')
-rw-r--r-- | arch/x86/cpu/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/cpu/Makefile b/arch/x86/cpu/Makefile index 7f1fc18..be27dd9 100644 --- a/arch/x86/cpu/Makefile +++ b/arch/x86/cpu/Makefile @@ -28,12 +28,13 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(CPU).o -START = start.o start16.o resetvec.o +START-y = start.o +RESET_OBJS-$(CONFIG_X86_NO_RESET_VECTOR) += resetvec.o start16.o COBJS = interrupts.o cpu.o SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) -START := $(addprefix $(obj),$(START)) +START := $(addprefix $(obj),$(START-y) $(RESET_OBJS-)) all: $(obj).depend $(START) $(LIB) |