gcc-cross-kernel.inc: Install it in STAGING_BINDIR
authorKhem Raj <raj.khem@gmail.com>
Mon, 24 Jan 2011 09:06:08 +0000 (01:06 -0800)
committerKhem Raj <raj.khem@gmail.com>
Mon, 24 Jan 2011 09:09:04 +0000 (01:09 -0800)
* After moving toolchains under native sysroot
  gcc-cross-kernels stopped working becaue it could
  not find the remaining gcc programs correctly.
  ${STAGING_DIR_NATIVE}${prefix_native}/bin/ is not
  same as STAGING_BINDIR for cross recipes

* Fixed Bugzilla/5468

Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/gcc/gcc-cross-kernel.inc

index 370ba78..6453f92 100644 (file)
@@ -15,5 +15,6 @@ do_compile () {
 do_install () {
        cd gcc
        oe_runmake 'DESTDIR=${D}' installdirs install-common install-headers install-libgcc
-       install -m 0755 xgcc ${D}${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_PREFIX}gcc-${PV}
+       install -d ${D}${STAGING_BINDIR}
+       install -m 0755 xgcc ${D}${STAGING_BINDIR}/${TARGET_PREFIX}gcc-${PV}
 }