summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-08-20 01:01:15 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-21 14:29:06 +0100
commitee2beaff701d02736c8244ebc76f6d6ca96a04f4 (patch)
treedc1da78f3d190394bfa759fc4eb3078e66b69dbb /meta/recipes-devtools/gcc/gcc-cross-canadian.inc
parentf856b5f38263251bc48af8ba0da3385c09663d38 (diff)
downloadopenembedded-core-contrib-ee2beaff701d02736c8244ebc76f6d6ca96a04f4.tar.gz
gcc-cross-canadian: Correct the regexp to delete versioned gcc binary
After gcc 10 this expression needed to be adjusted, its better to use a bitbake variable which we do have readily available Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-cross-canadian.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross-canadian.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
index 553ef7fe62..db17ae4685 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
@@ -106,7 +106,7 @@ do_install () {
rm -f ${D}${bindir}/*c++
# We don't care about the gcc-<version> copies
- rm -f ${D}${bindir}/*gcc-?.?*
+ rm -f ${D}${bindir}/*gcc-${BINV}*
# Cleanup empty directories which are not shipped
# we use rmdir instead of 'rm -f' to ensure the non empty directories are not deleted