Patrick Georgi (patrick(a)georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5773
-gerrit
commit 37c709c7a380ffeade52790e6e51d7e1cf317a52
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Sat May 17 19:05:56 2014 +0200
build: allow romcc to be wrapped
Allow ccache and scan-build to wrap romcc.
This works a bit different from the other compilers
because we only define it later.
Change-Id: I3adce91d3dde9dd50aa6a2baad5b457744f35575
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
---
Makefile.inc | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/Makefile.inc b/Makefile.inc
index d098cff..529250d 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -280,8 +280,11 @@ ifeq ($(_WINCHECK),Cygwin)
STACK=-Wl,--stack,16384000
endif
-ROMCC:= $(objutil)/romcc/romcc
-$(ROMCC): $(top)/util/romcc/romcc.c
+# this allows ccache to prepend itself
+# (ccache handling happens first)
+ROMCC_BIN= $(objutil)/romcc/romcc
+ROMCC?=$(ROMCC_BIN)
+$(ROMCC_BIN): $(top)/util/romcc/romcc.c
@printf " HOSTCC $(subst $(obj)/,,$(@)) (this may take a while)\n"
@# Note: Adding -O2 here might cause problems. For details see:
@# http://www.coreboot.org/pipermail/coreboot/2010-February/055825.html
Patrick Georgi (patrick(a)georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5772
-gerrit
commit b9f81eda063d8b00dee6316231cab65864512cd2
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Sat May 17 18:24:45 2014 +0200
abuild: replace hardcoded values by their variables
Some coreboot-builds/ and makes made their way into
abuild. Stop them.
Change-Id: I5784e1fd623ada30e2fadcc74a7da3ee75c5ee96
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
---
util/abuild/abuild | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/util/abuild/abuild b/util/abuild/abuild
index c08f4a2..434bcc6 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -545,9 +545,9 @@ build_all_targets()
if [ "$enable_blobs" = "true" ]; then
echo "CONFIG_USE_BLOBS=y" > $TMPCFG
fi
- make -j $cpus DOTCONFIG=$TMPCFG obj=coreboot-builds/temp objutil=coreboot-builds/sharedutils allnoconfig
- make -j $cpus DOTCONFIG=$TMPCFG obj=coreboot-builds/temp objutil=coreboot-builds/sharedutils tools || exit 1
- rm -rf coreboot-builds/temp $TMPCFG
+ $MAKE -j $cpus DOTCONFIG=$TMPCFG obj=$TARGET/temp objutil=$TARGET/sharedutils allnoconfig
+ $MAKE -j $cpus DOTCONFIG=$TMPCFG obj=$TARGET/temp objutil=$TARGET/sharedutils tools || exit 1
+ rm -rf $TARGET/temp $TMPCFG
for VENDOR in $( vendors ); do
for MAINBOARD in $( mainboards $VENDOR ); do
echo $VENDOR/$MAINBOARD
Patrick Georgi (patrick(a)georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5770
-gerrit
commit 04ba35f78d37b0e95a9728fc32a5a6f902c3a97d
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Sat May 17 15:13:40 2014 +0200
build: remove call to missing function
set_stage_libgcc never existed in our tree.
Change-Id: I864fc683dd7b89a030daf05eafb9624ce828cb72
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
---
toolchain.inc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/toolchain.inc b/toolchain.inc
index 568b3d6..9417a73 100644
--- a/toolchain.inc
+++ b/toolchain.inc
@@ -70,8 +70,7 @@ endef
# @1 : stage for which the toolchain is to be initialized
init_standard_toolchain = \
$(eval $(call set_stage_toolchain,$(1))) \
- $(eval $(call create_class_compiler,$(1),$(ARCH-$(1)-y))) \
- $(eval $(call set_stage_libgcc,$(1)))
+ $(eval $(call create_class_compiler,$(1),$(ARCH-$(1)-y)))
init_stages = \
$(foreach stage,$(COREBOOT_STANDARD_STAGES),$(eval $(call init_standard_toolchain,$(stage))))
Patrick Georgi (patrick(a)georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5767
-gerrit
commit 55880cad96e4253c36d0cd5981cf716756613020
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Sat May 17 14:02:08 2014 +0200
build: kill one indirection
No need to first define X86_32 and then replace every
single use of it with its lower cased equivalent.
Just start out with the lower case versions in the first
place.
Change-Id: I1e771ef443db1b8d34018d19a64a9ee489cd8133
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
---
Makefile.inc | 2 +-
src/vendorcode/google/chromeos/Makefile.inc | 2 +-
toolchain.inc | 16 ++++++----------
3 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/Makefile.inc b/Makefile.inc
index 9e4c6b0..d098cff 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -149,7 +149,7 @@ smm-c-deps:=$$(OPTION_TABLE_H)
define ramstage-objs_asl_template
$(obj)/$(1).ramstage.o: src/$(1).asl $(obj)/config.h
@printf " IASL $$(subst $(top)/,,$$(@))\n"
- $(CC_ramstage) -x assembler-with-cpp -E -MMD -MT $$(@) -D__ACPI__ -P -include $(src)/include/kconfig.h -I$(obj) -I$(src) -I$(src)/include -I$(src)/arch/$(ARCHDIR-$(ARCH-RAMSTAGE-y))/include -I$(src)/mainboard/$(MAINBOARDDIR) $$< -o $$(basename $$(a)).asl
+ $(CC_ramstage) -x assembler-with-cpp -E -MMD -MT $$(@) -D__ACPI__ -P -include $(src)/include/kconfig.h -I$(obj) -I$(src) -I$(src)/include -I$(src)/arch/$(ARCHDIR-$(ARCH-ramstage-y))/include -I$(src)/mainboard/$(MAINBOARDDIR) $$< -o $$(basename $$(a)).asl
cd $$(dir $$@); $(IASL) -p $$(notdir $$@) -tc $$(notdir $$(basename $$(a))).asl
mv $$(basename $$(a)).hex $$(basename $$(a)).c
$(CC_ramstage) $$(CFLAGS_ramstage) $$(CPPFLAGS_ramstage) $$(if $$(subst dsdt,,$$(basename $$(notdir $(1)))), -DAmlCode=AmlCode_$$(basename $$(notdir $(1)))) -c -o $$@ $$(basename $$(a)).c
diff --git a/src/vendorcode/google/chromeos/Makefile.inc b/src/vendorcode/google/chromeos/Makefile.inc
index 80a0da9..a875303 100644
--- a/src/vendorcode/google/chromeos/Makefile.inc
+++ b/src/vendorcode/google/chromeos/Makefile.inc
@@ -44,7 +44,7 @@ VB_LIB = $(obj)/external/vboot_reference/vboot_fw.a
# up all components in one of the three stages of coreboot, vboot seems
# most logical to fall under the romstage. Thus, all references to arch
# and other compiler stuff for vboot is using the romstage arch.
-VB_FIRMWARE_ARCH := $(ARCHDIR-$(ARCH-ROMSTAGE-y))
+VB_FIRMWARE_ARCH := $(ARCHDIR-$(ARCH-romstage-y))
VB_SOURCE := vboot_reference
# Add the vboot include paths.
diff --git a/toolchain.inc b/toolchain.inc
index f666e0c..d998a7e 100644
--- a/toolchain.inc
+++ b/toolchain.inc
@@ -17,10 +17,7 @@
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
-ARCH_SUPPORTED := ARMV7 X86_32
-
-ARCH_TO_TOOLCHAIN_X86_32 := x86_32
-ARCH_TO_TOOLCHAIN_ARMV7 := armv7
+ARCH_SUPPORTED := armv7 x86_32
COREBOOT_STANDARD_STAGES := bootblock romstage ramstage
@@ -38,8 +35,8 @@ CFLAGS_armv7 = \
toolchain_to_dir = \
$(foreach arch,$(ARCH_SUPPORTED),\
- $(eval CPPFLAGS_$(ARCH_TO_TOOLCHAIN_$(arch)) = \
- -Isrc/arch/$(ARCHDIR-$(ARCH_TO_TOOLCHAIN_$(arch)))/include))
+ $(eval CPPFLAGS_$(arch) = \
+ -Isrc/arch/$(ARCHDIR-$(arch))/include))
# set_stage_toolchain: Decides the toolchain to be used by every stage
# E.g.: If bootblock is x86_32, it sets ARCH-BOOTBLOCK-y = x86_32, whereas
@@ -49,7 +46,7 @@ toolchain_to_dir = \
# stages i.e. bootblock, romstage and ramstage, since it acts as the second
# parameter to create_class_compiler below in init_standard_toolchain
set_stage_toolchain= \
- $(foreach arch,$(ARCH_SUPPORTED),$(eval ARCH-$(1)-$(CONFIG_ARCH_$(1)_$(arch)) := $(ARCH_TO_TOOLCHAIN_$(arch))))
+ $(foreach arch,$(ARCH_SUPPORTED),$(eval ARCH-$(1)-$($(shell echo CONFIG_ARCH_$(1)_$(arch) | tr '[:lower:]' '[:upper:]')) := $(arch)))
# create_class_compiler: Used to create compiler tool set for
# special classes
@@ -73,9 +70,8 @@ endef
# initialize standard toolchain (CC,AS and others) for give stage
# @1 : stage for which the toolchain is to be initialized
init_standard_toolchain = \
- $(eval stage_caps := $(shell printf "%s" $(1) | tr '[:lower:]' '[:upper:]' )) \
- $(eval $(call set_stage_toolchain,$(stage_caps))) \
- $(eval $(call create_class_compiler,$(1),$(ARCH-$(stage_caps)-y))) \
+ $(eval $(call set_stage_toolchain,$(1))) \
+ $(eval $(call create_class_compiler,$(1),$(ARCH-$(1)-y))) \
$(eval $(call set_stage_libgcc,$(1)))
init_stages = \
Patrick Georgi (patrick(a)georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5766
-gerrit
commit 07a8080ddb0699e0d5ddf760f2ee04b503f69ff3
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Sat May 17 14:20:11 2014 +0200
build: get rid of a special case
Don't call things in xcompile i386 and in the
buildsystem x86_32 and then bridge things so
they match. just call it the same everywhere.
Change-Id: Ieef5f03f7aafb0b0a606fbe5a2386e310d2b0e94
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
---
toolchain.inc | 3 ---
util/xcompile/xcompile | 2 +-
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/toolchain.inc b/toolchain.inc
index dca00fc..f666e0c 100644
--- a/toolchain.inc
+++ b/toolchain.inc
@@ -81,9 +81,6 @@ init_standard_toolchain = \
init_stages = \
$(foreach stage,$(COREBOOT_STANDARD_STAGES),$(eval $(call init_standard_toolchain,$(stage))))
-# This mapping is created to have consistency with xcompile naming
-$(eval $(call create_class_compiler,x86_32,i386))
-
$(eval $(call toolchain_to_dir))
$(call init_stages)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 0ac2bec..b342de3 100644
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -181,7 +181,7 @@ arch_config_aarch64() {
}
arch_config_x86() {
- TARCH="i386"
+ TARCH="x86_32"
TBFDARCH="i386"
TCLIST="i386 x86_64"
TWIDTH="32"
Patrick Georgi (patrick(a)georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5770
-gerrit
commit 52cf0d270acf07110d4c1ad607faf58e8f60b782
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Sat May 17 15:13:40 2014 +0200
build: remove call to missing function
set_stage_libgcc never existed in our tree.
Change-Id: I864fc683dd7b89a030daf05eafb9624ce828cb72
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
---
toolchain.inc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/toolchain.inc b/toolchain.inc
index 568b3d6..9417a73 100644
--- a/toolchain.inc
+++ b/toolchain.inc
@@ -70,8 +70,7 @@ endef
# @1 : stage for which the toolchain is to be initialized
init_standard_toolchain = \
$(eval $(call set_stage_toolchain,$(1))) \
- $(eval $(call create_class_compiler,$(1),$(ARCH-$(1)-y))) \
- $(eval $(call set_stage_libgcc,$(1)))
+ $(eval $(call create_class_compiler,$(1),$(ARCH-$(1)-y)))
init_stages = \
$(foreach stage,$(COREBOOT_STANDARD_STAGES),$(eval $(call init_standard_toolchain,$(stage))))