2 # Makefile for Gemin kernel copy stub
4 # Copyright (C) 2019 Linus Walleij <linus.walleij@linaro.org>
6 # This program is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License version 2 as published
8 # by the Free Software Foundation.
11 AS
:= $(CROSS_COMPILE
)as
12 OBJCOPY
:= $(CROSS_COMPILE
)objcopy
14 BIN_FLAGS
:= -O binary
-S
18 # Don't build dependencies, this may die if $(CC) isn't gcc
24 $(AS
) $(ASFLAGS
) -k
-o
$@
$<
27 $(OBJCOPY
) $(BIN_FLAGS
) $< $@
32 rm -f copy-kernel.bin copy-kernel.o