summaryrefslogtreecommitdiff
path: root/packages/glibc/glibc-package.bbclass
diff options
context:
space:
mode:
authorHolger Schurig <schurig@mn-solutions.de>2005-04-21 07:08:16 +0000
committerHolger Schurig <schurig@mn-solutions.de>2005-04-21 07:08:16 +0000
commite09fa333f0878da81501c4d3409670372899bae4 (patch)
treed7c9ff526801bb8f9736e0f2ca476d2f49ba9b87 /packages/glibc/glibc-package.bbclass
parentb3c0f245ce2ff1a73f4546339ce3faba44bbfc5d (diff)
Merge bk://oe-devel@oe-devel.bkbits.net/openembedded/
into mnz66.mn-solutions.de:/usr/src/mnci54/oe 2005/04/21 08:03:47+01:00 reciva.com!pb move some more common glibc bits into glibc-package.bbclass BKrev: 42675160QJABzuRNjNcLgszukeMUTQ
Diffstat (limited to 'packages/glibc/glibc-package.bbclass')
-rw-r--r--packages/glibc/glibc-package.bbclass28
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/glibc/glibc-package.bbclass b/packages/glibc/glibc-package.bbclass
index 60f744a26c..13b8982fe4 100644
--- a/packages/glibc/glibc-package.bbclass
+++ b/packages/glibc/glibc-package.bbclass
@@ -1,3 +1,21 @@
+#
+# For now, we will skip building of a gcc package if it is a uclibc one
+# and our build is not a uclibc one, and we skip a glibc one if our build
+# is a uclibc build.
+#
+# See the note in gcc/gcc_3.4.0.oe
+#
+
+python __anonymous () {
+ import bb, re
+ uc_os = (re.match('.*uclibc$', bb.data.getVar('TARGET_OS', d, 1)) != None)
+ if uc_os:
+ raise bb.parse.SkipPackage("incompatible with target %s" %
+ bb.data.getVar('TARGET_OS', d, 1))
+}
+
+DEPENDS = "linux-libc-headers"
+
PACKAGES = "glibc catchsegv sln nscd ldd localedef glibc-utils glibc-dev glibc-doc glibc-locale libsegfault glibc-extra-nss glibc-thread-db glibc-pcprofile"
libc_baselibs = "/lib/libc* /lib/libm* /lib/ld* /lib/libpthread* /lib/libresolv* /lib/librt* /lib/libutil* /lib/libnsl* /lib/libnss_files* /lib/libnss_compat* /lib/libnss_dns* /lib/libdl* /lib/libanl* /lib/libBrokenLocale*"
@@ -25,6 +43,16 @@ DESCRIPTION_ldd = "glibc: print shared library dependencies"
DESCRIPTION_localedef = "glibc: compile locale definition files"
DESCRIPTION_glibc-utils = "glibc: misc utilities like iconf, local, gencat, tzselect, rpcinfo, ..."
+def get_glibc_fpu_setting(bb, d):
+ if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
+ return "--without-fp"
+ return ""
+
+EXTRA_OECONF += "${@get_glibc_fpu_setting(bb, d)}"
+
+OVERRIDES_append = ":${TARGET_ARCH}-${TARGET_OS}"
+EXTRA_OECONF_append_arm-linuxeabi = " --without-fp"
+
do_install() {
oe_runmake install_root=${D} install
for r in ${rpcsvc}; do