aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2021-07-06 03:53:58 +0200
committerPaul Spooren <mail@aparcar.org>2021-09-22 22:24:39 -1000
commit93f488fc37d6cd1f54eaf69385fe9011fe6d3c59 (patch)
tree98fc87e50e7eacafdaaba178478120c6b3c895ff /scripts
parent366be2183e90b6ea8110d7236f8a93c8028573f8 (diff)
downloadupstream-93f488fc37d6cd1f54eaf69385fe9011fe6d3c59.tar.gz
upstream-93f488fc37d6cd1f54eaf69385fe9011fe6d3c59.tar.bz2
upstream-93f488fc37d6cd1f54eaf69385fe9011fe6d3c59.zip
scripts: handle gcc and linux in dl_cleanup script
Handle gcc and linux with a special regex that set their progname with their major version. This way every minor version can be cleared. The build cleanup logic can be tweaked later to clean the entire toolchain and target dir with a different gcc version. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [reformat commit message] Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dl_cleanup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/dl_cleanup.py b/scripts/dl_cleanup.py
index 3c26dc8eb5..ad1b88c8b9 100755
--- a/scripts/dl_cleanup.py
+++ b/scripts/dl_cleanup.py
@@ -109,6 +109,8 @@ extensions = (
)
versionRegex = (
+ (re.compile(r"(gcc[-_]\d+)\.(\d+)\.(\d+)"), parseVer_12), # gcc.1.2
+ (re.compile(r"(linux[-_]\d+\.\d+)\.(\d+)"), parseVer_r), # linux.1
(re.compile(r"(.+)[-_](\d+)\.(\d+)\.(\d+)\.(\d+)"), parseVer_1234), # xxx-1.2.3.4
(
re.compile(r"(.+)[-_](\d\d\d\d)-?(\d\d)-?(\d\d)-"),
@@ -123,8 +125,6 @@ versionRegex = (
)
blacklist = [
- ("linux", re.compile(r"linux-\d.*")),
- ("gcc", re.compile(r"gcc-.*")),
("wl_apsta", re.compile(r"wl_apsta.*")),
(".fw", re.compile(r".*\.fw")),
(".arm", re.compile(r".*\.arm")),