[PATCH] build: conditionally enable testing-kernel feature

mail at adrianschmutzler.de mail at adrianschmutzler.de
Mon Jul 6 05:46:43 EDT 2020


> -----Original Message-----
> From: openwrt-devel [mailto:openwrt-devel-bounces at lists.openwrt.org]
> On Behalf Of David Bauer
> Sent: Montag, 6. Juli 2020 11:05
> To: openwrt-devel at lists.openwrt.org
> Subject: [PATCH] build: conditionally enable testing-kernel feature
> 
> Only enable the testing-kernel feature for the target when the testing kernel
> version does not match the stable kernel version.
> 
> This way, the option for building the testing kernel in the build config menu is
> only exposed when there's a testing kernel available.

Acked-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>

I also quickly "tested" it.

I think this should go in no matter how you finally decide to go on with the ath79 bump.

Best

Adrian

> 
> Signed-off-by: David Bauer <mail at david-bauer.net>
> ---
>  include/target.mk | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/include/target.mk b/include/target.mk index
> a2ceb7f783..64292138b7 100644
> --- a/include/target.mk
> +++ b/include/target.mk
> @@ -223,7 +223,9 @@ ifeq ($(DUMP),1)
>      .PRECIOUS: $(TMP_CONFIG)
> 
>      ifdef KERNEL_TESTING_PATCHVER
> -      FEATURES += testing-kernel
> +      ifneq ($(KERNEL_TESTING_PATCHVER),$(KERNEL_PATCHVER))
> +        FEATURES += testing-kernel
> +      endif
>      endif
>      ifneq ($(CONFIG_OF),)
>        FEATURES += dt
> --
> 2.27.0
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
-------------- 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.openwrt.org/pipermail/openwrt-devel/attachments/20200706/737acfc4/attachment-0001.sig>


More information about the openwrt-devel mailing list