ar71xx: stop image building if a loader is missing
authorGabor Juhos <juhosg@openwrt.org>
Sun, 11 Mar 2012 14:03:28 +0000 (14:03 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 11 Mar 2012 14:03:28 +0000 (14:03 +0000)
SVN-Revision: 30877

target/linux/ar71xx/image/Makefile

index f7df1026a1086b88f03338b98b37f1135838975a..8fcaa08d1a8ead2f507e7066127ad7dd8bc08684 100644 (file)
@@ -299,6 +299,7 @@ define Image/Build/Planex/loader
 endef
 
 define Image/Build/Planex
+       [ -e "$(KDIR)/loader-$(2).gz" ]
        $(call MkuImage,gzip,,$(KDIR)/loader-$(2).gz,$(KDIR_TMP)/vmlinux-$(2).uImage)
        $(call MkuImageOKLI,$(2))
        ( \
@@ -338,6 +339,7 @@ define Image/Build/TPLINKOLD/loader
 endef
 
 define Image/Build/TPLINKOLD
+       [ -e "$(KDIR)/loader-$(2).gz" ]
        $(call MkuImageOKLI,$(2))
        ( \
                dd if=$(KDIR)/loader-$(2).gz bs=7680 count=1 conv=sync; \
@@ -368,6 +370,7 @@ define Image/Build/TPLINK/loader
 endef
 
 define Image/Build/TPLINK
+       [ -e "$(KDIR)/loader-$(2).gz" ]
        $(call MkuImageOKLI,$(2))
        ( \
                dd if=$(KDIR)/loader-$(2).gz bs=7680 count=1 conv=sync; \