[LEDE-DEV] [RFC v2 1/2] ar71xx: image: fix making loader kernel for seama

Yousong Zhou yszhou4tech at gmail.com
Fri Jul 8 18:06:45 PDT 2016


Signed-off-by: Yousong Zhou <yszhou4tech at gmail.com>
---
v2 <- v1

	- Changed "DEVICE_VARS :=" to "DEVICE_VARS +="

 target/linux/ar71xx/image/generic.mk | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/target/linux/ar71xx/image/generic.mk b/target/linux/ar71xx/image/generic.mk
index b8e70a4..a341a78 100644
--- a/target/linux/ar71xx/image/generic.mk
+++ b/target/linux/ar71xx/image/generic.mk
@@ -461,6 +461,7 @@ define Build/seama-sysupgrade
 		-i $(word 1,$^) \
 		-m "dev=/dev/mtdblock/1" -m "type=firmware"
 	( dd if=$(word 1,$^).seama bs=64k conv=sync; dd if=$(word 2,$^) ) >$@
+	rm -f $(word 1,$^).seama
 endef
 
 define Build/seama-initramfs
@@ -472,14 +473,15 @@ endef
 
 define Device/seama
   CONSOLE := ttyS0,115200
-  KERNEL := kernel-bin | loader-kernel-cmdline | lzma
+  LOADER_TYPE := bin
+  KERNEL := kernel-bin | lzma | loader-kernel-cmdline | lzma
   KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | seama-initramfs
   KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX).seama
   IMAGES := sysupgrade.bin factory.bin
   IMAGE/sysupgrade.bin := seama-sysupgrade $$$$(SEAMA_SIGNATURE) | check-size $$$$(IMAGE_SIZE)
   IMAGE/factory.bin := seama-factory $$$$(SEAMA_SIGNATURE) | check-size $$$$(IMAGE_SIZE)
   SEAMA_SIGNATURE :=
-  DEVICE_VARS := SEAMA_SIGNATURE
+  DEVICE_VARS += SEAMA_SIGNATURE
 endef
 
 define Device/mynet-n600
-- 
2.6.4




More information about the Lede-dev mailing list