From 3398e2a23f30f7d039dbf7dd65354fd5c6043e6c Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Fri, 16 Jan 2026 12:40:03 +0000 Subject: [PATCH] scripts/clean-includes: Do all our exclusions with REGEXFILE We currently have two mechanisms for excluding files: * the REGEXFILE which excludes by regex * special cases in the "loop over each file" which make us skip the file Roll all the "skip this" cases into REGEXFILE, so we use a single mechanism for identifying which files to exclude. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Message-id: 20260116124005.925382-5-peter.maydell@linaro.org --- scripts/clean-includes | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/scripts/clean-includes b/scripts/clean-includes index 5ab3b07196..a45421d2ff 100755 --- a/scripts/clean-includes +++ b/scripts/clean-includes @@ -104,6 +104,15 @@ grep -v '^#' >"$REGEXFILE" <