summaryrefslogtreecommitdiffstats
path: root/openembedded
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-02-10 11:38:23 +0000
committerRichard Purdie <richard@openedhand.com>2006-02-10 11:38:23 +0000
commit31116d6c7e368c42bcfdf2dba2000b2203f08e85 (patch)
tree9737ea7c974da46ca2a9ee4acad8aabb9cbb2bac /openembedded
parent9df0203e2b27ef3ae28b60447df6b91be7be81dc (diff)
downloadpoky-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.bbclass31
-rw-r--r--openembedded/classes/base.bbclass12
-rw-r--r--openembedded/classes/gpe.bbclass1
-rw-r--r--openembedded/classes/image_ipk.bbclass4
-rw-r--r--openembedded/classes/kernel.bbclass23
-rw-r--r--openembedded/classes/module-base.bbclass12
-rw-r--r--openembedded/classes/native.bbclass13
-rw-r--r--openembedded/classes/opie.bbclass5
-rw-r--r--openembedded/classes/package_ipk.bbclass1
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
153autotools_stage_all() { 153autotools_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
165EXPORT_FUNCTIONS do_configure do_install 182EXPORT_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 "
2GPE_TARBALL_SUFFIX ?= "gz" 2GPE_TARBALL_SUFFIX ?= "gz"
3SRC_URI = "${GPE_MIRROR}/${PN}-${PV}.tar.${GPE_TARBALL_SUFFIX}" 3SRC_URI = "${GPE_MIRROR}/${PN}-${PV}.tar.${GPE_TARBALL_SUFFIX}"
4FILES_${PN} += "${datadir}/gpe ${datadir}/application-registry" 4FILES_${PN} += "${datadir}/gpe ${datadir}/application-registry"
5MAINTAINER ?= "GPE Team <gpe@handhelds.org>"
5 6
6inherit gettext 7inherit 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 @@
1inherit rootfs_ipk 1inherit rootfs_ipk
2 2
3# We need to follow RDEPENDS and RRECOMMENDS for images
4BUILD_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.
4EXCLUDE_FROM_WORLD = "1" 7EXCLUDE_FROM_WORLD = "1"
5 8
6USE_DEVFS ?= "0" 9USE_DEVFS ?= "0"
7 10
8DEPENDS += "makedevs-native" 11DEPENDS += "makedevs-native"
12PACKAGE_ARCH = "${MACHINE_ARCH}"
9 13
10def get_image_deps(d): 14def 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
6inherit kernel-arch 6inherit kernel-arch
7 7
8PACKAGES_DYNAMIC += "kernel-module-*"
9PACKAGES_DYNAMIC += "kernel-image-*"
10
8export OS = "${TARGET_OS}" 11export OS = "${TARGET_OS}"
9export CROSS_COMPILE = "${TARGET_PREFIX}" 12export CROSS_COMPILE = "${TARGET_PREFIX}"
10KERNEL_IMAGETYPE = "zImage" 13KERNEL_IMAGETYPE = "zImage"
@@ -21,8 +24,16 @@ KERNEL_RELEASE ?= "${PV}${KERNEL_LOCALVERSION}"
21KERNEL_CCSUFFIX ?= "" 24KERNEL_CCSUFFIX ?= ""
22KERNEL_LDSUFFIX ?= "" 25KERNEL_LDSUFFIX ?= ""
23 26
24KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX}" 27# Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture
25KERNEL_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}"
30TARGET_CC_KERNEL_ARCH ?= ""
31HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}"
32TARGET_LD_KERNEL_ARCH ?= ""
33HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}"
34
35KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}"
36KERNEL_LD = "${LD}${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}"
26 37
27KERNEL_OUTPUT = "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}" 38KERNEL_OUTPUT = "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}"
28KERNEL_IMAGEDEST = "boot" 39KERNEL_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')
10KERNEL_OBJECT_SUFFIX = "${@[".o", ".ko"][base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion') > "2.6.0"]}" 10KERNEL_OBJECT_SUFFIX = "${@[".o", ".ko"][base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion') > "2.6.0"]}"
11KERNEL_CCSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ccsuffix')}" 11KERNEL_CCSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ccsuffix')}"
12KERNEL_LDSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ldsuffix')}" 12KERNEL_LDSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ldsuffix')}"
13KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX}" 13
14KERNEL_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.
16TARGET_CC_KERNEL_ARCH ?= ""
17HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}"
18TARGET_LD_KERNEL_ARCH ?= ""
19HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}"
20
21KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}"
22KERNEL_LD = "${LD}${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}"
15 23
16# kernel modules are generally machine specific 24# kernel modules are generally machine specific
17PACKAGE_ARCH = "${MACHINE_ARCH}" 25PACKAGE_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
5EXCLUDE_FROM_WORLD = "1" 5EXCLUDE_FROM_WORLD = "1"
6 6
7PACKAGES = "" 7PACKAGES = ""
8PACKAGE_ARCH = "native" 8PACKAGE_ARCH = "${BUILD_ARCH}"
9
10# When this class has packaging enabled, setting
11# RPROVIDES becomes unnecessary.
12RPROVIDES = "${PN}"
13
14# Need to resolve package RDEPENDS as well as DEPENDS
15BUILD_ALL_DEPS = "1"
16
17# Break the circular dependency as a result of DEPENDS
18# in package.bbclass
19PACKAGE_DEPENDS = ""
9 20
10TARGET_ARCH = "${BUILD_ARCH}" 21TARGET_ARCH = "${BUILD_ARCH}"
11TARGET_OS = "${BUILD_OS}" 22TARGET_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
16inherit palmtop 16inherit 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
21OPIE_CVS_PV = "1.2.1+cvs-${SRCDATE}"
22
18DEPENDS_prepend = "${@["libopie2 ", ""][(bb.data.getVar('PN', d, 1) == 'libopie2')]}" 23DEPENDS_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 @@
1inherit package 1inherit package
2DEPENDS_prepend="${@["ipkg-utils-native ", ""][(bb.data.getVar('PACKAGES', d, 1) == '')]}" 2DEPENDS_prepend="${@["ipkg-utils-native ", ""][(bb.data.getVar('PACKAGES', d, 1) == '')]}"
3BOOTSTRAP_EXTRA_RDEPENDS += "ipkg-collateral ipkg ipkg-link" 3BOOTSTRAP_EXTRA_RDEPENDS += "ipkg-collateral ipkg ipkg-link"
4BOOTSTRAP_EXTRA_DEPENDS += "ipkg-collateral ipkg ipkg-link"
5PACKAGEFUNCS += "do_package_ipk" 4PACKAGEFUNCS += "do_package_ipk"
6 5
7python package_ipk_fn () { 6python package_ipk_fn () {