ar71xx: stop image building if a loader is missing
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30877 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
c1a889d1a3
commit
3cd6cb21cd
|
@ -299,6 +299,7 @@ define Image/Build/Planex/loader
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/Planex
|
define Image/Build/Planex
|
||||||
|
[ -e "$(KDIR)/loader-$(2).gz" ]
|
||||||
$(call MkuImage,gzip,,$(KDIR)/loader-$(2).gz,$(KDIR_TMP)/vmlinux-$(2).uImage)
|
$(call MkuImage,gzip,,$(KDIR)/loader-$(2).gz,$(KDIR_TMP)/vmlinux-$(2).uImage)
|
||||||
$(call MkuImageOKLI,$(2))
|
$(call MkuImageOKLI,$(2))
|
||||||
( \
|
( \
|
||||||
|
@ -338,6 +339,7 @@ define Image/Build/TPLINKOLD/loader
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/TPLINKOLD
|
define Image/Build/TPLINKOLD
|
||||||
|
[ -e "$(KDIR)/loader-$(2).gz" ]
|
||||||
$(call MkuImageOKLI,$(2))
|
$(call MkuImageOKLI,$(2))
|
||||||
( \
|
( \
|
||||||
dd if=$(KDIR)/loader-$(2).gz bs=7680 count=1 conv=sync; \
|
dd if=$(KDIR)/loader-$(2).gz bs=7680 count=1 conv=sync; \
|
||||||
|
@ -368,6 +370,7 @@ define Image/Build/TPLINK/loader
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/TPLINK
|
define Image/Build/TPLINK
|
||||||
|
[ -e "$(KDIR)/loader-$(2).gz" ]
|
||||||
$(call MkuImageOKLI,$(2))
|
$(call MkuImageOKLI,$(2))
|
||||||
( \
|
( \
|
||||||
dd if=$(KDIR)/loader-$(2).gz bs=7680 count=1 conv=sync; \
|
dd if=$(KDIR)/loader-$(2).gz bs=7680 count=1 conv=sync; \
|
||||||
|
|
Loading…
Reference in New Issue