]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/karo/tx28/Makefile
karo: merge with Ka-Ro specific tree for secure boot support
[karo-tx-uboot.git] / board / karo / tx28 / Makefile
index e7931405f3ac1d3d6daccebc8998befd10629f5b..698298c829f9ec8745fae3c3864dba66eedaf2f3 100644 (file)
@@ -1,53 +1,11 @@
 #
-# (C) Copyright 2009 DENX Software Engineering
-# Author: John Rigby <jcrigby@gmail.com>
+# (C) Copyright 2015 Lothar Waßmann <LW@KARO-electronics.de>
 #
-# See file CREDITS for list of people who contributed to this
-# project.
+# SPDX-License-Identifier:     GPL-2.0+
 #
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of
-# the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-# MA 02111-1307 USA
-#
-
-include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).o
-
-COBJS  := tx28.o
-ifeq ($(CONFIG_SPL_BUILD),y)
-       COBJS += spl_boot.o
-else
-ifeq ($(CONFIG_CMD_ROMUPDATE),y)
-       COBJS += flash.o
-endif
+obj-y                          += tx28.o
+obj-$(CONFIG_SPL_BUILD)                += spl_boot.o
+ifneq ($(CONFIG_SPL_BUILD),y)
+       obj-$(CONFIG_CMD_ROMUPDATE) += flash.o
 endif
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS))
-SOBJS  := $(addprefix $(obj),$(SOBJS))
-
-$(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
-
-$(obj)u-boot.db: u-boot.db.in
-       sed "s:@@BUILD_DIR@@:${BUILD_DIR:-.}/:" $< > $@
-
-#########################################################################
-
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################