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