summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorIlya Yanok <yanok@emcraft.com>2011-04-05 03:13:45 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-05 22:20:52 +0100
commit889551a5708d66c6e3e9a3030ad3a25ca5a0daac (patch)
tree535c87579ea53b2597891fac641e567df88e93bd /meta
parentf897723207b00b4c9dcdb43107891b7b82ce22f3 (diff)
downloadpoky-889551a5708d66c6e3e9a3030ad3a25ca5a0daac.tar.gz
native, nativesdk, crosssdk: reset TARGET_FPU
When building one of the native, nativesdk or crosssdk packages TARGET_* variables' values are no longer related to the target we set via MACHINE variable, they are now related to the BUILD (native) or SDK (nativesdk, crosssdk) targets instead. We need to change TARGET_FPU variable accordingly or some of the recipes (the ones that check for TARGET_FPU value, most notably gcc and eglibc) might be confused. It's probably cleaner not to reset TARGET_FPU but to change it to something like ${BUILD_FPU} (for native) or ${SDK_FPU} (for crosssdk and nativesdk) but as long as BUILD and SDK are x86 it's safe to just reset TARGET_FPU. (From OE-Core rev: 0d4ea5d7486dc35001582bef3ff6ebfad0606bda) Signed-off-by: Ilya Yanok <yanok@emcraft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/crosssdk.bbclass1
-rw-r--r--meta/classes/native.bbclass1
-rw-r--r--meta/classes/nativesdk.bbclass1
3 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/crosssdk.bbclass b/meta/classes/crosssdk.bbclass
index 75fcfefc09..3952ebdca4 100644
--- a/meta/classes/crosssdk.bbclass
+++ b/meta/classes/crosssdk.bbclass
@@ -9,6 +9,7 @@ TARGET_VENDOR = "${SDK_VENDOR}"
9TARGET_OS = "${SDK_OS}" 9TARGET_OS = "${SDK_OS}"
10TARGET_PREFIX = "${SDK_PREFIX}" 10TARGET_PREFIX = "${SDK_PREFIX}"
11TARGET_CC_ARCH = "${SDK_CC_ARCH}" 11TARGET_CC_ARCH = "${SDK_CC_ARCH}"
12TARGET_FPU = ""
12 13
13target_libdir = "${SDKPATHNATIVE}${libdir_nativesdk}" 14target_libdir = "${SDKPATHNATIVE}${libdir_nativesdk}"
14target_includedir = "${SDKPATHNATIVE}${includedir_nativesdk}" 15target_includedir = "${SDKPATHNATIVE}${includedir_nativesdk}"
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index cc32cf59a0..d9e67f6908 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -24,6 +24,7 @@ TARGET_OS = "${BUILD_OS}"
24TARGET_VENDOR = "${BUILD_VENDOR}" 24TARGET_VENDOR = "${BUILD_VENDOR}"
25TARGET_PREFIX = "${BUILD_PREFIX}" 25TARGET_PREFIX = "${BUILD_PREFIX}"
26TARGET_CC_ARCH = "${BUILD_CC_ARCH}" 26TARGET_CC_ARCH = "${BUILD_CC_ARCH}"
27TARGET_FPU = ""
27 28
28HOST_ARCH = "${BUILD_ARCH}" 29HOST_ARCH = "${BUILD_ARCH}"
29HOST_OS = "${BUILD_OS}" 30HOST_OS = "${BUILD_OS}"
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass
index 587a907c44..cd34a798ef 100644
--- a/meta/classes/nativesdk.bbclass
+++ b/meta/classes/nativesdk.bbclass
@@ -34,6 +34,7 @@ TARGET_VENDOR = "${SDK_VENDOR}"
34TARGET_OS = "${SDK_OS}" 34TARGET_OS = "${SDK_OS}"
35TARGET_PREFIX = "${SDK_PREFIX}" 35TARGET_PREFIX = "${SDK_PREFIX}"
36TARGET_CC_ARCH = "${SDK_CC_ARCH}" 36TARGET_CC_ARCH = "${SDK_CC_ARCH}"
37TARGET_FPU = ""
37 38
38CPPFLAGS = "${BUILDSDK_CPPFLAGS}" 39CPPFLAGS = "${BUILDSDK_CPPFLAGS}"
39CFLAGS = "${BUILDSDK_CFLAGS}" 40CFLAGS = "${BUILDSDK_CFLAGS}"