summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-20 17:19:29 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-23 16:20:11 +0100
commit9967b4e027d9bc323d1c9f73539898d9b78837d0 (patch)
tree284c7e76c05e623b01e33c3b58363f9fc8660561
parent24b1fe929b5a22e3ad3a725bff916c2febea207a (diff)
downloadpoky-9967b4e027d9bc323d1c9f73539898d9b78837d0.tar.gz
libiconv: Extend to nativesdk and support non-linux targets
This library is currently only available when targeting non-libc. This patch also makes it available when targetting non-linux since it is likely of use then. It also adds a BBCLASSEXTEND for nativesdk since again, it can be useful in that context. (From OE-Core rev: af8c5adc71dc9bab57504d5a9dbf9e863fd4bf7b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/libiconv/libiconv_1.14.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-support/libiconv/libiconv_1.14.bb b/meta/recipes-support/libiconv/libiconv_1.14.bb
index b1d2612d09..470900bca7 100644
--- a/meta/recipes-support/libiconv/libiconv_1.14.bb
+++ b/meta/recipes-support/libiconv/libiconv_1.14.bb
@@ -22,6 +22,8 @@ S = "${WORKDIR}/libiconv-${PV}"
22inherit autotools pkgconfig gettext 22inherit autotools pkgconfig gettext
23 23
24python __anonymous() { 24python __anonymous() {
25 if d.getVar("TARGET_OS", True) != "linux":
26 return
25 if d.getVar("TCLIBC", True) == "eglibc": 27 if d.getVar("TCLIBC", True) == "eglibc":
26 raise bb.parse.SkipPackage("libiconv is provided for use with uClibc only - eglibc already provides iconv") 28 raise bb.parse.SkipPackage("libiconv is provided for use with uClibc only - eglibc already provides iconv")
27} 29}
@@ -44,3 +46,5 @@ do_install_append () {
44 rm -rf ${D}${libdir}/preloadable_libiconv.so 46 rm -rf ${D}${libdir}/preloadable_libiconv.so
45 rm -rf ${D}${libdir}/charset.alias 47 rm -rf ${D}${libdir}/charset.alias
46} 48}
49
50BBCLASSEXTEND = "nativesdk"