[OpenWrt-Devel] [PATCH] ath79: make UBNT Nano/Loco AC factory images reproducible

Adrian Schmutzler mail at adrianschmutzler.de
Mon Oct 7 06:40:49 EDT 2019


Hi Petr,

> -----Original Message-----
> From: openwrt-devel [mailto:openwrt-devel-bounces at lists.openwrt.org] On Behalf Of Petr Štetiar
> Sent: Montag, 7. Oktober 2019 10:22
> To: openwrt-devel at lists.openwrt.org
> Cc: Petr Štetiar <ynezz at true.cz>
> Subject: [OpenWrt-Devel] [PATCH] ath79: make UBNT Nano/Loco AC factory images reproducible
> 
> Current factory images are built on top of sysupgrade images which
> contains metadata which are causing image reproducibility issues, so
> let's build factory images from the scratch. While at it, refactor the
> shared vars into common base as well.
> 
> Ref: http://lists.infradead.org/pipermail/openwrt-devel/2019-October/019205.html
> Reported-by: Paul Spooren <mail at aparcar.org>
> Signed-off-by: Petr Štetiar <ynezz at true.cz>
> ---
>  target/linux/ath79/image/generic-ubnt.mk | 24 ++++++++++++------------
>  1 file changed, 12 insertions(+), 12 deletions(-)
> 
> diff --git a/target/linux/ath79/image/generic-ubnt.mk b/target/linux/ath79/image/generic-ubnt.mk
> index 6ae766e29331..9ab11324b411 100644
> --- a/target/linux/ath79/image/generic-ubnt.mk
> +++ b/target/linux/ath79/image/generic-ubnt.mk
> @@ -114,40 +114,40 @@ define Device/ubnt_bullet-m-xw
>  endef
>  TARGET_DEVICES += ubnt_bullet-m-xw
> 
> +define Device/ubnt-nano-ac
> +  DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct
> +  IMAGE_SIZE := 15744k
> +  IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
> +	append-rootfs | pad-rootfs | mkubntimage-split | \
> +	check-size $$$$(IMAGE_SIZE)
> +endef
> +
>  define Device/ubnt_lap-120
>    $(Device/ubnt-wa)
>    DEVICE_MODEL := LiteAP ac
>    DEVICE_VARIANT := LAP-120
> -  DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct
> -  IMAGE_SIZE := 15744k
> -  IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | mkubntimage-split
> +  $(Device/ubnt-nano-ac)

If you call it ubnt-nano-ac anyway, you could also include the "$(Device/ubnt-wa)" in the common node.

One could also think about naming it ubnt_nano-ac (with underscore) for consistency, like what we have for ubnt_routerstation_common and ubnt_unifiac.

Best

Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20191007/e5344dc9/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