cross.bbclass: Move target_ variable definitions from gcc recipes to main class....
authorRichard Purdie <rpurdie@linux.intel.com>
Thu, 17 Dec 2009 20:54:17 +0000 (20:54 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Wed, 5 May 2010 13:45:00 +0000 (14:45 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
classes/cross.bbclass
recipes/gcc/gcc-cross.inc

index 9a3d39c..ad8b847 100644 (file)
@@ -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}"
index 3485824..19dc550 100644 (file)
@@ -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"