From 0bde54613bd5cd22e7f363f516f03932f25a15ee Mon Sep 17 00:00:00 2001 From: Junjie Mao Date: Mon, 28 Nov 2022 17:28:21 +0800 Subject: [PATCH] debian/rules: search for XML files only When searching for scenario XMLs that are saved under the same directory as a board XML, debian/rules uses the wildcard `*` which includes other non-XML files. That causes some non-XML files to be considered as scenario XMLs as well and will cause build-time errors when the build system attempts to parse them as XMLs. Change the wildcard expression to `*.xml` to restrict the found files to be XML. Tracked-On: #8344 Signed-off-by: Junjie Mao --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 42c8529a2..05bb67679 100755 --- a/debian/rules +++ b/debian/rules @@ -62,7 +62,7 @@ $(eval $(call unquote,$(shell xmllint --xpath '/acrn-config/@board' $1 2>/dev/nu $(eval $(if $(board), \ $(eval config_$(board) := $1) \ $(eval boardlist := $(sort $(boardlist) $(board))) \ - $(foreach f,$(wildcard $(addprefix $(dir $1),*)), \ + $(foreach f,$(wildcard $(addprefix $(dir $1),*.xml)), \ $(if $(strip $(shell xmllint --xpath '/acrn-config/@board' $f 2>/dev/null)),, \ $(if $(subst scenario.xml,,$(notdir $f)), \ $(eval scenario = $(basename $(notdir $f))), \