4 # (C) Copyright 2013 Siemens Schweiz AG
5 # (C) Heiko Schocher, DENX Software Engineering, hs@denx.de.
8 # u-boot:/board/ti/am335x/Makefile
9 # Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
11 # SPDX-License-Identifier: GPL-2.0+
14 include $(TOPDIR)/config.mk
15 ifneq ($(OBJTREE),$(SRCTREE))
16 $(shell mkdir -p $(obj)../common)
19 LIB = $(obj)lib$(BOARD).o
21 ifdef CONFIG_SPL_BUILD
26 ifndef CONFIG_SPL_BUILD
27 COBJS += ../common/factoryset.o
29 SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
30 OBJS := $(addprefix $(obj),$(COBJS))
31 SOBJS := $(addprefix $(obj),$(SOBJS))
33 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
34 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
37 rm -f $(SOBJS) $(OBJS)
40 rm -f $(LIB) core *.bak $(obj).depend
42 #########################################################################
44 # defines $(obj).depend target
45 include $(SRCTREE)/rules.mk
47 sinclude $(obj).depend
49 #########################################################################