]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-cross-canadian: Correct the regexp to delete versioned gcc binary
authorKhem Raj <raj.khem@gmail.com>
Thu, 20 Aug 2020 08:01:15 +0000 (01:01 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Aug 2020 13:29:06 +0000 (14:29 +0100)
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>
meta/recipes-devtools/gcc/gcc-cross-canadian.inc

index 553ef7fe62d7cae6342b07a71f907096c67ff892..db17ae468513de3ade6b209dcfc00f3d92cc2dfb 100644 (file)
@@ -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