blob: 209c73cd2b2388301f78792b92c9afec7ba53dd5 [file] [log] [blame]
Marek Vasutc140e982011-11-08 23:18:08 +00001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Marek Vasutc140e982011-11-08 23:18:08 +00006#
7
Masahiro Yamada65aac042013-10-17 17:34:49 +09008extra-$(CONFIG_SPL_BUILD) := start.o
Marek Vasutc140e982011-11-08 23:18:08 +00009
Masahiro Yamada65aac042013-10-17 17:34:49 +090010obj-y = clock.o mxs.o iomux.o timer.o
Marek Vasutc140e982011-11-08 23:18:08 +000011
Marek Vasut151f49d2011-12-02 03:47:40 +000012ifdef CONFIG_SPL_BUILD
Masahiro Yamada65aac042013-10-17 17:34:49 +090013obj-y += spl_boot.o spl_lradc_init.o spl_mem_init.o spl_power_init.o
Marek Vasut151f49d2011-12-02 03:47:40 +000014endif
15
Marek Vasute07153e2013-04-28 14:18:49 +000016# Specify the target for use in elftosb call
Masahiro Yamadaa0b3de02014-03-11 11:05:11 +090017MKIMAGE_TARGET-$(CONFIG_MX23) = mxsimage.mx23.cfg
18MKIMAGE_TARGET-$(CONFIG_MX28) = mxsimage.mx28.cfg
Marek Vasute07153e2013-04-28 14:18:49 +000019
Marek Vasut31fea442014-03-14 05:00:14 +010020quiet_cmd_mkimage_mxs = MKIMAGE $@
Masahiro Yamadaa0b3de02014-03-11 11:05:11 +090021cmd_mkimage_mxs = $(objtree)/tools/mkimage -n $< -T mxsimage $@ \
22 $(if $(KBUILD_VERBOSE:1=), >/dev/null)
Marek Vasute07153e2013-04-28 14:18:49 +000023
Masahiro Yamadaa0b3de02014-03-11 11:05:11 +090024u-boot.sb: $(src)/$(MKIMAGE_TARGET-y) u-boot.bin spl/u-boot-spl.bin FORCE
25 $(call if_changed,mkimage_mxs)