[OpenWrt-Devel] [PATCH] build: Add append-uboot-spl command

Hauke Mehrtens hauke at hauke-m.de
Sat Nov 24 08:06:45 EST 2018


On 11/23/18 10:52 AM, Petr Štetiar wrote:
> Example usage:
> 
>  Define Device/apalis
>    ...
>    UBOOT_PATH := $$(STAGING_DIR_IMAGE)/$$(UBOOT)-u-boot.img
>    UBOOT_SPL_PATH := $$(STAGING_DIR_IMAGE)/$$(UBOOT)-SPL
>    ARTIFACTS := spl-uboot.bin
>    ARTIFACT/spl-uboot.bin := append-uboot-spl | pad-to 68k | append-uboot
>  endef
> 
> Signed-off-by: Petr Štetiar <ynezz at true.cz>

Where do you need this? Normally the U-Boot build process creates a
binary with the spl + u-boot.

Hauke

> ---
>  include/image-commands.mk | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/include/image-commands.mk b/include/image-commands.mk
> index 05d3609..c324bc2 100644
> --- a/include/image-commands.mk
> +++ b/include/image-commands.mk
> @@ -221,6 +221,10 @@ define Build/append-uboot
>  	dd if=$(UBOOT_PATH) >> $@
>  endef
>  
> +define Build/append-uboot-spl
> +	dd if=$(UBOOT_SPL_PATH) >> $@
> +endef
> +
>  define Build/pad-to
>  	dd if=$@ of=$@.new bs=$(1) conv=sync
>  	mv $@.new $@
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20181124/4626f1ef/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list