diff options
author | Richard Purdie <richard@openedhand.com> | 2006-02-10 11:38:23 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-02-10 11:38:23 +0000 |
commit | 31116d6c7e368c42bcfdf2dba2000b2203f08e85 (patch) | |
tree | 9737ea7c974da46ca2a9ee4acad8aabb9cbb2bac /openembedded | |
parent | 9df0203e2b27ef3ae28b60447df6b91be7be81dc (diff) | |
download | poky-31116d6c7e368c42bcfdf2dba2000b2203f08e85.tar.gz |
Update bbclasses from OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@266 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded')
-rw-r--r-- | openembedded/classes/autotools.bbclass | 31 | ||||
-rw-r--r-- | openembedded/classes/base.bbclass | 12 | ||||
-rw-r--r-- | openembedded/classes/gpe.bbclass | 1 | ||||
-rw-r--r-- | openembedded/classes/image_ipk.bbclass | 4 | ||||
-rw-r--r-- | openembedded/classes/kernel.bbclass | 23 | ||||
-rw-r--r-- | openembedded/classes/module-base.bbclass | 12 | ||||
-rw-r--r-- | openembedded/classes/native.bbclass | 13 | ||||
-rw-r--r-- | openembedded/classes/opie.bbclass | 5 | ||||
-rw-r--r-- | openembedded/classes/package_ipk.bbclass | 1 |
9 files changed, 81 insertions, 21 deletions
diff --git a/openembedded/classes/autotools.bbclass b/openembedded/classes/autotools.bbclass index 8d448ce0d3..927e3432b7 100644 --- a/openembedded/classes/autotools.bbclass +++ b/openembedded/classes/autotools.bbclass | |||
@@ -151,15 +151,32 @@ autotools_stage_includes() { | |||
151 | } | 151 | } |
152 | 152 | ||
153 | autotools_stage_all() { | 153 | autotools_stage_all() { |
154 | if [ "${INHIBIT_AUTO_STAGE}" != "1" ] | 154 | if [ "${INHIBIT_AUTO_STAGE}" = "1" ] |
155 | then | 155 | then |
156 | rm -rf ${STAGE_TEMP} | 156 | return |
157 | mkdir -p ${STAGE_TEMP} | 157 | fi |
158 | oe_runmake DESTDIR="${STAGE_TEMP}" install | 158 | rm -rf ${STAGE_TEMP} |
159 | cp -pPR ${STAGE_TEMP}/${includedir}/* ${STAGING_INCDIR} | 159 | mkdir -p ${STAGE_TEMP} |
160 | cp -pPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR} | 160 | oe_runmake DESTDIR="${STAGE_TEMP}" install |
161 | rm -rf ${STAGE_TEMP} | 161 | if [ -d ${STAGE_TEMP}/${includedir} ]; then |
162 | cp -fpPR ${STAGE_TEMP}/${includedir}/* ${STAGING_INCDIR} | ||
163 | fi | ||
164 | if [ -d ${STAGE_TEMP}/${libdir} ] | ||
165 | then | ||
166 | for i in ${STAGE_TEMP}/${libdir}/*.la | ||
167 | do | ||
168 | if [ ! -f "$i" ]; then | ||
169 | cp -fpPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR} | ||
170 | break | ||
171 | fi | ||
172 | oe_libinstall -so $(basename $i .la) ${STAGING_LIBDIR} | ||
173 | done | ||
174 | fi | ||
175 | if [ -d ${STAGE_TEMP}/${datadir}/aclocal ]; then | ||
176 | install -d ${STAGING_DATADIR}/aclocal | ||
177 | cp -fpPR ${STAGE_TEMP}/${datadir}/aclocal/* ${STAGING_DATADIR}/aclocal | ||
162 | fi | 178 | fi |
179 | rm -rf ${STAGE_TEMP} | ||
163 | } | 180 | } |
164 | 181 | ||
165 | EXPORT_FUNCTIONS do_configure do_install | 182 | EXPORT_FUNCTIONS do_configure do_install |
diff --git a/openembedded/classes/base.bbclass b/openembedded/classes/base.bbclass index c5359b20f8..9b87828594 100644 --- a/openembedded/classes/base.bbclass +++ b/openembedded/classes/base.bbclass | |||
@@ -171,9 +171,8 @@ oe_libinstall() { | |||
171 | if [ -z "$dir" ]; then | 171 | if [ -z "$dir" ]; then |
172 | dir=`pwd` | 172 | dir=`pwd` |
173 | fi | 173 | fi |
174 | if [ -d "$dir/.libs" ]; then | 174 | dotlai=$libname.lai |
175 | dir=$dir/.libs | 175 | dir=$dir`(cd $dir; find -name "$dotlai") | sed "s/^\.//;s/\/$dotlai\$//;q"` |
176 | fi | ||
177 | olddir=`pwd` | 176 | olddir=`pwd` |
178 | __runcmd cd $dir | 177 | __runcmd cd $dir |
179 | 178 | ||
@@ -191,7 +190,6 @@ oe_libinstall() { | |||
191 | if [ -f "$dota" -o -n "$require_static" ]; then | 190 | if [ -f "$dota" -o -n "$require_static" ]; then |
192 | __runcmd install -m 0644 $dota $destpath/ | 191 | __runcmd install -m 0644 $dota $destpath/ |
193 | fi | 192 | fi |
194 | dotlai=$libname.lai | ||
195 | if [ -f "$dotlai" -a -n "$libtool" ]; then | 193 | if [ -f "$dotlai" -a -n "$libtool" ]; then |
196 | if test -n "$staging_install" | 194 | if test -n "$staging_install" |
197 | then | 195 | then |
@@ -724,9 +722,9 @@ python __anonymous () { | |||
724 | 722 | ||
725 | pn = bb.data.getVar('PN', d, 1) | 723 | pn = bb.data.getVar('PN', d, 1) |
726 | 724 | ||
727 | cvsdate = bb.data.getVar('CVSDATE_%s' % pn, d, 1) | 725 | srcdate = bb.data.getVar('SRCDATE_%s' % pn, d, 1) |
728 | if cvsdate != None: | 726 | if srcdate != None: |
729 | bb.data.setVar('CVSDATE', cvsdate, d) | 727 | bb.data.setVar('SRCDATE', srcdate, d) |
730 | 728 | ||
731 | use_nls = bb.data.getVar('USE_NLS_%s' % pn, d, 1) | 729 | use_nls = bb.data.getVar('USE_NLS_%s' % pn, d, 1) |
732 | if use_nls != None: | 730 | if use_nls != None: |
diff --git a/openembedded/classes/gpe.bbclass b/openembedded/classes/gpe.bbclass index 8cd9e4fc5d..861ec416a0 100644 --- a/openembedded/classes/gpe.bbclass +++ b/openembedded/classes/gpe.bbclass | |||
@@ -2,6 +2,7 @@ DEPENDS_prepend = "coreutils-native virtual/libintl intltool-native " | |||
2 | GPE_TARBALL_SUFFIX ?= "gz" | 2 | GPE_TARBALL_SUFFIX ?= "gz" |
3 | SRC_URI = "${GPE_MIRROR}/${PN}-${PV}.tar.${GPE_TARBALL_SUFFIX}" | 3 | SRC_URI = "${GPE_MIRROR}/${PN}-${PV}.tar.${GPE_TARBALL_SUFFIX}" |
4 | FILES_${PN} += "${datadir}/gpe ${datadir}/application-registry" | 4 | FILES_${PN} += "${datadir}/gpe ${datadir}/application-registry" |
5 | MAINTAINER ?= "GPE Team <gpe@handhelds.org>" | ||
5 | 6 | ||
6 | inherit gettext | 7 | inherit gettext |
7 | 8 | ||
diff --git a/openembedded/classes/image_ipk.bbclass b/openembedded/classes/image_ipk.bbclass index 5fdd340673..c2f1c8d682 100644 --- a/openembedded/classes/image_ipk.bbclass +++ b/openembedded/classes/image_ipk.bbclass | |||
@@ -1,11 +1,15 @@ | |||
1 | inherit rootfs_ipk | 1 | inherit rootfs_ipk |
2 | 2 | ||
3 | # We need to follow RDEPENDS and RRECOMMENDS for images | ||
4 | BUILD_ALL_DEPS = "1" | ||
5 | |||
3 | # Images are generally built explicitly, do not need to be part of world. | 6 | # Images are generally built explicitly, do not need to be part of world. |
4 | EXCLUDE_FROM_WORLD = "1" | 7 | EXCLUDE_FROM_WORLD = "1" |
5 | 8 | ||
6 | USE_DEVFS ?= "0" | 9 | USE_DEVFS ?= "0" |
7 | 10 | ||
8 | DEPENDS += "makedevs-native" | 11 | DEPENDS += "makedevs-native" |
12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
9 | 13 | ||
10 | def get_image_deps(d): | 14 | def get_image_deps(d): |
11 | import bb | 15 | import bb |
diff --git a/openembedded/classes/kernel.bbclass b/openembedded/classes/kernel.bbclass index 8416b8acb3..bbe047a2f1 100644 --- a/openembedded/classes/kernel.bbclass +++ b/openembedded/classes/kernel.bbclass | |||
@@ -5,6 +5,9 @@ DEPENDS += "virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')} v | |||
5 | 5 | ||
6 | inherit kernel-arch | 6 | inherit kernel-arch |
7 | 7 | ||
8 | PACKAGES_DYNAMIC += "kernel-module-*" | ||
9 | PACKAGES_DYNAMIC += "kernel-image-*" | ||
10 | |||
8 | export OS = "${TARGET_OS}" | 11 | export OS = "${TARGET_OS}" |
9 | export CROSS_COMPILE = "${TARGET_PREFIX}" | 12 | export CROSS_COMPILE = "${TARGET_PREFIX}" |
10 | KERNEL_IMAGETYPE = "zImage" | 13 | KERNEL_IMAGETYPE = "zImage" |
@@ -21,8 +24,16 @@ KERNEL_RELEASE ?= "${PV}${KERNEL_LOCALVERSION}" | |||
21 | KERNEL_CCSUFFIX ?= "" | 24 | KERNEL_CCSUFFIX ?= "" |
22 | KERNEL_LDSUFFIX ?= "" | 25 | KERNEL_LDSUFFIX ?= "" |
23 | 26 | ||
24 | KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX}" | 27 | # Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture |
25 | KERNEL_LD = "${LD}${KERNEL_LDSUFFIX}" | 28 | # specific options necessary for building the kernel and modules. |
29 | #FIXME: should be this: TARGET_CC_KERNEL_ARCH ?= "${TARGET_CC_ARCH}" | ||
30 | TARGET_CC_KERNEL_ARCH ?= "" | ||
31 | HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}" | ||
32 | TARGET_LD_KERNEL_ARCH ?= "" | ||
33 | HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}" | ||
34 | |||
35 | KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}" | ||
36 | KERNEL_LD = "${LD}${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}" | ||
26 | 37 | ||
27 | KERNEL_OUTPUT = "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}" | 38 | KERNEL_OUTPUT = "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}" |
28 | KERNEL_IMAGEDEST = "boot" | 39 | KERNEL_IMAGEDEST = "boot" |
@@ -83,6 +94,7 @@ kernel_do_stage() { | |||
83 | 94 | ||
84 | mkdir -p ${STAGING_KERNEL_DIR}/include/$ASMDIR | 95 | mkdir -p ${STAGING_KERNEL_DIR}/include/$ASMDIR |
85 | cp -fR include/$ASMDIR/* ${STAGING_KERNEL_DIR}/include/$ASMDIR/ | 96 | cp -fR include/$ASMDIR/* ${STAGING_KERNEL_DIR}/include/$ASMDIR/ |
97 | rm -f $ASMDIR ${STAGING_KERNEL_DIR}/include/asm | ||
86 | ln -sf $ASMDIR ${STAGING_KERNEL_DIR}/include/asm | 98 | ln -sf $ASMDIR ${STAGING_KERNEL_DIR}/include/asm |
87 | 99 | ||
88 | mkdir -p ${STAGING_KERNEL_DIR}/include/asm-generic | 100 | mkdir -p ${STAGING_KERNEL_DIR}/include/asm-generic |
@@ -97,6 +109,11 @@ kernel_do_stage() { | |||
97 | mkdir -p ${STAGING_KERNEL_DIR}/include/pcmcia | 109 | mkdir -p ${STAGING_KERNEL_DIR}/include/pcmcia |
98 | cp -fR include/pcmcia/* ${STAGING_KERNEL_DIR}/include/pcmcia/ | 110 | cp -fR include/pcmcia/* ${STAGING_KERNEL_DIR}/include/pcmcia/ |
99 | 111 | ||
112 | if [ -d include/sound ]; then | ||
113 | mkdir -p ${STAGING_KERNEL_DIR}/include/sound | ||
114 | cp -fR include/sound/* ${STAGING_KERNEL_DIR}/include/sound/ | ||
115 | fi | ||
116 | |||
100 | if [ -d drivers/sound ]; then | 117 | if [ -d drivers/sound ]; then |
101 | # 2.4 alsa needs some headers from this directory | 118 | # 2.4 alsa needs some headers from this directory |
102 | mkdir -p ${STAGING_KERNEL_DIR}/include/drivers/sound | 119 | mkdir -p ${STAGING_KERNEL_DIR}/include/drivers/sound |
@@ -133,7 +150,7 @@ kernel_do_install() { | |||
133 | else | 150 | else |
134 | oenote "no modules to install" | 151 | oenote "no modules to install" |
135 | fi | 152 | fi |
136 | 153 | ||
137 | install -d ${D}/${KERNEL_IMAGEDEST} | 154 | install -d ${D}/${KERNEL_IMAGEDEST} |
138 | install -d ${D}/boot | 155 | install -d ${D}/boot |
139 | install -m 0644 ${KERNEL_OUTPUT} ${D}/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${KERNEL_RELEASE} | 156 | install -m 0644 ${KERNEL_OUTPUT} ${D}/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${KERNEL_RELEASE} |
diff --git a/openembedded/classes/module-base.bbclass b/openembedded/classes/module-base.bbclass index df0941d561..da5bd01dae 100644 --- a/openembedded/classes/module-base.bbclass +++ b/openembedded/classes/module-base.bbclass | |||
@@ -10,8 +10,16 @@ export KERNEL_SOURCE = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-source') | |||
10 | KERNEL_OBJECT_SUFFIX = "${@[".o", ".ko"][base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion') > "2.6.0"]}" | 10 | KERNEL_OBJECT_SUFFIX = "${@[".o", ".ko"][base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion') > "2.6.0"]}" |
11 | KERNEL_CCSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ccsuffix')}" | 11 | KERNEL_CCSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ccsuffix')}" |
12 | KERNEL_LDSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ldsuffix')}" | 12 | KERNEL_LDSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ldsuffix')}" |
13 | KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX}" | 13 | |
14 | KERNEL_LD = "${LD}${KERNEL_LDSUFFIX}" | 14 | # Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture |
15 | # specific options necessary for building the kernel and modules. | ||
16 | TARGET_CC_KERNEL_ARCH ?= "" | ||
17 | HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}" | ||
18 | TARGET_LD_KERNEL_ARCH ?= "" | ||
19 | HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}" | ||
20 | |||
21 | KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}" | ||
22 | KERNEL_LD = "${LD}${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}" | ||
15 | 23 | ||
16 | # kernel modules are generally machine specific | 24 | # kernel modules are generally machine specific |
17 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 25 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/openembedded/classes/native.bbclass b/openembedded/classes/native.bbclass index f0a77d6e11..fea8048fe5 100644 --- a/openembedded/classes/native.bbclass +++ b/openembedded/classes/native.bbclass | |||
@@ -5,7 +5,18 @@ inherit base | |||
5 | EXCLUDE_FROM_WORLD = "1" | 5 | EXCLUDE_FROM_WORLD = "1" |
6 | 6 | ||
7 | PACKAGES = "" | 7 | PACKAGES = "" |
8 | PACKAGE_ARCH = "native" | 8 | PACKAGE_ARCH = "${BUILD_ARCH}" |
9 | |||
10 | # When this class has packaging enabled, setting | ||
11 | # RPROVIDES becomes unnecessary. | ||
12 | RPROVIDES = "${PN}" | ||
13 | |||
14 | # Need to resolve package RDEPENDS as well as DEPENDS | ||
15 | BUILD_ALL_DEPS = "1" | ||
16 | |||
17 | # Break the circular dependency as a result of DEPENDS | ||
18 | # in package.bbclass | ||
19 | PACKAGE_DEPENDS = "" | ||
9 | 20 | ||
10 | TARGET_ARCH = "${BUILD_ARCH}" | 21 | TARGET_ARCH = "${BUILD_ARCH}" |
11 | TARGET_OS = "${BUILD_OS}" | 22 | TARGET_OS = "${BUILD_OS}" |
diff --git a/openembedded/classes/opie.bbclass b/openembedded/classes/opie.bbclass index 7326128d98..c00f7e19a9 100644 --- a/openembedded/classes/opie.bbclass +++ b/openembedded/classes/opie.bbclass | |||
@@ -15,6 +15,11 @@ | |||
15 | 15 | ||
16 | inherit palmtop | 16 | inherit palmtop |
17 | 17 | ||
18 | # Note that when CVS changes to 1.2.2, the dash | ||
19 | # should be removed from OPIE_CVS_PV to convert | ||
20 | # to the standardised version format | ||
21 | OPIE_CVS_PV = "1.2.1+cvs-${SRCDATE}" | ||
22 | |||
18 | DEPENDS_prepend = "${@["libopie2 ", ""][(bb.data.getVar('PN', d, 1) == 'libopie2')]}" | 23 | DEPENDS_prepend = "${@["libopie2 ", ""][(bb.data.getVar('PN', d, 1) == 'libopie2')]}" |
19 | 24 | ||
20 | # to be consistent, put all targets into workdir | 25 | # to be consistent, put all targets into workdir |
diff --git a/openembedded/classes/package_ipk.bbclass b/openembedded/classes/package_ipk.bbclass index 6d3e1eb686..a70b1e8cdd 100644 --- a/openembedded/classes/package_ipk.bbclass +++ b/openembedded/classes/package_ipk.bbclass | |||
@@ -1,7 +1,6 @@ | |||
1 | inherit package | 1 | inherit package |
2 | DEPENDS_prepend="${@["ipkg-utils-native ", ""][(bb.data.getVar('PACKAGES', d, 1) == '')]}" | 2 | DEPENDS_prepend="${@["ipkg-utils-native ", ""][(bb.data.getVar('PACKAGES', d, 1) == '')]}" |
3 | BOOTSTRAP_EXTRA_RDEPENDS += "ipkg-collateral ipkg ipkg-link" | 3 | BOOTSTRAP_EXTRA_RDEPENDS += "ipkg-collateral ipkg ipkg-link" |
4 | BOOTSTRAP_EXTRA_DEPENDS += "ipkg-collateral ipkg ipkg-link" | ||
5 | PACKAGEFUNCS += "do_package_ipk" | 4 | PACKAGEFUNCS += "do_package_ipk" |
6 | 5 | ||
7 | python package_ipk_fn () { | 6 | python package_ipk_fn () { |