1 # To specify cross compiler prefix, use CROSS_PREFIX=
2 # $ make CROSS_PREFIX=aarch64-linux-gnu-
7 a-b-kernel.h
: aarch64.kernel
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
$<