2011-11-08 23:18:08 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2011-11-08 23:18:08 +00:00
|
|
|
#
|
|
|
|
|
2013-10-17 08:34:49 +00:00
|
|
|
extra-$(CONFIG_SPL_BUILD) := start.o
|
2011-11-08 23:18:08 +00:00
|
|
|
|
2013-10-17 08:34:49 +00:00
|
|
|
obj-y = clock.o mxs.o iomux.o timer.o
|
2011-11-08 23:18:08 +00:00
|
|
|
|
2011-12-02 03:47:40 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2013-10-17 08:34:49 +00:00
|
|
|
obj-y += spl_boot.o spl_lradc_init.o spl_mem_init.o spl_power_init.o
|
2011-12-02 03:47:40 +00:00
|
|
|
endif
|
|
|
|
|
2013-04-28 14:18:49 +00:00
|
|
|
# Specify the target for use in elftosb call
|
2013-09-24 15:39:17 +00:00
|
|
|
MKIMAGE_TARGET-$(CONFIG_MX23) = mx23
|
|
|
|
MKIMAGE_TARGET-$(CONFIG_MX28) = mx28
|
2013-04-28 14:18:49 +00:00
|
|
|
|
2013-09-24 15:39:17 +00:00
|
|
|
$(OBJTREE)/mxsimage.cfg: $(SRCTREE)/$(CPUDIR)/$(SOC)/mxsimage.$(MKIMAGE_TARGET-y).cfg
|
2013-04-28 14:18:49 +00:00
|
|
|
sed "s@OBJTREE@$(OBJTREE)@g" $^ > $@
|
|
|
|
|
2013-09-24 15:39:17 +00:00
|
|
|
$(OBJTREE)/u-boot.sb: $(OBJTREE)/u-boot.bin $(OBJTREE)/spl/u-boot-spl.bin $(OBJTREE)/mxsimage.cfg
|
|
|
|
$(OBJTREE)/tools/mkimage -n $(OBJTREE)/mxsimage.cfg -T mxsimage $@
|