xref: /openbmc/qemu/tests/migration/ppc64/Makefile (revision 34cc54fb)
1.PHONY: all clean
2all: a-b-kernel.h
3
4a-b-kernel.h: ppc64.kernel
5	echo "$$__note" > $@
6	xxd -i $< | sed -e 's/.*int.*//' >> $@
7
8ppc64.kernel: ppc64.elf
9	$(CROSS_PREFIX)objcopy -O binary -S $< $@
10
11ppc64.elf: a-b-kernel.S
12	$(CROSS_PREFIX)gcc -static -o $@ -nostdlib -Wl,--build-id=none $<
13
14clean:
15	$(RM) *.kernel *.elf
16