[OpenWrt-Devel] [PATCH 1/4] gemini: copy kernel image to BIN_DIR

John Crispin blogic at openwrt.org
Thu Jul 9 01:26:55 EDT 2015



On 08/07/2015 23:00, Roman Yeryomin wrote:
> Signed-off-by: Roman Yeryomin <roman at advem.lv>
> ---
>  target/linux/gemini/image/Makefile | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/target/linux/gemini/image/Makefile b/target/linux/gemini/image/Makefile
> index 7ed1d61..1c51b62 100644
> --- a/target/linux/gemini/image/Makefile
> +++ b/target/linux/gemini/image/Makefile
> @@ -74,7 +74,8 @@ define Image/Build
>  	dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img of=$(BIN_DIR)/rd.gz bs=6144k count=1
>  #	dd if=/dev/zero of=$(BIN_DIR)/hddapp.tgz bs=6144k count=1
>  	dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img of=$(BIN_DIR)/hddapp.tgz bs=6144k count=1 seek=1
> -	cp $(KDIR)/$(IMG_PREFIX)-nas4220-zImage $(BIN_DIR)/zImage
> +	cp $(KDIR)/$(IMG_PREFIX)-nas4220-zImage $(BIN_DIR)/
> +	cp $(BIN_DIR)/$(IMG_PREFIX)-nas4220-zImage $(BIN_DIR)/zImage

this will lead to the same file being int the bin/ folder twice with
different names. is that intentional ?



>  	cp ./ImageInfo-ib4220 $(BIN_DIR)/ImageInfo
>  	(cd $(BIN_DIR); tar -czf $(IMG_PREFIX)-sysupgrade-ib4220.tar.gz ImageInfo zImage rd.gz hddapp.tgz)
>  	mv $(BIN_DIR)/rd.gz $(BIN_DIR)/$(IMG_PREFIX)-nas4220-rd.gz
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list