xref: /openbmc/qemu/tests/migration/aarch64/Makefile (revision 0b8f7448)
1# To specify cross compiler prefix, use CROSS_PREFIX=
2#   $ make CROSS_PREFIX=aarch64-linux-gnu-
3
4.PHONY: all clean
5all: a-b-kernel.h
6
7a-b-kernel.h: aarch64.kernel
8	echo "$$__note" > $@
9	xxd -i $< | sed -e 's/.*int.*//' >> $@
10
11aarch64.kernel: aarch64.elf
12	$(CROSS_PREFIX)objcopy -O binary $< $@
13
14aarch64.elf: a-b-kernel.S
15	$(CROSS_PREFIX)gcc -o $@ -nostdlib -Wl,--build-id=none $<
16
17clean:
18	$(RM) *.kernel *.elf
19