Files
Yaya48 cf256aa081 Import QEMU upstream snapshot d2e570c
Upstream: https://gitlab.com/qemu-project/qemu.git

Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
2026-08-31 02:15:30 +02:00

19 lines
414 B
Makefile

# To specify cross compiler prefix, use CROSS_PREFIX=
# $ make CROSS_PREFIX=aarch64-linux-gnu-
.PHONY: all clean
all: a-b-kernel.h
a-b-kernel.h: aarch64.kernel
echo "$$__note" > $@
xxd -i $< | sed -e '/.*int.*/d' >> $@
aarch64.kernel: aarch64.elf
$(CROSS_PREFIX)objcopy -O binary $< $@
aarch64.elf: a-b-kernel.S
$(CROSS_PREFIX)gcc -o $@ -nostdlib -Wl,--build-id=none $<
clean:
$(RM) *.kernel *.elf *.h