diff options
-rw-r--r-- | Makefile | 10 | ||||
-rw-r--r-- | Makefile.rules | 2 | ||||
-rw-r--r-- | Makefile.toolchain | 2 |
3 files changed, 7 insertions, 7 deletions
@@ -146,21 +146,21 @@ ifneq "$(CONFIG_COMMON_RUNTIME)" "y" _irq_list:=$(shell $(CPP) $(CPPFLAGS) -P -Ichip/$(CHIP) -I$(BASEDIR) \ -I$(BDIR) -D"ENABLE_IRQ(x)=EN_IRQ x" \ -imacros chip/$(CHIP)/registers.h \ - $(BDIR)/ec.irqlist | grep "EN_IRQ .*" | cut -c8-) + - < $(BDIR)/ec.irqlist | grep "EN_IRQ .*" | cut -c8-) CPPFLAGS+=$(foreach irq,$(_irq_list),\ -D"irq_$(irq)_handler_optional=irq_$(irq)_handler") endif # Compute RW firmware size and offset _rw_off_str:=$(shell echo "CONFIG_RW_MEM_OFF" | $(CPP) $(CPPFLAGS) -P \ - -Ichip/$(CHIP) -I$(BASEDIR) -I$(BDIR) -imacros include/config.h) + -Ichip/$(CHIP) -I$(BASEDIR) -I$(BDIR) -imacros include/config.h -) _rw_off:=$(shell echo "$$(($(_rw_off_str)))") _rw_size_str:=$(shell echo "CONFIG_RW_SIZE" | $(CPP) $(CPPFLAGS) -P \ - -Ichip/$(CHIP) -I$(BASEDIR) -I$(BDIR) -imacros include/config.h) + -Ichip/$(CHIP) -I$(BASEDIR) -I$(BDIR) -imacros include/config.h -) _rw_size:=$(shell echo "$$(($(_rw_size_str)))") _program_memory_base_str:=$(shell echo "CONFIG_PROGRAM_MEMORY_BASE" | \ - $(CPP) $(CPPFLAGS) -P \ - -Ichip/$(CHIP) -I$(BDIR) -I$(BASEDIR) -imacros include/config.h) + $(CPP) $(CPPFLAGS) -P \ + -Ichip/$(CHIP) -I$(BDIR) -I$(BASEDIR) -imacros include/config.h -) _program_memory_base=$(shell echo "$$(($(_program_memory_base_str)))") $(eval BASEBOARD_$(UC_BASEBOARD)=y) diff --git a/Makefile.rules b/Makefile.rules index 50fe0a017d..9138b35ed9 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -286,7 +286,7 @@ $(foreach b, $(cts_boards), \ ) cov-test-targets=$(foreach t,$(test-list-host),build/host/$(t).info) -bldversion=$(shell (./util/getversion.sh ; echo VERSION) | $(CPP) -P) +bldversion=$(shell (./util/getversion.sh ; echo VERSION) | $(CPP) -P -) # lcov fails when multiple instances run at the same time. # We need to run them sequentially by using flock diff --git a/Makefile.toolchain b/Makefile.toolchain index 37100780d1..093721eede 100644 --- a/Makefile.toolchain +++ b/Makefile.toolchain @@ -22,7 +22,7 @@ HOST_CROSS_COMPILE:=$(if $(shell which x86_64-pc-linux-gnu-gcc 2>/dev/null),x86_ endif CC=$(CCACHE) $(CROSS_COMPILE)gcc -CPP=$(CCACHE) $(CROSS_COMPILE)cpp +CPP=$(CC) -E LD=$(CROSS_COMPILE)ld NM=$(CROSS_COMPILE)nm OBJCOPY=$(CROSS_COMPILE)objcopy |