xref: /openbmc/u-boot/arch/arm/cpu/arm926ejs/mxs/Makefile (revision 6496d00f)
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
8extra-$(CONFIG_SPL_BUILD) := start.o
9
10obj-y	= clock.o mxs.o iomux.o timer.o
11
12ifdef	CONFIG_SPL_BUILD
13obj-y	+= spl_boot.o spl_lradc_init.o spl_mem_init.o spl_power_init.o
14endif
15
16# Specify the target for use in elftosb call
17MKIMAGE_TARGET-$(CONFIG_MX23) = mx23
18MKIMAGE_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 $@
25