From 0f26adcd61534024ad8aafd5baf7647feadcb388 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Tue, 7 Jul 2020 10:32:09 +0200 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. Signed-off-by: David Bauer Acked-by: Adrian Schmutzler --- include/target.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/target.mk b/include/target.mk index 2557e74967..24b740ccfd 100644 --- a/include/target.mk +++ b/include/target.mk @@ -228,7 +228,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