Add support to run SMM handler in TSEG instead of ASEG
[coreboot.git] / Makefile.inc
index 81d40df84477e3b2231573ae56efcbf908cb8065..9b67496e1e3b4131b6176a87eacfd22102fe5a33 100644 (file)
@@ -62,6 +62,11 @@ endif
 smm-c-ccopts:=-D__SMM__
 smm-S-ccopts:=-D__SMM__
 
+# SMM TSEG base is dynamic
+ifeq ($(CONFIG_SMM_TSEG),y)
+smm-c-ccopts += -fpic
+endif
+
 ramstage-c-deps:=$$(OPTION_TABLE_H)
 romstage-c-deps:=$$(OPTION_TABLE_H)