]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/arm926ejs/mxs/Makefile
Merge branch 'master' of git://www.denx.de/git/u-boot-usb
[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 ELFTOSB_TARGET-$(CONFIG_MX23) = imx23
18 ELFTOSB_TARGET-$(CONFIG_MX28) = imx28
19
20 $(OBJTREE)/u-boot.bd: $(SRCTREE)/$(CPUDIR)/$(SOC)/u-boot-$(ELFTOSB_TARGET-y).bd
21         sed "s@OBJTREE@$(OBJTREE)@g" $^ > $@
22
23 $(OBJTREE)/u-boot.sb: $(OBJTREE)/u-boot.bin $(OBJTREE)/spl/u-boot-spl.bin $(OBJTREE)/u-boot.bd
24                 elftosb -zf $(ELFTOSB_TARGET-y) -c $(OBJTREE)/u-boot.bd -o $(OBJTREE)/u-boot.sb