]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/karo/tx53/Makefile
karo: tx53: add 'romupdate' command to update the U-Boot image in flash
[karo-tx-uboot.git] / board / karo / tx53 / 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 LDSCRIPT := $(BOARDDIR)/u-boot.lds
20
21 LIB     = $(obj)lib$(BOARD).o
22
23 COBJS   := tx53.o
24 ifeq ($(CONFIG_CMD_ROMUPDATE),y)
25         COBJS += flash.o
26 endif
27 SOBJS   := lowlevel_init.o
28
29 SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
30 OBJS    := $(addprefix $(obj),$(COBJS))
31 SOBJS   := $(addprefix $(obj),$(SOBJS))
32
33 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
34         $(call cmd_link_o_target, $(OBJS) $(SOBJS))
35
36 #########################################################################
37
38 include $(SRCTREE)/rules.mk
39
40 sinclude $(obj).depend
41
42 #########################################################################