-
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coreboot-4.12: Use musl-cross-make (#844)
* patches/coreboot-4.12: add cross-compiler support patch Ported from coreboot-4.8.1, re-exported via `git diff` Signed-off-by: Matt DeVillier <[email protected]> * modules/coreboot: use musl-cross-make to build revert toolchain bits to pre-4.12 addition Signed-off-by: Matt DeVillier <[email protected]> * config/coreboot-librem_mini: use CONFIG_ANY_TOOLCHAIN Needed since coreboot 4.12 now built with musl-cross-make Signed-off-by: Matt DeVillier <[email protected]>
- Loading branch information
1 parent
afa6753
commit 92e9a24
Showing
3 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/Makefile b/Makefile | ||
index 027aae2faa..8251a9a478 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -176,6 +176,23 @@ $(if $(wildcard .xcompile)$(NOCOMPILE),,$(eval $(shell util/xcompile/xcompile $( | ||
|
||
-include .xcompile | ||
|
||
+ifneq "$(CROSS)" "" | ||
+ $(info coreboot: Using $(CROSS)gcc) | ||
+ CROSS_COMPILE_x86_32 := $(CROSS) | ||
+ CC_x86_32 := $(CROSS_COMPILE_x86_32)gcc | ||
+ CPP_x86_32 := $(CROSS_COMPILE_x86_32)cpp | ||
+ AS_x86_32 := $(CROSS_COMPILE_x86_32)as --32 | ||
+ LD_x86_32 := $(CROSS_COMPILE_x86_32)ld.bfd -b elf32-i386 -melf_i386 | ||
+ NM_x86_32 := $(CROSS_COMPILE_x86_32)nm | ||
+ OBJCOPY_x86_32 := $(CROSS_COMPILE_x86_32)objcopy | ||
+ OBJDUMP_x86_32 := $(CROSS_COMPILE_x86_32)objdump | ||
+ READELF_x86_32 := $(CROSS_COMPILE_x86_32)readelf | ||
+ STRIP_x86_32 := $(CROSS_COMPILE_x86_32)strip | ||
+ AR_x86_32 := $(CROSS_COMPILE_x86_32)ar | ||
+ GNATBIND_x86_32 := $(CROSS_COMPILE_x86_32)gnatbind | ||
+ COMPILER_RT_x86_32 := $(shell $(CC_x86_32) --print-libgcc-file-name) | ||
+endif | ||
+ | ||
ifneq ($(XCOMPILE_COMPLETE),1) | ||
$(shell rm -f .xcompile) | ||
$(error .xcompile deleted because it's invalid. \ |