binutils-cross-sdk: ${layout_base_bindir} is not the path to where the real binary is.
authorTom Rini <trini@embeddedalley.com>
Fri, 19 Jun 2009 23:58:18 +0000 (19:58 -0400)
committerTom Rini <trini@embeddedalley.com>
Fri, 19 Jun 2009 23:58:18 +0000 (19:58 -0400)
The binary will always be two levels back, and it will always be in ${bindir}
as that's what we pass to configure, so basename that to find the right
directory name

recipes/binutils/binutils-cross-sdk.inc

index 6e9cda0..0ebe514 100644 (file)
@@ -17,7 +17,7 @@ do_install () {
        rm ${D}${prefix}/${TARGET_SYS}/bin/.debug -Rf
        rm ${D}${prefix}/${TARGET_SYS}/bin/*
        for l in ${D}${bindir}/*; do
-               ln -sf "../../${layout_base_bindir}/`basename $l`" "${D}${prefix}/${TARGET_SYS}/bin/`basename $l | sed -e 's,${TARGET_PREFIX},,'`"
+               ln -sf "../../`basename ${bindir}`/`basename $l`" "${D}${prefix}/${TARGET_SYS}/bin/`basename $l | sed -e 's,${TARGET_PREFIX},,'`"
        done
 
         # Install the libiberty header