diff options
author | Gerald Britton <gbritton@doomcom.org> | 2004-04-22 03:58:19 +0000 |
---|---|---|
committer | Gerald Britton <gbritton@doomcom.org> | 2004-04-22 03:58:19 +0000 |
commit | 10fbe4517c049fad0f41b483e0e3594a8267fc48 (patch) | |
tree | adc301eda56185603a2ea75e9690f9f84d5e6504 /uclibc | |
parent | daa410fd10f2148f332167dea523d148c15fd248 (diff) |
Merge openembedded@openembedded.bkbits.net:packages
into doomcom.org:/home/gbritton/devel/OE/packages
2004/04/21 23:57:17-04:00 doomcom.org!gbritton
conditional packaging of glibc/uclibc on target
BKrev: 408742dbu8l2qiyjFGvfgdBte9yGng
Diffstat (limited to 'uclibc')
-rw-r--r-- | uclibc/uclibc_0.9.26.oe | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/uclibc/uclibc_0.9.26.oe b/uclibc/uclibc_0.9.26.oe index b8e308a293..d7232174e8 100644 --- a/uclibc/uclibc_0.9.26.oe +++ b/uclibc/uclibc_0.9.26.oe @@ -4,7 +4,32 @@ SECTION = "libs" PRIORITY = "required" MAINTAINER = "Gerald Britton <gbritton@doomcom.org>" -# This will ONLY build to this target +# We want to select whether we're building a uclibc or glibc system and +# perform provides accordingly. We want to trigger on the original +# TARGET_VENDOR setting, so we must do this before changing it. +def target_is_uclibc(d): + import oe + if (oe.data.getVar('TARGET_VENDOR', d, 1) == '-uclibc'): + return 1 + return 0 +def cond_provides(d): + import oe + if target_is_uclibc(d): + return 'virtual/libc' + return '' +def cond_packages(d): + import oe + if target_is_uclibc(d): + return '${PN} ${PN}-doc ${PN}-dev ${PN}-locale' + return '${PN}-compat' +PROVIDES := "${@cond_provides(d)}" +PACKAGES := "${@cond_packages(d)}" + +# When target is not a uclibc system, do a compat-only package +FILES_${PN}-compat = "${libdir}/lib*.so.* /lib/*.so*" + +# This will ONLY build to this target (we override it incase we're buliding +# the world for a glibc system) TARGET_VENDOR = "-uclibc" TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" TARGET_PREFIX = "${TARGET_SYS}-" @@ -12,7 +37,6 @@ TARGET_PREFIX = "${TARGET_SYS}-" FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/uclibc-${PV}" DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc-initial" -PROVIDES = "virtual/libc" SRC_URI = "http://www.uclibc.org/downloads/uClibc-${PV}.tar.bz2 \ http://www.uclibc.org/downloads/toolchain/kernel-headers-2.4.21.tar.bz2" |