]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/arm926ejs/mxs/Makefile
Merge branch 'u-boot-imx/master' into 'u-boot-arm/master'
[karo-tx-uboot.git] / arch / arm / cpu / arm926ejs / mxs / Makefile
1 #
2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # SPDX-License-Identifier:      GPL-2.0+
6 #
7
8 include $(TOPDIR)/config.mk
9
10 LIB     = $(obj)lib$(SOC).o
11
12 COBJS   = clock.o mxs.o iomux.o timer.o
13
14 ifdef   CONFIG_SPL_BUILD
15 COBJS   += spl_boot.o spl_lradc_init.o spl_mem_init.o spl_power_init.o
16 endif
17
18 SRCS    := $(START:.o=.S) $(COBJS:.o=.c)
19 OBJS    := $(addprefix $(obj),$(COBJS))
20 START   := $(addprefix $(obj),$(START))
21
22 all:    $(obj).depend $(LIB)
23
24 $(LIB): $(OBJS)
25         $(call cmd_link_o_target, $(OBJS))
26
27 # Specify the target for use in elftosb call
28 MKIMAGE_TARGET-$(CONFIG_MX23) = mx23
29 MKIMAGE_TARGET-$(CONFIG_MX28) = mx28
30
31 $(OBJTREE)/mxsimage.cfg: $(SRCTREE)/$(CPUDIR)/$(SOC)/mxsimage.$(MKIMAGE_TARGET-y).cfg
32         sed "s@OBJTREE@$(OBJTREE)@g" $^ > $@
33
34 $(OBJTREE)/u-boot.sb: $(OBJTREE)/u-boot.bin $(OBJTREE)/spl/u-boot-spl.bin $(OBJTREE)/mxsimage.cfg
35         $(OBJTREE)/tools/mkimage -n $(OBJTREE)/mxsimage.cfg -T mxsimage $@
36
37
38 #########################################################################
39
40 # defines $(obj).depend target
41 include $(SRCTREE)/rules.mk
42
43 sinclude $(obj).depend
44
45 #########################################################################