Merge remote-tracking branch 'remotes/jsnow-gitlab/tags/python-pull-request' into...
[qemu.git] / tests / migration / aarch64 / Makefile
1 # To specify cross compiler prefix, use CROSS_PREFIX=
2 # $ make CROSS_PREFIX=aarch64-linux-gnu-
3
4 .PHONY: all clean
5 all: a-b-kernel.h
6
7 a-b-kernel.h: aarch64.kernel
8 echo "$$__note" > $@
9 xxd -i $< | sed -e 's/.*int.*//' >> $@
10
11 aarch64.kernel: aarch64.elf
12 $(CROSS_PREFIX)objcopy -O binary $< $@
13
14 aarch64.elf: a-b-kernel.S
15 $(CROSS_PREFIX)gcc -o $@ -nostdlib -Wl,--build-id=none $<
16
17 clean:
18 $(RM) *.kernel *.elf