diff options
author | Nishanth Menon <nm@ti.com> | 2015-08-17 19:54:49 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-08-28 12:33:15 -0400 |
commit | cd43ddc01977ff07a731ef33b450089772e2225e (patch) | |
tree | 214b6efd0bca1ea41357a804d114a9e84a932e75 /arch/arm/mach-keystone/config.mk | |
parent | 401f2d91acac2b455dbaf222982ad461d5a2e43e (diff) | |
download | u-boot-cd43ddc01977ff07a731ef33b450089772e2225e.tar.gz |
ARM: keystone2: move the custom build rules out to keystone specific makefile
Keystone has build rules introduced by commit ef509b9063fb7 ("k2hk: add
support for k2hk SOC and EVM") and commit 0e7f2dbac6ead ("keystone: add
support for NAND gpheader image").
These are not reused by other platforms for the build, hence there is no
clear benefit is maintaining them in the generic makefile as a build
target. move these to the keystone specific make option
Original idea of using config.mk by Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'arch/arm/mach-keystone/config.mk')
-rw-r--r-- | arch/arm/mach-keystone/config.mk | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-keystone/config.mk b/arch/arm/mach-keystone/config.mk new file mode 100644 index 0000000000..3fcda92398 --- /dev/null +++ b/arch/arm/mach-keystone/config.mk @@ -0,0 +1,22 @@ +# Copyright 2015 Texas Instruments Incorporated, <www.ti.com> +# +# Lokesh Vutla <lokeshvutla@ti.com> +# +# SPDX-License-Identifier: GPL-2.0+ +# + +MKIMAGEFLAGS_u-boot-spl.gph = -A $(ARCH) -T gpimage -C none \ + -a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE) -n SPL +spl/u-boot-spl.gph: spl/u-boot-spl.bin FORCE + $(call if_changed,mkimage) + +OBJCOPYFLAGS_u-boot-spi.gph = -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO) \ + --gap-fill=0 +u-boot-spi.gph: spl/u-boot-spl.gph u-boot.img FORCE + $(call if_changed,pad_cat) + +MKIMAGEFLAGS_u-boot-nand.gph = -A $(ARCH) -T gpimage -C none \ + -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) -n U-Boot +u-boot-nand.gph: u-boot.bin FORCE + $(call if_changed,mkimage) + @dd if=/dev/zero bs=8 count=1 2>/dev/null >> $@ |