diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2018-12-29 13:09:26 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-06-21 08:45:30 +0000 |
commit | bf1da4b4491455cee03e770a89711ac308da83bb (patch) | |
tree | 9725961188205c220d9aa14cb9f112109a537deb /src/cpu | |
parent | fd54acf098895dd92b7722cf4020893174f3dcbd (diff) | |
download | coreboot-bf1da4b4491455cee03e770a89711ac308da83bb.tar.gz coreboot-bf1da4b4491455cee03e770a89711ac308da83bb.tar.bz2 coreboot-bf1da4b4491455cee03e770a89711ac308da83bb.zip |
x86/smmstub: Fix compiling with external toolchains
This copies the makefile code from the smm/smm.o.
Now works with clang version 7.0.1 from my OS using
CONFIG_ANY_TOOLCHAIN.
Change-Id: I298d24d54b8fb27da96257ccda65b7fbee988ebb
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/30504
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/x86/smm/Makefile.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/x86/smm/Makefile.inc b/src/cpu/x86/smm/Makefile.inc index 32f5ea713d17..e6add1d0d0a0 100644 --- a/src/cpu/x86/smm/Makefile.inc +++ b/src/cpu/x86/smm/Makefile.inc @@ -47,8 +47,8 @@ ramstage-srcs += $(obj)/cpu/x86/smm/smmstub.manual # SMM Stub Module. The stub is used as a trampoline for relocation and normal # SMM handling. -$(obj)/smmstub/smmstub.o: $$(smmstub-objs) - $(CC_smmstub) $(CFLAGS_smmstub) -nostdlib -r -o $@ $^ +$(obj)/smmstub/smmstub.o: $$(smmstub-objs) $(COMPILER_RT_smmstub) + $(LD_smmstub) -nostdlib -r -o $@ $(COMPILER_RT_FLAGS_smmstub) --whole-archive --start-group $(smmstub-objs) --no-whole-archive $(COMPILER_RT_smmstub) --end-group # Link the SMM stub module with a 0-byte heap. ifeq ($(CONFIG_ARCH_RAMSTAGE_X86_32),y) |