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 17ELFTOSB_TARGET-$(CONFIG_MX23) = imx23 18ELFTOSB_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 25