summaryrefslogblamecommitdiffstats
path: root/tests/migration/aarch64/Makefile
blob: 9c4fa18e7637263fee12a551b8cd1250c9d96e02 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                 
# 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 's/.*int.*//' >> $@

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