diff options
Diffstat (limited to 'arch/arm/Makefile')
-rw-r--r-- | arch/arm/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 208f0f401c..855043aedf 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -217,6 +217,17 @@ KBUILD_TARGET := barebox.ubl KBUILD_IMAGE := barebox.ubl endif +quiet_cmd_am35xx_spi_image = SPI-IMG $@ + cmd_am35xx_spi_image = scripts/mk-am35xx-spi-image $< > $@ + +barebox.spi: $(KBUILD_BINARY) FORCE + $(call if_changed,am35xx_spi_image) + +ifeq ($(CONFIG_OMAP_BUILD_SPI),y) +KBUILD_TARGET := barebox.spi +KBUILD_IMAGE := barebox.spi +endif + pbl := arch/arm/pbl zbarebox.S zbarebox.bin zbarebox: barebox.bin $(Q)$(MAKE) $(build)=$(pbl) $(pbl)/$@ |