summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2012-03-15 21:50:59 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-19 20:28:46 +0000
commit5b67d645e33c304119257c59d41645b07df409c4 (patch)
tree24946e1ce0a93059f4956c62adc1da9a1f709f03 /meta/classes
parent5bc142ac6c564bfbe3969b4e5717406b6b0406c2 (diff)
downloadpoky-5b67d645e33c304119257c59d41645b07df409c4.tar.gz
native.bbclass: make TOOLCHAIN_OPTIONS empty
The native pkg doesn't need the TOOLCHAIN_OPTIONS, but it maybe used by native pkgs, for example, the cmake.bbclass uses TOOLCHAIN_OPTIONS: OECMAKE_C_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CPPFLAGS}" and TOOLCHAIN_OPTIONS is: TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}" If a native pkg inherits cmake.bbclass, then: TOOLCHAIN_OPTIONS = " --sysroot=" and OECMAKE_C_FLAGS would be: ${HOST_CC_ARCH} --sysroot= ${CPPFLAGS} This would cause unexpected errors, I think that we can make TOOLCHAIN_OPTIONS empty in native.bbclass since native pkg doesn't need it. [YOCTO #2124] (From OE-Core rev: e5555c743a9637f86a0a2c4c45a63a80838e81ae) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/native.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index 00196baba8..871dda0426 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -45,6 +45,9 @@ LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE} "
45STAGING_BINDIR = "${STAGING_BINDIR_NATIVE}" 45STAGING_BINDIR = "${STAGING_BINDIR_NATIVE}"
46STAGING_BINDIR_CROSS = "${STAGING_BINDIR_NATIVE}" 46STAGING_BINDIR_CROSS = "${STAGING_BINDIR_NATIVE}"
47 47
48# native pkg doesn't need the TOOLCHAIN_OPTIONS.
49TOOLCHAIN_OPTIONS = ""
50
48DEPENDS_GETTEXT = "gettext-native" 51DEPENDS_GETTEXT = "gettext-native"
49 52
50# Don't use site files for native builds 53# Don't use site files for native builds