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
|
2014-03-11 02:05:11 +00:00
|
|
|
MKIMAGE_TARGET-$(CONFIG_MX23) = mxsimage.mx23.cfg
|
|
|
|
MKIMAGE_TARGET-$(CONFIG_MX28) = mxsimage.mx28.cfg
|
2013-04-28 14:18:49 +00:00
|
|
|
|
2014-03-11 02:05:11 +00:00
|
|
|
quiet_cmd_mkimage_mxs = UIMAGE $@
|
|
|
|
cmd_mkimage_mxs = $(objtree)/tools/mkimage -n $< -T mxsimage $@ \
|
|
|
|
$(if $(KBUILD_VERBOSE:1=), >/dev/null)
|
2013-04-28 14:18:49 +00:00
|
|
|
|
2014-03-11 02:05:11 +00:00
|
|
|
u-boot.sb: $(src)/$(MKIMAGE_TARGET-y) u-boot.bin spl/u-boot-spl.bin FORCE
|
|
|
|
$(call if_changed,mkimage_mxs)
|