[oe-commits] Richard Purdie : cross.bbclass: Move target_ variable definitions from gcc recipes to main class. Cross recipes need these in general (from Poky)
git version control
git at git.openembedded.org
Wed May 5 23:34:43 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 1693ecdcd09e41de7062a01c507936d84db13a09
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=1693ecdcd09e41de7062a01c507936d84db13a09
Author: Richard Purdie <rpurdie at linux.intel.com>
Date: Thu Dec 17 20:54:17 2009 +0000
cross.bbclass: Move target_ variable definitions from gcc recipes to main class. Cross recipes need these in general (from Poky)
Signed-off-by: Richard Purdie <rpurdie at linux.intel.com>
---
classes/cross.bbclass | 8 ++++++++
recipes/gcc/gcc-cross.inc | 9 ---------
2 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/classes/cross.bbclass b/classes/cross.bbclass
index 9a3d39c..ad8b847 100644
--- a/classes/cross.bbclass
+++ b/classes/cross.bbclass
@@ -32,6 +32,14 @@ LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE}"
TOOLCHAIN_OPTIONS = ""
+# Path mangling needed by the cross packaging
+# Note that we use := here to ensure that libdir and includedir are
+# target paths, not CROSS_DIR paths.
+target_libdir := "${libdir}"
+target_includedir := "${includedir}"
+target_base_libdir := "${base_libdir}"
+target_prefix := "${prefix}"
+
# Overrides for paths
prefix = "${CROSS_DIR}"
base_prefix = "${prefix}"
diff --git a/recipes/gcc/gcc-cross.inc b/recipes/gcc/gcc-cross.inc
index 3485824..19dc550 100644
--- a/recipes/gcc/gcc-cross.inc
+++ b/recipes/gcc/gcc-cross.inc
@@ -1,12 +1,3 @@
-# Path mangling needed by the cross packaging
-# Note that we use := here, and require that this is included at the correct
-# point (before inheriting cross) to ensure that libdir and includedir are
-# target paths, not CROSS_DIR paths.
-target_libdir := "${libdir}"
-target_includedir := "${includedir}"
-target_base_libdir := "${base_libdir}"
-target_prefix := "${prefix}"
-
inherit cross
DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc"
More information about the Openembedded-commits
mailing list