diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-05-27 16:35:56 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2022-06-01 15:47:43 +0100 |
commit | d695918f7bd92604e561b6963e4ca9aef83f489b (patch) | |
tree | 4cc620061acbb4b90929f272f909ac6ac16a8530 /pc-bios | |
parent | 33ab4787422b04a3f4c94bbded6b05021d08b27d (diff) | |
download | qemu-d695918f7bd92604e561b6963e4ca9aef83f489b.zip qemu-d695918f7bd92604e561b6963e4ca9aef83f489b.tar.gz qemu-d695918f7bd92604e561b6963e4ca9aef83f489b.tar.bz2 |
configure: enable cross compilation of vof
While container-based cross compilers are not supported, this already
makes it possible to build vof on any machine that has an installation
of GCC and binutils for 32- or 64-bit PowerPC.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220517092616.1272238-16-pbonzini@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220527153603.887929-27-alex.bennee@linaro.org>
Diffstat (limited to 'pc-bios')
-rw-r--r-- | pc-bios/vof/Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/pc-bios/vof/Makefile b/pc-bios/vof/Makefile index aa1678c..391ac0d 100644 --- a/pc-bios/vof/Makefile +++ b/pc-bios/vof/Makefile @@ -1,11 +1,10 @@ -all: build-all +include config.mak +VPATH=$(SRC_DIR) +all: vof.bin -build-all: vof.bin - -CROSS ?= -CC = $(CROSS)gcc -LD = $(CROSS)ld -OBJCOPY = $(CROSS)objcopy +CC ?= $(CROSS)gcc +LD ?= $(CROSS)ld +OBJCOPY ?= $(CROSS)objcopy %.o: %.S $(CC) -m32 -mbig-endian -mcpu=power4 -c -o $@ $< @@ -14,10 +13,12 @@ OBJCOPY = $(CROSS)objcopy $(CC) -m32 -mbig-endian -mcpu=power4 -c -fno-stack-protector -o $@ $< vof.elf: entry.o main.o ci.o bootmem.o libc.o - $(LD) -nostdlib -e_start -Tvof.lds -EB -o $@ $^ + $(LD) -nostdlib -e_start -T$(SRC_DIR)/vof.lds -EB -o $@ $^ %.bin: %.elf $(OBJCOPY) -O binary -j .text -j .data -j .toc -j .got2 $^ $@ clean: rm -f *.o vof.bin vof.elf *~ + +.PHONY: all clean |