From 4d77f2a883b302a4eebb9c4ce13d6acc8d3a8519 Mon Sep 17 00:00:00 2001 From: Jana Eisoldt Date: Wed, 20 Jul 2022 11:26:17 +0200 Subject: [PATCH] dist/tools/cosy: provide patch for PR #13 The upstream PR #13 is not yet merged but fixes classification to no longer classify most of RIOT's object files "unspecified" in the `.text` view. --- .../0002-parse_elffile-fix-riot_base.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 dist/tools/cosy/patches/0002-parse_elffile-fix-riot_base.patch diff --git a/dist/tools/cosy/patches/0002-parse_elffile-fix-riot_base.patch b/dist/tools/cosy/patches/0002-parse_elffile-fix-riot_base.patch new file mode 100644 index 0000000000..2cef913534 --- /dev/null +++ b/dist/tools/cosy/patches/0002-parse_elffile-fix-riot_base.patch @@ -0,0 +1,26 @@ +From ca34f5c4e808b9b6e61e1ceba5e7065bf71fe37a Mon Sep 17 00:00:00 2001 +From: Jana Eisoldt +Date: Mon, 21 Feb 2022 16:52:01 +0100 +Subject: [PATCH] parse_elffile: fix riot_base + +--- + cosy.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/cosy.py b/cosy.py +index b36c28a..2081f64 100755 +--- a/cosy.py ++++ b/cosy.py +@@ -154,9 +154,9 @@ def parse_elffile(elffile, prefix, appdir, riot_base=None): + rbase = ["riotbuild/riotproject"] + if riot_base: + rbase.append(riot_base.strip("/")) +- else: +- rbase.append("RIOT") +- rbase.append("riotbuild/riotbase") ++ ++ rbase.append("RIOT") ++ rbase.append("riotbuild/riotbase") + riot_base = "|".join([f'{p}/build|{p}' for p in rbase]) + + c = re.compile(r"(?P[0-9a-f]+) "