]> git.ipfire.org Git - people/ms/u-boot.git/blob - board/keymile/km_arm/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / board / keymile / km_arm / Makefile
1 #
2 # (C) Copyright 2009
3 # Marvell Semiconductor <www.marvell.com>
4 # Prafulla Wadaskar <prafulla@marvell.com>
5 #
6 # SPDX-License-Identifier: GPL-2.0+
7 #
8
9 include $(TOPDIR)/config.mk
10 ifneq ($(OBJTREE),$(SRCTREE))
11 $(shell mkdir -p $(obj)../common)
12 endif
13
14 LIB = $(obj)lib$(BOARD).o
15
16 COBJS := $(BOARD).o ../common/common.o ../common/ivm.o
17
18 ifdef CONFIG_KM_FPGA_CONFIG
19 COBJS += fpga_config.o
20 endif
21
22 SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
23 OBJS := $(addprefix $(obj),$(COBJS))
24 SOBJS := $(addprefix $(obj),$(SOBJS))
25
26 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
27 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
28
29 #########################################################################
30
31 # defines $(obj).depend target
32 include $(SRCTREE)/rules.mk
33
34 sinclude $(obj).depend
35
36 #########################################################################