aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/gemini/image/copy-kernel/Makefile
blob: 155c35968c688473fdc08787639b9846abe4aafd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# Makefile for Gemin kernel copy stub
#
# Copyright (C) 2019 Linus Walleij <linus.walleij@linaro.org>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published
# by the Free Software Foundation.
#

AS		:= $(CROSS_COMPILE)as
OBJCOPY		:= $(CROSS_COMPILE)objcopy

BIN_FLAGS	:= -O binary -S

all: copy-kernel.bin

# Don't build dependencies, this may die if $(CC) isn't gcc
dep:

install:

%.o : %.S
	$(AS) $(ASFLAGS) -k -o $@ $<

%.bin: %.o
	$(OBJCOPY) $(BIN_FLAGS) $< $@

mrproper: clean

clean:
	rm -f copy-kernel.bin copy-kernel.o