summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2019-12-11 15:52:37 +0000
committerStefan Agner <stefan.agner@toradex.com>2019-12-11 15:54:02 +0000
commit40ad16b9748ea6edb70e1737773584e419acf2a0 (patch)
treedfa3f14610bbb5f42fdbc69ef04919da4206be7b
parent8c0446b33647bd20a0cb06e7ceeeda7b32467305 (diff)
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 <stefan.agner@toradex.com>
-rw-r--r--classes/toradex-kernel-localversion.bbclass2
1 files changed, 1 insertions, 1 deletions
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