Add support for the tracing infastructure in coreboot.
[coreboot.git] / Makefile.inc
index 37e4fb696d85163642dba32acdf69bfd1f5b9567..167ab5bcc8f89780ded8e357f93d33905ca50c55 100644 (file)
@@ -51,6 +51,10 @@ 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__