From 40ad16b9748ea6edb70e1737773584e419acf2a0 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 11 Dec 2019 15:52:37 +0000 Subject: toradex-kernel-localversion: fix compilation with mainline recipe The mainline recipe has the .config file ready later then our kernel recipes. Use kernel_do_configure_append() which seems to work for both cases. Signed-off-by: Stefan Agner --- classes/toradex-kernel-localversion.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/toradex-kernel-localversion.bbclass b/classes/toradex-kernel-localversion.bbclass index 00bfd75..26853e4 100644 --- a/classes/toradex-kernel-localversion.bbclass +++ b/classes/toradex-kernel-localversion.bbclass @@ -13,7 +13,7 @@ SCMVERSION ??= "y" LOCALVERSION ?= "-${TDX_VERSION}" -do_configure_prepend() { +kernel_do_configure_append() { sed -i -e /CONFIG_LOCALVERSION/d ${B}/.config echo "CONFIG_LOCALVERSION=\"${LOCALVERSION}\"" >> ${B}/.config -- cgit v1.2.3