]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arm/cpu/arm926ejs/mxs/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / arm / cpu / arm926ejs / mxs / Makefile
CommitLineData
6e9a0a39
MV
1#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
1a459660 5# SPDX-License-Identifier: GPL-2.0+
6e9a0a39
MV
6#
7
8include $(TOPDIR)/config.mk
9
10LIB = $(obj)lib$(SOC).o
11
41e54972 12COBJS = clock.o mxs.o iomux.o timer.o
6e9a0a39 13
c944a3ef 14ifdef CONFIG_SPL_BUILD
3f3255c3 15COBJS += spl_boot.o spl_lradc_init.o spl_mem_init.o spl_power_init.o
c944a3ef
MV
16endif
17
6e9a0a39
MV
18SRCS := $(START:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20START := $(addprefix $(obj),$(START))
21
22all: $(obj).depend $(LIB)
23
24$(LIB): $(OBJS)
25 $(call cmd_link_o_target, $(OBJS))
26
714dc001
MV
27# Specify the target for use in elftosb call
28ELFTOSB_TARGET-$(CONFIG_MX23) = imx23
29ELFTOSB_TARGET-$(CONFIG_MX28) = imx28
30
31$(OBJTREE)/u-boot.bd: $(SRCTREE)/$(CPUDIR)/$(SOC)/u-boot-$(ELFTOSB_TARGET-y).bd
32 sed "s@OBJTREE@$(OBJTREE)@g" $^ > $@
33
34$(OBJTREE)/u-boot.sb: $(OBJTREE)/u-boot.bin $(OBJTREE)/spl/u-boot-spl.bin $(OBJTREE)/u-boot.bd
35 elftosb -zf $(ELFTOSB_TARGET-y) -c $(OBJTREE)/u-boot.bd -o $(OBJTREE)/u-boot.sb
36
6e9a0a39
MV
37#########################################################################
38
39# defines $(obj).depend target
40include $(SRCTREE)/rules.mk
41
42sinclude $(obj).depend
43
44#########################################################################