Nishanth Menon | cb66cbe | 2015-08-17 19:54:49 +0530 | [diff] [blame] | 1 | # Copyright 2015 Texas Instruments Incorporated, <www.ti.com> |
| 2 | # |
| 3 | # Lokesh Vutla <lokeshvutla@ti.com> |
| 4 | # |
| 5 | # SPDX-License-Identifier: GPL-2.0+ |
| 6 | # |
| 7 | |
Lokesh Vutla | 4a4c9f5 | 2015-08-17 19:54:51 +0530 | [diff] [blame^] | 8 | ifndef CONFIG_SPL_BUILD |
| 9 | ALL-y += MLO |
| 10 | endif |
| 11 | |
Nishanth Menon | cb66cbe | 2015-08-17 19:54:49 +0530 | [diff] [blame] | 12 | MKIMAGEFLAGS_u-boot-spl.gph = -A $(ARCH) -T gpimage -C none \ |
| 13 | -a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE) -n SPL |
| 14 | spl/u-boot-spl.gph: spl/u-boot-spl.bin FORCE |
| 15 | $(call if_changed,mkimage) |
| 16 | |
| 17 | OBJCOPYFLAGS_u-boot-spi.gph = -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO) \ |
| 18 | --gap-fill=0 |
| 19 | u-boot-spi.gph: spl/u-boot-spl.gph u-boot.img FORCE |
| 20 | $(call if_changed,pad_cat) |
| 21 | |
Lokesh Vutla | 0afbe87 | 2015-08-17 19:54:50 +0530 | [diff] [blame] | 22 | ifndef CONFIG_SPL_BUILD |
| 23 | MKIMAGEFLAGS_MLO = -A $(ARCH) -T gpimage -C none \ |
Nishanth Menon | cb66cbe | 2015-08-17 19:54:49 +0530 | [diff] [blame] | 24 | -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) -n U-Boot |
Lokesh Vutla | 0afbe87 | 2015-08-17 19:54:50 +0530 | [diff] [blame] | 25 | MLO: u-boot.bin FORCE |
Nishanth Menon | cb66cbe | 2015-08-17 19:54:49 +0530 | [diff] [blame] | 26 | $(call if_changed,mkimage) |
| 27 | @dd if=/dev/zero bs=8 count=1 2>/dev/null >> $@ |
Lokesh Vutla | 0afbe87 | 2015-08-17 19:54:50 +0530 | [diff] [blame] | 28 | endif |