From 163dbc09017ec53963a58a714882c67ad64bd332 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 22 Oct 2026 21:36:28 -0700 Subject: [PATCH] waf-samba: Reconfigure when the cross-answers file changes do_configure reads the per architecture cross-answers file from the layer by path rather than through SRC_URI, so editing it does not change the task signature, and existing builds keep the old answers until they are reconfigured by hand. Make the answers directory a variable and add the file to do_configure[file-checksums]. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- meta-networking/classes/waf-samba.bbclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta-networking/classes/waf-samba.bbclass b/meta-networking/classes/waf-samba.bbclass index cb78ce6b0d..fcec1bea16 100644 --- a/meta-networking/classes/waf-samba.bbclass +++ b/meta-networking/classes/waf-samba.bbclass @@ -65,10 +65,15 @@ def get_waf_parallel_make(d): # to help generate the cross answer when adding new board support. CROSS_METHOD ?= "answer" +WAF_CROSS_ANSWERS_PATH ?= "${THISDIR}/../../files/waf-cross-answers" + +# The cross-answers file is read from the layer rather than through +# SRC_URI, so add it to the checksums to reconfigure when it changes. +do_configure[file-checksums] += "${WAF_CROSS_ANSWERS_PATH}/cross-answers-${TARGET_ARCH}.txt:True" + do_configure() { # Prepare the cross-answers file - WAF_CROSS_ANSWERS_PATH="${THISDIR}/../../files/waf-cross-answers" CROSS_ANSWERS="${B}/cross-answers-${TARGET_ARCH}.txt" if [ -e ${CROSS_ANSWERS} ]; then rm -f ${CROSS_ANSWERS}