[oe-commits] Richard Purdie : gcc-cross-kernel: Convert do_stage to do_install ( from Poky)

git version control git at git.openembedded.org
Sat Aug 7 06:45:59 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 061df91441a878e36b6dbbe21c4ef24129e17891
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=061df91441a878e36b6dbbe21c4ef24129e17891

Author: Richard Purdie <rpurdie at linux.intel.com>
Date:   Fri Aug  6 23:26:00 2010 -0700

gcc-cross-kernel: Convert do_stage to do_install (from Poky)

Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Richard Purdie <rpurdie at linux.intel.com>

---

 recipes/gcc/gcc-cross-kernel.inc |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/recipes/gcc/gcc-cross-kernel.inc b/recipes/gcc/gcc-cross-kernel.inc
index e9b9d7d..370ba78 100644
--- a/recipes/gcc/gcc-cross-kernel.inc
+++ b/recipes/gcc/gcc-cross-kernel.inc
@@ -5,10 +5,6 @@ DEPENDS += "gcc-cross"
 
 PROVIDES = "virtual/${TARGET_PREFIX}gcc-${PV}"
 
-do_install () {
-	:
-}
-
 do_compile () {
 	# This compiler is only for the kernel.  Don't bother running fixincludes.
 	mkdir -p gcc
@@ -16,8 +12,8 @@ do_compile () {
 	oe_runmake
 }
 
-do_stage () {
+do_install () {
 	cd gcc
-	oe_runmake installdirs install-common install-headers install-libgcc
-	install -m 0755 xgcc ${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX}gcc-${PV}
+	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}
 }





More information about the Openembedded-commits mailing list