Skip to contentSkip to conversation

RMC: Support x32 build

PATCH Superseded [email protected] 1 participant 1 message Jul 6, 2017 Kbuild

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RMC: Support x32 build

From: sweeaun <[email protected]>

RMC efi is needed to compiled as 64 bits even DEFAULTTUNE is x32.

---
 Makefile.efi | 3 +++
 1 file changed, 3 insertions(+)
Makefile.efi +3 -0
index 4f69dfe..95e0f8c 100644
@@ -16,6 +16,9 @@ RMC_INSTALL_LIB_PATH := $(RMC_INSTALL_PREFIX)/lib/
 
 RMC_CFLAGS := -DRMC_EFI -Wall -I$(TOPDIR)/inc -fpic -nostdinc -nostdlib  -fno-builtin -std=gnu90
 
+#RMC efi is needed to be compiled as 64 bit even DEFAULTTUNE is x32 
+CC := $(patsubst -mx32, -m64, $(CC))
+
 all: librmcefi
 
 $(RMC_LIB_OBJ): %.efi.o: %.c
Signature · 1 line
2.7.4