]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/arm926ejs/mxs/Makefile
152546eb417a321031559c809b5827827026f9ca
[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 extra-$(CONFIG_SPL_BUILD) := start.o
9
10 obj-y   = clock.o mxs.o iomux.o timer.o
11
12 ifdef   CONFIG_SPL_BUILD
13 obj-y   += spl_boot.o spl_lradc_init.o spl_mem_init.o spl_power_init.o
14 endif
15
16 # Specify the target for use in elftosb call
17 MKIMAGE_TARGET-$(CONFIG_MX23) = mx23
18 MKIMAGE_TARGET-$(CONFIG_MX28) = mx28
19
20 $(OBJTREE)/mxsimage.cfg: $(SRCTREE)/$(CPUDIR)/$(SOC)/mxsimage.$(MKIMAGE_TARGET-y).cfg
21         sed "s@OBJTREE@$(OBJTREE)@g" $^ > $@
22
23 $(OBJTREE)/u-boot.sb: $(OBJTREE)/u-boot.bin $(OBJTREE)/spl/u-boot-spl.bin $(OBJTREE)/mxsimage.cfg
24         $(OBJTREE)/tools/mkimage -n $(OBJTREE)/mxsimage.cfg -T mxsimage $@