summaryrefslogtreecommitdiffstats
path: root/pc-bios
diff options
context:
space:
mode:
authorPaolo Bonzini2022-06-15 11:42:01 +0200
committerPaolo Bonzini2022-07-06 09:31:15 +0200
commitd44f2f96f7939c898834f98f7dd7c7acc2b2fed0 (patch)
tree76c3dbb552849673a56979a01e50ae852ac4a3ca /pc-bios
parentconfigure, pc-bios/s390-ccw: pass cross CFLAGS correctly (diff)
downloadqemu-d44f2f96f7939c898834f98f7dd7c7acc2b2fed0.tar.gz
qemu-d44f2f96f7939c898834f98f7dd7c7acc2b2fed0.tar.xz
qemu-d44f2f96f7939c898834f98f7dd7c7acc2b2fed0.zip
configure, pc-bios/vof: pass cross CFLAGS correctly
Use the flags passed to the configure script for the ppc cross compiler, which in fact default to those that are needed to get the 32-bit ISA. Add the endianness flag so that it remains possible to use a ppc64le compiler to compile VOF. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'pc-bios')
-rw-r--r--pc-bios/vof/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/pc-bios/vof/Makefile b/pc-bios/vof/Makefile
index 391ac0d600..8809c82768 100644
--- a/pc-bios/vof/Makefile
+++ b/pc-bios/vof/Makefile
@@ -2,15 +2,13 @@ include config.mak
VPATH=$(SRC_DIR)
all: vof.bin
-CC ?= $(CROSS)gcc
-LD ?= $(CROSS)ld
-OBJCOPY ?= $(CROSS)objcopy
+EXTRA_CFLAGS += -mcpu=power4
%.o: %.S
- $(CC) -m32 -mbig-endian -mcpu=power4 -c -o $@ $<
+ $(CC) $(EXTRA_CFLAGS) -c -o $@ $<
%.o: %.c
- $(CC) -m32 -mbig-endian -mcpu=power4 -c -fno-stack-protector -o $@ $<
+ $(CC) $(EXTRA_CFLAGS) -c -fno-stack-protector -o $@ $<
vof.elf: entry.o main.o ci.o bootmem.o libc.o
$(LD) -nostdlib -e_start -T$(SRC_DIR)/vof.lds -EB -o $@ $^