Skip to contentSkip to conversation

roms: seabios: Rename CROSS_COMPILE to CROSS_PREFIX

PATCH In review Roman Bolshakov 2 participants 2 messages Nov 21, 2018 – Nov 22, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 roms: seabios: Rename CROSS_COMPILE to CROSS_PREFIX

SeaBIOS introduced CROSS_PREFIX in 2013 but it's not set in roms Makefile.

With the change it's possible to cross-compile SeaBIOS on macOS, if acpica/iasl is installed:
cd roms
export PATH=/path/to/cross/x86_64-unknown-linux-gnu/bin:$PATH make bios system=unknown-linux-gnu

---
 roms/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
roms/Makefile +2 -2
index f4141e1d96..a6043eff37 100644
@@ -83,12 +83,12 @@ build-seabios-config-%: config.%
 	cp $< seabios/builds/$*/.config
 	$(MAKE) -C seabios \
 		EXTRAVERSION=$(SEABIOS_EXTRAVERSION) \
-		CROSS_COMPILE=$(x86_64_cross_prefix) \
+		CROSS_PREFIX=$(x86_64_cross_prefix) \
 		KCONFIG_CONFIG=$(CURDIR)/seabios/builds/$*/.config \
 		OUT=$(CURDIR)/seabios/builds/$*/ oldnoconfig
 	$(MAKE) -C seabios \
 		EXTRAVERSION=$(SEABIOS_EXTRAVERSION) \
-		CROSS_COMPILE=$(x86_64_cross_prefix) \
+		CROSS_PREFIX=$(x86_64_cross_prefix) \
 		KCONFIG_CONFIG=$(CURDIR)/seabios/builds/$*/.config \
 		OUT=$(CURDIR)/seabios/builds/$*/ all
 
Signature · 1 line
2.19.1
#1 lore raw

Review

Quoted 5 lines · Roman Bolshakov

SeaBIOS introduced CROSS_PREFIX in 2013 but it's not set in roms Makefile.

(quoted diff) +1 -1
-		CROSS_COMPILE=$(x86_64_cross_prefix) \
+		CROSS_PREFIX=$(x86_64_cross_prefix) \

I'm wondering how that slipped though, IIRC I had actually tested seabios crossbuilds ...

Queued up (for 4.0).

thanks,
Gerd