summaryrefslogtreecommitdiff
path: root/packages/uclibc
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2005-01-27 22:03:30 +0000
committerChris Larson <clarson@kergoth.com>2005-01-27 22:03:30 +0000
commit75938adea99b02c39733a1683492f118b5a9588f (patch)
treedea0f45c72d664b705a3717eefa2b746003aa2d4 /packages/uclibc
parent7de97518c25bd061f09f875a71985dbf46da99b3 (diff)
Merge
2005/01/27 16:00:39-06:00 ti.com!kergoth Merge siasl.dyndns.org:code/openembedded into odin.sc.ti.com:/home/kergoth/code/user/oe/openembedded 2005/01/27 15:59:31-06:00 ti.com!kergoth Add uclibc 0.9.27, make it the default preferred version, and consolodate uclibc metadata into a .inc. BKrev: 41f96532IOsgiEjOsOyrXQvHV2C6nw
Diffstat (limited to 'packages/uclibc')
-rw-r--r--packages/uclibc/files/nokernelheadercheck.patch (renamed from packages/uclibc/uclibc-0.9.26/nokernelheadercheck.patch)0
-rw-r--r--packages/uclibc/uclibc-0.9.27/arm/uClibc.config0
-rw-r--r--packages/uclibc/uclibc-0.9.27/armeb/uClibc.config0
-rw-r--r--packages/uclibc/uclibc-0.9.27/dyn-ldconfig.patch0
-rw-r--r--packages/uclibc/uclibc-0.9.27/i386/uClibc.config0
-rw-r--r--packages/uclibc/uclibc-0.9.27/i686/uClibc.config0
-rw-r--r--packages/uclibc/uclibc-0.9.27/mipsel/uClibc.config0
-rw-r--r--packages/uclibc/uclibc-0.9.27/sh4/uClibc.config0
-rw-r--r--packages/uclibc/uclibc-initial_0.9.27.bb0
-rw-r--r--packages/uclibc/uclibc.inc0
-rw-r--r--packages/uclibc/uclibc_0.9.26.bb158
-rw-r--r--packages/uclibc/uclibc_0.9.27.bb0
-rw-r--r--packages/uclibc/uclibc_cvs.bb159
13 files changed, 6 insertions, 311 deletions
diff --git a/packages/uclibc/uclibc-0.9.26/nokernelheadercheck.patch b/packages/uclibc/files/nokernelheadercheck.patch
index e69de29bb2..e69de29bb2 100644
--- a/packages/uclibc/uclibc-0.9.26/nokernelheadercheck.patch
+++ b/packages/uclibc/files/nokernelheadercheck.patch
diff --git a/packages/uclibc/uclibc-0.9.27/arm/uClibc.config b/packages/uclibc/uclibc-0.9.27/arm/uClibc.config
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/uclibc/uclibc-0.9.27/arm/uClibc.config
diff --git a/packages/uclibc/uclibc-0.9.27/armeb/uClibc.config b/packages/uclibc/uclibc-0.9.27/armeb/uClibc.config
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/uclibc/uclibc-0.9.27/armeb/uClibc.config
diff --git a/packages/uclibc/uclibc-0.9.27/dyn-ldconfig.patch b/packages/uclibc/uclibc-0.9.27/dyn-ldconfig.patch
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/uclibc/uclibc-0.9.27/dyn-ldconfig.patch
diff --git a/packages/uclibc/uclibc-0.9.27/i386/uClibc.config b/packages/uclibc/uclibc-0.9.27/i386/uClibc.config
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/uclibc/uclibc-0.9.27/i386/uClibc.config
diff --git a/packages/uclibc/uclibc-0.9.27/i686/uClibc.config b/packages/uclibc/uclibc-0.9.27/i686/uClibc.config
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/uclibc/uclibc-0.9.27/i686/uClibc.config
diff --git a/packages/uclibc/uclibc-0.9.27/mipsel/uClibc.config b/packages/uclibc/uclibc-0.9.27/mipsel/uClibc.config
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/uclibc/uclibc-0.9.27/mipsel/uClibc.config
diff --git a/packages/uclibc/uclibc-0.9.27/sh4/uClibc.config b/packages/uclibc/uclibc-0.9.27/sh4/uClibc.config
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/uclibc/uclibc-0.9.27/sh4/uClibc.config
diff --git a/packages/uclibc/uclibc-initial_0.9.27.bb b/packages/uclibc/uclibc-initial_0.9.27.bb
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/uclibc/uclibc-initial_0.9.27.bb
diff --git a/packages/uclibc/uclibc.inc b/packages/uclibc/uclibc.inc
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/uclibc/uclibc.inc
diff --git a/packages/uclibc/uclibc_0.9.26.bb b/packages/uclibc/uclibc_0.9.26.bb
index 64efb969b3..6dd5f28465 100644
--- a/packages/uclibc/uclibc_0.9.26.bb
+++ b/packages/uclibc/uclibc_0.9.26.bb
@@ -1,161 +1,9 @@
-DESCRIPTION = "C library for embedded systems"
-LICENSE = "LGPL"
-SECTION = "libs"
-PRIORITY = "required"
-MAINTAINER = "Gerald Britton <gbritton@doomcom.org>"
PR = "r3"
-#
-# 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
-#
+include uclibc.inc
-python __anonymous () {
- import bb, re
- uc_os = (re.match('.*uclibc$', bb.data.getVar('TARGET_OS', d, 1)) != None)
- if not uc_os:
- raise bb.parse.SkipPackage("incompatible with target %s" %
- bb.data.getVar('TARGET_OS', d, 1))
-}
-
-PROVIDES += "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc"
-PROVIDES += "${@['virtual/libiconv', ''][bb.data.getVar('USE_NLS', d, 1) == 'no']}"
-DEPENDS = "virtual/${TARGET_PREFIX}binutils \
- virtual/${TARGET_PREFIX}gcc-initial linux-libc-headers"
-INHIBIT_DEFAULT_DEPS = "1"
-PARALLEL_MAKE = ""
-
-PACKAGES = "uclibc ldd uclibc-utils uclibc-gconv uclibc-dev uclibc-doc uclibc-thread-db"
-
-uclibc_baselibs = "/lib/libcrypt*.so* /lib/libdl*.so \
- /lib/libintl*.so* /lib/libm*.so \
- /lib/libnsl*.so* /lib/libpthread*.so \
- /lib/libresolv*.so* /lib/libutil*.so \
- /lib/libuClibc*.so* /lib/ld*.so* \
- /lib/libc*.so* /lib/libdl*.so* \
- /lib/libm*.so* /lib/libutil*.so* \
- /lib/libpthread*.so*"
-FILES_${PN} = "${sysconfdir} ${uclibc_baselibs} /sbin/ldconfig \
- ${libexecdir} ${datadir}/zoneinfo ${libdir}/locale"
-FILES_ldd = "${bindir}/ldd"
-FILES_uclibc-dev += "${libdir}/*.o"
-FILES_uclibc-utils = "${bindir} ${sbindir}"
-FILES_uclibc-gconv = "${libdir}/gconv"
-FILES_uclibc-thread-db = "/lib/libthread_db*"
-RPROVIDES_uclibc-dev += "libc-dev"
-
-#
-# This locale file gets copied into uClibc-${PV}/extra/locale/ prior to
-# build, it does not need to be unpacked, but we can't inhibit the unpacking
-# in the current build system.
-#
-UCLIBC_LOCALE_FILE = "uClibc-locale-030818.tgz"
-UCLIBC_LOCALE_FILE_arm = "uClibc-locale-030818.arm.tgz"
-UCLIBC_LOCALE_URI = "http://www.uclibc.org/downloads/${UCLIBC_LOCALE_FILE}"
-UCLIBC_LOCALE_URI_arm = "http://openembedded.org/dl/uclibc-locale/${UCLIBC_LOCALE_FILE}"
-
-SRC_URI = "http://www.uclibc.org/downloads/uClibc-${PV}.tar.bz2 \
- ${@['${UCLIBC_LOCALE_URI}', ''][bb.data.getVar('USE_NLS', d, 1) == 'no']} \
+SRC_URI += "http://www.uclibc.org/downloads/uClibc-${PV}.tar.bz2 \
file://26headers.patch;patch=1 \
file://nokernelheadercheck.patch;patch=1 \
- file://dyn-ldconfig.patch;patch=1 \
- file://uClibc.config"
-
+ file://dyn-ldconfig.patch;patch=1"
S = "${WORKDIR}/uClibc-${PV}"
-
-UCLIBC_PREFIX = "${CROSS_DIR}/${TARGET_SYS}"
-UCLIBC_STAGE_PREFIX = "${STAGING_DIR}/${HOST_SYS}"
-
-EXTRA_OEMAKE = "'OPTIMIZATION=' 'CPU_CFLAGS=${CFLAGS}' 'STRIPTOOL=true' 'LD=${LD}' \
- 'LOCALE_DATA_FILENAME=${UCLIBC_LOCALE_FILE}'"
-configmangle = 's,^KERNEL_SOURCE=.*,KERNEL_SOURCE="${CROSS_DIR}/${TARGET_SYS}/include",g; \
- s,^RUNTIME_PREFIX=.*,RUNTIME_PREFIX="/",g; \
- s,^DEVEL_PREFIX=.*,DEVEL_PREFIX="/${prefix}",g; \
- s,^SHARED_LIB_LOADER_PATH=.*,SHARED_LIB_LOADER_PATH="/lib",; \
- s,.*UCLIBC_HAS_WCHAR.*,UCLIBC_HAS_WCHAR=y,g; \
- ${@["s,.*UCLIBC_HAS_LOCALE.*,# UCLIBC_HAS_LOCALE is not set,;", ""][bb.data.getVar("USE_NLS", d, 1) != "no"]}'
-CFLAGS := "${@oe_filter_out('-I\S+', '${CFLAGS}', d)}"
-
-python () {
- if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
- bb.data.setVar('configmangle_append', ' s,^HAS_FPU=y,# HAS_FPU is not set,;', d)
-}
-
-uclibcbuild_do_patch() {
- ln -sf ${STAGING_INCDIR}/linux ${S}/include/linux
- ln -sf ${STAGING_INCDIR}/asm ${S}/include/asm
-
- ${@['cp %s/%s extra/locale' % (bb.data.getVar('DL_DIR', d, 1) or '', bb.data.getVar('UCLIBC_LOCALE_FILE', d, 1) or ''), ''][bb.data.getVar('USE_NLS', d, 1) == 'no']}
-}
-
-python do_patch () {
- bb.build.exec_func('base_do_patch', d)
- bb.build.exec_func('uclibcbuild_do_patch', d)
-}
-
-do_configure() {
- cp ${WORKDIR}/uClibc.config ${S}/.config
-
- perl -i -p -e 's,^CROSS=.*,TARGET_ARCH=${TARGET_ARCH}\nCROSS=${TARGET_PREFIX},g' ${S}/Rules.mak
- perl -i -p -e '${configmangle}' ${S}/.config
-
- oe_runmake oldconfig
-}
-
-do_stage() {
- # Install into the cross dir (this MUST be done first because we
- # will install crt1.o in the install_dev stage and gcc needs it)
- oe_runmake PREFIX= DEVEL_PREFIX=${UCLIBC_PREFIX}/ \
- RUNTIME_PREFIX=${UCLIBC_PREFIX}/ \
- install_dev install_runtime
-
- oe_runmake utils
- oe_runmake PREFIX= DEVEL_PREFIX=${UCLIBC_PREFIX}/ \
- RUNTIME_PREFIX=${UCLIBC_PREFIX}/ \
- install_utils
-
- # We don't really need this
- rm -f ${UCLIBC_PREFIX}/include/.cvsignore
-
- # Fixup shared lib symlinks
- ( cd ${UCLIBC_PREFIX}/lib
- for f in c crypt dl m nsl pthread resolv thread_db util; do
- ln -sf lib${f}.so.? lib${f}.so
- done
- )
-
- # This conflicts with the c++ version of this header
- rm -f ${UCLIBC_PREFIX}/include/bits/atomicity.h
-
- # Install into the staging dir
- oe_runmake PREFIX= DEVEL_PREFIX=${UCLIBC_STAGE_PREFIX}/ \
- RUNTIME_PREFIX=${UCLIBC_STAGE_PREFIX}/ \
- install_dev install_runtime install_utils
-
- # We don't really need this
- rm -f ${UCLIBC_STAGE_PREFIX}/include/.cvsignore
-
- # Fixup shared lib symlinks
- ( cd ${UCLIBC_STAGE_PREFIX}/lib
- for f in c crypt dl m nsl pthread resolv thread_db util; do
- ln -sf lib${f}.so.? lib${f}.so
- done
- )
-
- # This conflicts with the c++ version of this header
- rm -f ${UCLIBC_STAGE_PREFIX}/include/bits/atomicity.h
-}
-
-do_install() {
- oe_runmake PREFIX=${D} DEVEL_PREFIX=${prefix}/ RUNTIME_PREFIX=/ \
- install_dev install_runtime install_utils
-
- # We don't really need this in /usr/include
- rm -f ${D}/${prefix}/include/.cvsignore
-
- # This conflicts with the c++ version of this header
- rm -f ${D}/${prefix}/include/bits/atomicity.h
-}
diff --git a/packages/uclibc/uclibc_0.9.27.bb b/packages/uclibc/uclibc_0.9.27.bb
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/uclibc/uclibc_0.9.27.bb
diff --git a/packages/uclibc/uclibc_cvs.bb b/packages/uclibc/uclibc_cvs.bb
index 4b92e20d4f..954ad645f4 100644
--- a/packages/uclibc/uclibc_cvs.bb
+++ b/packages/uclibc/uclibc_cvs.bb
@@ -1,163 +1,10 @@
-DESCRIPTION = "C library for embedded systems"
-LICENSE = "LGPL"
-SECTION = "libs"
-PRIORITY = "required"
-MAINTAINER = "Gerald Britton <gbritton@doomcom.org>"
PV = "0.0cvs${CVSDATE}"
PR = "r7"
-DEFAULT_PREFERENCE = "1"
-#
-# 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 not uc_os:
- raise bb.parse.SkipPackage("incompatible with target %s" %
- bb.data.getVar('TARGET_OS', d, 1))
-}
-
-PROVIDES += " virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc"
-PROVIDES += "${@['virtual/libiconv', ''][bb.data.getVar('USE_NLS', d, 1) == 'no']}"
-DEPENDS = "virtual/${TARGET_PREFIX}binutils \
- virtual/${TARGET_PREFIX}gcc-initial linux-libc-headers"
-INHIBIT_DEFAULT_DEPS = "1"
-PARALLEL_MAKE = ""
+include uclibc.inc
FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/uclibc-cvs', '${FILE_DIRNAME}/uclibc', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"
-PACKAGES = "uclibc ldd uclibc-utils uclibc-gconv uclibc-dev uclibc-doc uclibc-thread-db"
-
-uclibc_baselibs = "/lib/libcrypt*.so* /lib/libdl*.so \
- /lib/libintl*.so* /lib/libm*.so \
- /lib/libnsl*.so* /lib/libpthread*.so \
- /lib/libresolv*.so* /lib/libutil*.so \
- /lib/libuClibc*.so* /lib/ld*.so* \
- /lib/libc*.so* /lib/libdl*.so* \
- /lib/libm*.so* /lib/libutil*.so* \
- /lib/libpthread*.so* /lib/librt*.so*"
-FILES_${PN} = "${sysconfdir} ${uclibc_baselibs} /sbin/ldconfig \
- ${libexecdir} ${datadir}/zoneinfo ${libdir}/locale"
-FILES_ldd = "${bindir}/ldd"
-FILES_uclibc-dev += "${libdir}/*.o"
-FILES_uclibc-utils = "${bindir} ${sbindir}"
-FILES_uclibc-gconv = "${libdir}/gconv"
-FILES_uclibc-thread-db = "/lib/libthread_db*"
-RPROVIDES_uclibc-dev += "libc-dev"
-
-#
-# This locale file gets copied into uClibc-${PV}/extra/locale/ prior to
-# build, it does not need to be unpacked, but we can't inhibit the unpacking
-# in the current build system.
-#
-UCLIBC_LOCALE_FILE = "uClibc-locale-030818.tgz"
-UCLIBC_LOCALE_FILE_arm = "uClibc-locale-030818.arm.tgz"
-UCLIBC_LOCALE_URI = "http://www.uclibc.org/downloads/${UCLIBC_LOCALE_FILE}"
-UCLIBC_LOCALE_URI_arm = "http://openembedded.org/dl/uclibc-locale/${UCLIBC_LOCALE_FILE}"
-
-SRC_URI = "cvs://anonymous:@uclibc.org/var/cvs;module=uClibc \
- ${@['${UCLIBC_LOCALE_URI}', ''][bb.data.getVar('USE_NLS', d, 1) == 'no']} \
- file://nokernelheadercheck.patch;patch=1 \
- file://uClibc.config"
-
+SRC_URI += "cvs://anonymous:@uclibc.org/var/cvs;module=uClibc \
+ file://nokernelheadercheck.patch;patch=1"
S = "${WORKDIR}/uClibc"
-
-UCLIBC_PREFIX = "${CROSS_DIR}/${TARGET_SYS}"
-UCLIBC_STAGE_PREFIX = "${STAGING_DIR}/${HOST_SYS}"
-
-EXTRA_OEMAKE = "'OPTIMIZATION=' 'CPU_CFLAGS=${CFLAGS}' 'STRIPTOOL=true' 'LD=${LD}' \
- 'LOCALE_DATA_FILENAME=${UCLIBC_LOCALE_FILE}'"
-configmangle = 's,^KERNEL_SOURCE=.*,KERNEL_SOURCE="${CROSS_DIR}/${TARGET_SYS}/include",g; \
- s,^RUNTIME_PREFIX=.*,RUNTIME_PREFIX="/",g; \
- s,^DEVEL_PREFIX=.*,DEVEL_PREFIX="/${prefix}",g; \
- s,^SHARED_LIB_LOADER_PATH=.*,SHARED_LIB_LOADER_PATH="/lib",; \
- s,.*UCLIBC_HAS_WCHAR.*,UCLIBC_HAS_WCHAR=y,g; \
- ${@["s,.*UCLIBC_HAS_LOCALE.*,# UCLIBC_HAS_LOCALE is not set,;", ""][bb.data.getVar("USE_NLS", d, 1) != "no"]}'
-CFLAGS := "${@oe_filter_out('-I\S+', '${CFLAGS}', d)}"
-
-python () {
- if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
- bb.data.setVar('configmangle_append', ' s,^HAS_FPU=y,# HAS_FPU is not set,;', d)
-}
-
-uclibcbuild_do_patch() {
- ln -sf ${STAGING_INCDIR}/linux ${S}/include/linux
- ln -sf ${STAGING_INCDIR}/asm ${S}/include/asm
-
- ${@['cp %s/%s extra/locale' % (bb.data.getVar('DL_DIR', d, 1) or '', bb.data.getVar('UCLIBC_LOCALE_FILE', d, 1) or ''), ''][bb.data.getVar('USE_NLS', d, 1) == 'no']}
-}
-
-python do_patch () {
- bb.build.exec_func('base_do_patch', d)
- bb.build.exec_func('uclibcbuild_do_patch', d)
-}
-
-do_configure() {
- cp ${WORKDIR}/uClibc.config ${S}/.config
-
- perl -i -p -e 's,^CROSS=.*,TARGET_ARCH=${TARGET_ARCH}\nCROSS=${TARGET_PREFIX},g' ${S}/Rules.mak
- perl -i -p -e '${configmangle}' ${S}/.config
-
- oe_runmake oldconfig
-}
-
-do_stage() {
- # Install into the cross dir (this MUST be done first because we
- # will install crt1.o in the install_dev stage and gcc needs it)
- oe_runmake PREFIX= DEVEL_PREFIX=${UCLIBC_PREFIX}/ \
- RUNTIME_PREFIX=${UCLIBC_PREFIX}/ \
- install_dev install_runtime
-
- oe_runmake utils
- oe_runmake PREFIX= DEVEL_PREFIX=${UCLIBC_PREFIX}/ \
- RUNTIME_PREFIX=${UCLIBC_PREFIX}/ \
- install_utils
-
- # We don't really need this
- rm -f ${UCLIBC_PREFIX}/include/.cvsignore
-
- # Fixup shared lib symlinks
- ( cd ${UCLIBC_PREFIX}/lib
- for f in c crypt dl m nsl pthread resolv thread_db util; do
- ln -sf lib${f}.so.? lib${f}.so
- done
- )
-
- # This conflicts with the c++ version of this header
- rm -f ${UCLIBC_PREFIX}/include/bits/atomicity.h
-
- # Install into the staging dir
- oe_runmake PREFIX= DEVEL_PREFIX=${UCLIBC_STAGE_PREFIX}/ \
- RUNTIME_PREFIX=${UCLIBC_STAGE_PREFIX}/ \
- install_dev install_runtime install_utils
-
- # We don't really need this
- rm -f ${UCLIBC_STAGE_PREFIX}/include/.cvsignore
-
- # Fixup shared lib symlinks
- ( cd ${UCLIBC_STAGE_PREFIX}/lib
- for f in c crypt dl m nsl pthread resolv thread_db util; do
- ln -sf lib${f}.so.? lib${f}.so
- done
- )
-
- # This conflicts with the c++ version of this header
- rm -f ${UCLIBC_STAGE_PREFIX}/include/bits/atomicity.h
-}
-
-do_install() {
- oe_runmake PREFIX=${D} DEVEL_PREFIX=${prefix}/ RUNTIME_PREFIX=/ \
- install_dev install_runtime install_utils
-
- # We don't really need this in /usr/include
- rm -f ${D}/${prefix}/include/.cvsignore
-
- # This conflicts with the c++ version of this header
- rm -f ${D}/${prefix}/include/bits/atomicity.h
-}