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

Steven Haigh netwiz at crc.id.au
Sat Jul 9 00:56:58 PDT 2016


Tested-by: Steven Haigh <netwiz at crc.id.au>

On 9/07/2016 11:06 AM, Yousong Zhou wrote:
> 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
> 

-- 
Steven Haigh

Email: netwiz at crc.id.au
Web: https://www.crc.id.au
Phone: (03) 9001 6090 - 0412 935 897

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/lede-dev/attachments/20160709/c09ce7c4/attachment.sig>


More information about the Lede-dev mailing list