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 <khem.raj@oss.qualcomm.com>
This commit is contained in:
Khem Raj committed 2026-10-22 23:45:16 -07:00
1 parent acd11e20cd
commit 163dbc0901
1 file changed
+6 -1
+6 -1
View File
@@ -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}