From 26ef81f5fba333015be99a828da90b39de83b331 Mon Sep 17 00:00:00 2001 From: Trammell Hudson Date: Sat, 28 Jan 2017 20:21:47 -0500 Subject: [PATCH] coreboot flags to strip build paths (issue #95) --- modules/coreboot | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/modules/coreboot b/modules/coreboot index 94174d7..c6d1ddc 100644 --- a/modules/coreboot +++ b/modules/coreboot @@ -13,11 +13,23 @@ coreboot_repo := https://github.com/osresearch/coreboot # The builds are done in a per-target subdirectory #coreboot_config := coreboot-$(TARGET).config +EXTRA_FLAGS := -fdebug-prefix-map=$(pwd)=heads -gno-record-gcc-switches + coreboot_configure := \ - $(MAKE) oldconfig obj=./$(BOARD) DOTCONFIG=../../config/coreboot-$(BOARD).config + $(MAKE) \ + oldconfig \ + obj=./$(BOARD) \ + DOTCONFIG=../../config/coreboot-$(BOARD).config \ + CFLAGS_x86_32="$(EXTRA_FLAGS)" \ + CFLAGS_x86_64="$(EXTRA_FLAGS)" \ coreboot_target := \ - obj=./$(BOARD) DOTCONFIG=../../config/coreboot-$(BOARD).config -j 8 + obj=./$(BOARD) \ + DOTCONFIG=../../config/coreboot-$(BOARD).config \ + CFLAGS_x86_32="$(EXTRA_FLAGS)" \ + CFLAGS_x86_64="$(EXTRA_FLAGS)" \ + V=1 \ + -j 8 coreboot_output := $(BOARD)/coreboot.rom