Marek Vasut | c140e98 | 2011-11-08 23:18:08 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Marek Vasut | c140e98 | 2011-11-08 23:18:08 +0000 | [diff] [blame] | 6 | # |
| 7 | |
Masahiro Yamada | 65aac04 | 2013-10-17 17:34:49 +0900 | [diff] [blame] | 8 | extra-$(CONFIG_SPL_BUILD) := start.o |
Marek Vasut | c140e98 | 2011-11-08 23:18:08 +0000 | [diff] [blame] | 9 | |
Masahiro Yamada | 65aac04 | 2013-10-17 17:34:49 +0900 | [diff] [blame] | 10 | obj-y = clock.o mxs.o iomux.o timer.o |
Marek Vasut | c140e98 | 2011-11-08 23:18:08 +0000 | [diff] [blame] | 11 | |
Marek Vasut | 151f49d | 2011-12-02 03:47:40 +0000 | [diff] [blame] | 12 | ifdef CONFIG_SPL_BUILD |
Masahiro Yamada | 65aac04 | 2013-10-17 17:34:49 +0900 | [diff] [blame] | 13 | obj-y += spl_boot.o spl_lradc_init.o spl_mem_init.o spl_power_init.o |
Marek Vasut | 151f49d | 2011-12-02 03:47:40 +0000 | [diff] [blame] | 14 | endif |
| 15 | |
Marek Vasut | e07153e | 2013-04-28 14:18:49 +0000 | [diff] [blame] | 16 | # Specify the target for use in elftosb call |
Masahiro Yamada | a0b3de0 | 2014-03-11 11:05:11 +0900 | [diff] [blame] | 17 | MKIMAGE_TARGET-$(CONFIG_MX23) = mxsimage.mx23.cfg |
| 18 | MKIMAGE_TARGET-$(CONFIG_MX28) = mxsimage.mx28.cfg |
Marek Vasut | e07153e | 2013-04-28 14:18:49 +0000 | [diff] [blame] | 19 | |
Marek Vasut | 31fea44 | 2014-03-14 05:00:14 +0100 | [diff] [blame^] | 20 | quiet_cmd_mkimage_mxs = MKIMAGE $@ |
Masahiro Yamada | a0b3de0 | 2014-03-11 11:05:11 +0900 | [diff] [blame] | 21 | cmd_mkimage_mxs = $(objtree)/tools/mkimage -n $< -T mxsimage $@ \ |
| 22 | $(if $(KBUILD_VERBOSE:1=), >/dev/null) |
Marek Vasut | e07153e | 2013-04-28 14:18:49 +0000 | [diff] [blame] | 23 | |
Masahiro Yamada | a0b3de0 | 2014-03-11 11:05:11 +0900 | [diff] [blame] | 24 | u-boot.sb: $(src)/$(MKIMAGE_TARGET-y) u-boot.bin spl/u-boot-spl.bin FORCE |
| 25 | $(call if_changed,mkimage_mxs) |