]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/karo/common/Makefile
karo: tx6: Finalize support for TX6Q-1020
[karo-tx-uboot.git] / board / karo / common / Makefile
1 #
2 # (C) Copyright 2012 Lothar Waßmann <LW@KARO-electronics.de>
3 #
4 # See file CREDITS for list of people who contributed to this
5 # project.
6 #
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # version 2 as published by the Free Software Foundation.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16
17 include $(TOPDIR)/config.mk
18
19 ifneq ($(OBJTREE),$(SRCTREE))
20 $(shell mkdir -p $(obj)board/$(VENDOR)/common)
21 endif
22
23 LIB     = $(obj)lib$(VENDOR).o
24
25 ifeq ($(CONFIG_SPL_BUILD),)
26         COBJS-$(CONFIG_OF_BOARD_SETUP)  += fdt.o
27         COBJS-$(CONFIG_SPLASH_SCREEN)   += splashimage.o
28 endif
29 COBJS-$(CONFIG_CMD_NAND)                += nand.o
30 COBJS-$(CONFIG_ENV_IS_IN_MMC)           += mmc.o
31
32 COBJS   := $(COBJS-y)
33 SOBJS   := 
34
35 SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
36 OBJS    := $(addprefix $(obj),$(COBJS))
37 SOBJS   := $(addprefix $(obj),$(SOBJS))
38
39 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
40         $(call cmd_link_o_target, $(OBJS) $(SOBJS))
41
42 all:    $(LIB)
43
44 #########################################################################
45
46 include $(SRCTREE)/rules.mk
47
48 sinclude $(obj).depend
49
50 #########################################################################