Don't do a call as the first instruction in libpayload.
[coreboot.git] / Makefile.inc
index 37e4fb696d85163642dba32acdf69bfd1f5b9567..4c87bd271677142dd99e3cfcfb58a760f1fe06cb 100644 (file)
@@ -45,12 +45,18 @@ subdirs-y += src/mainboard/$(MAINBOARDDIR)
 
 subdirs-$(CONFIG_ARCH_X86) += src/pc80
 
+subdirs-y += site-local
+
 #######################################################################
 # Add source classes and their build options
 classes-y := ramstage romstage driver smm
 
 romstage-c-ccopts:=-D__PRE_RAM__
 romstage-S-ccopts:=-D__PRE_RAM__
+ifeq ($(CONFIG_TRACE),y)
+ramstage-c-ccopts:= -finstrument-functions
+endif
+
 smm-c-ccopts:=-D__SMM__
 smm-S-ccopts:=-D__SMM__