Commit 0ed6043b authored by Michael Tokarev's avatar Michael Tokarev
Browse files

build x86 optionrom binaries for qemu-system-data (separate makefile)

parent f3f3a2b5
LD = ld
OBJCOPY = objcopy
CC = cc
CFLAGS = -O2 -m16 -Wa,-32 -march=i486 \
-ffreestanding -fno-stack-protector -fno-pie \
VPATH = ${SRC_PATH}/pc-bios/optionrom
BINS = kvmvapic.bin linuxboot.bin linuxboot_dma.bin multiboot.bin
all: ${BINS}
%.o: %.S
${CC} ${CFLAGS} -c -o $@ $<
%.o: %.c
${CC} ${CFLAGS} -c -o $@ $<
%.img: %.o
${LD} -m elf_i386 -T ${SRC_PATH}/pc-bios/optionrom/ -s -o $@ $<
%.raw: %.img
${OBJCOPY} -O binary -j .text $< $@
%.bin: %.raw
python ${SRC_PATH}/scripts/ $< $@
rm -f ${BINS}
.PHONY: all clean
pc-bios/keymaps usr/share/qemu
pc-bios/qemu-icon.bmp usr/share/qemu
pc-bios/qemu_logo_no_text.svg usr/share/qemu
# x86 optionrom and other firmware files
b/fw/*.bin usr/share/qemu
# s390x firmware
b/fw/s390*.img usr/share/qemu
......@@ -299,6 +299,9 @@ build-indep:
mkdir -p b/fw
# x86 optionrom
${MAKE} -f ${CURDIR}/debian/optionrom.mak -C ${CURDIR}/b/fw SRC_PATH=${CURDIR}
# s390x firmware in pc-bios/s390-ccw
${S390X_CROSSPFX}gcc -Wl,-pie -fPIE -nostdlib -o b/fw/s390-ccw.img \
-ffreestanding -fno-delete-null-pointer-checks -msoft-float \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment