diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2014-05-25 00:11:35 +0200 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2014-06-29 09:22:13 +0200 |
commit | 25b56c3af514faa8a730d56fe14cae4960ac83aa (patch) | |
tree | 9b620d3fda23bf26c12075af467c4042b1d0504f /Makefile.inc | |
parent | d638c2b34bae222ad16670c72ad7c9a8841a3ec9 (diff) | |
download | coreboot-staging-25b56c3af514faa8a730d56fe14cae4960ac83aa.zip coreboot-staging-25b56c3af514faa8a730d56fe14cae4960ac83aa.tar.gz |
build: remove -ccopts mechanism
We now use the slightly more familiar CFLAGS_* and CPPFLAGS_*
for the same purpose.
Change-Id: Ifd2bd13f67f71fa0a15611a6d11a6a4c7994271b
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/5875
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'Makefile.inc')
-rw-r--r-- | Makefile.inc | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/Makefile.inc b/Makefile.inc index b9a3fe9..7d1c4ae 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -111,31 +111,27 @@ ramstage-postprocess=$(foreach d,$(sort $(dir $(1))), \ $(eval $(d)ramstage.o: $(call files-in-dir,$(d),$(1)); $$(LD_ramstage) -o $$@ -r $$^ ) \ $(eval ramstage-objs:=$(d)ramstage.o $(filter-out $(call files-in-dir,$(d),$(1)),$(ramstage-objs)))) -romstage-c-ccopts:=-D__PRE_RAM__ -romstage-S-ccopts:=-D__PRE_RAM__ +CPPFLAGS_romstage += -D__PRE_RAM__ ifeq ($(CONFIG_TRACE),y) -ramstage-c-ccopts:= -finstrument-functions +CFLAGS_ramstage += -finstrument-functions endif ifeq ($(CONFIG_COVERAGE),y) -ramstage-c-ccopts+=-fprofile-arcs -ftest-coverage +CFLAGS_ramstage += -fprofile-arcs -ftest-coverage endif ifeq ($(CONFIG_USE_BLOBS),y) forgetthis:=$(shell git submodule update --init --checkout 3rdparty) endif -bootblock-c-ccopts:=-D__BOOT_BLOCK__ -D__PRE_RAM__ -bootblock-S-ccopts:=-D__BOOT_BLOCK__ -D__PRE_RAM__ +CPPFLAGS_bootblock += -D__BOOT_BLOCK__ -D__PRE_RAM__ -smmstub-c-ccopts:=-D__SMM__ -smmstub-S-ccopts:=-D__SMM__ -smm-c-ccopts:=-D__SMM__ -smm-S-ccopts:=-D__SMM__ +CPPFLAGS_smmstub += -D__SMM__ +CPPFLAGS_smm += -D__SMM__ # SMM TSEG base is dynamic ifneq ($(CONFIG_SMM_MODULES),y) ifeq ($(CONFIG_SMM_TSEG),y) -smm-c-ccopts += -fpic +CFLAGS_smm += -fpic endif endif @@ -325,7 +321,7 @@ $(obj)/%.romstage.o $(abspath $(obj))/%.romstage.o: $(obj)/%.c $(obj)/config.h $ $(obj)/%.bootblock.o $(abspath $(obj))/%.bootblock.o: $(obj)/%.c $(obj)/config.h $(OPTION_TABLE_H) @printf " CC $(subst $(obj)/,,$(@))\n" - $(CC_bootblock) -MMD $(bootblock-c-ccopts) $(CFLAGS_bootblock) $(CPPFLAGS_bootblock) -c -o $@ $< + $(CC_bootblock) -MMD $(CFLAGS_bootblock) $(CPPFLAGS_bootblock) -c -o $@ $< ####################################################################### # Clean up rules |