diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2011-05-27 14:31:46 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-27 17:55:49 +0100 |
commit | f906608f68bb0640b61bb4f4986d77b6f30df0f9 (patch) | |
tree | 315ac9294d6ccce8b24bd5d05bf7840fc3733276 | |
parent | ecdbd6ab03749f603ffbde2983b3e8ea3bbd73cd (diff) | |
download | poky-f906608f68bb0640b61bb4f4986d77b6f30df0f9.tar.gz |
conf/bitbake.conf: Added variables for PR service.
Added following variables for PR service:
USE_PR_SERV: flag of whether to use the network PR service
PRAUTOINX: search index for the network PR service
PKGE/PKGV/PKGR: epoch, version and revision used in package feed.
EXTENDPKGV: full package version string used in package relationships.
For the following recipes, replace EXTENDPV with EXTENDPKGV:
udev, xcb, xorg-proto, util-macros and linux-libc-headers
then removed the unused EXTENDPV and EXTENDPEVER variables
Users should use EXTENDPKGV instead for package feed generation.
(From OE-Core rev: ad00ad1d530074dc3a0f3376f96ad5a88a7b24e2)
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/conf/bitbake.conf | 20 | ||||
-rw-r--r-- | meta/recipes-core/udev/udev-new.inc | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/xcb/libpthread-stubs_0.3.bb | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/xcb/xcb-proto.inc | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/xorg-proto/xorg-proto-common.inc | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/xorg-util/util-macros_1.13.0.bb | 2 | ||||
-rw-r--r-- | meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc | 2 |
7 files changed, 22 insertions, 10 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index d30738597a..8ec0a86e2c 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -152,10 +152,17 @@ PV = "${@bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[1] or '1. | |||
152 | PR = "${@bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[2] or 'r0'}" | 152 | PR = "${@bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[2] or 'r0'}" |
153 | PF = "${PN}-${EXTENDPE}${PV}-${PR}" | 153 | PF = "${PN}-${EXTENDPE}${PV}-${PR}" |
154 | EXTENDPE = "${@['','${PE\x7d_'][bb.data.getVar('PE',d,1) > 0]}" | 154 | EXTENDPE = "${@['','${PE\x7d_'][bb.data.getVar('PE',d,1) > 0]}" |
155 | EXTENDPEVER = "${@['','${PE\x7d:'][bb.data.getVar('PE',d,1) > 0]}" | ||
156 | EXTENDPV = "${EXTENDPEVER}${PV}-${PR}" | ||
157 | P = "${PN}-${PV}" | 155 | P = "${PN}-${PV}" |
158 | 156 | ||
157 | EXTENDPRAUTO = "${@['.${PRAUTO\x7d',''][bb.data.getVar('PRAUTO',d,1) is None]}" | ||
158 | PRAUTOINX = "${PF}" | ||
159 | |||
160 | PKGV ?= "${PV}" | ||
161 | PKGR ?= "${PR}${EXTENDPRAUTO}" | ||
162 | PKGE ?= "${@['','${PE\x7d'][bb.data.getVar('PE',d,1) > 0]}" | ||
163 | EXTENDPKGEVER = "${@['','${PKGE\x7d:'][bb.data.getVar('PKGE',d,1).strip() != '']}" | ||
164 | EXTENDPKGV ?= "${EXTENDPKGEVER}${PKGV}-${PKGR}" | ||
165 | |||
159 | # Base package name | 166 | # Base package name |
160 | # Automatically derives "foo" from "foo-native", "foo-cross" or "foo-initial" | 167 | # Automatically derives "foo" from "foo-native", "foo-cross" or "foo-initial" |
161 | # otherwise it is the same as PN and P | 168 | # otherwise it is the same as PN and P |
@@ -163,6 +170,11 @@ SPECIAL_PKGSUFFIX = "-native -cross -initial -intermediate -nativesdk -crosssdk | |||
163 | BPN = "${@base_prune_suffix(bb.data.getVar('PN', d, True), bb.data.getVar('SPECIAL_PKGSUFFIX', d, True).split(), d)}" | 170 | BPN = "${@base_prune_suffix(bb.data.getVar('PN', d, True), bb.data.getVar('SPECIAL_PKGSUFFIX', d, True).split(), d)}" |
164 | BP = "${BPN}-${PV}" | 171 | BP = "${BPN}-${PV}" |
165 | 172 | ||
173 | # | ||
174 | # network based PR service | ||
175 | # | ||
176 | USE_PR_SERV = "${@[1,0][(bb.data.getVar('PRSERV_HOST',d,1) is None) or (bb.data.getVar('PRSERV_PORT',d,1) is None)]}" | ||
177 | |||
166 | # Package info. | 178 | # Package info. |
167 | 179 | ||
168 | SECTION = "base" | 180 | SECTION = "base" |
@@ -241,7 +253,7 @@ FILES_${PN}-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV} ${libdir}/*.la \ | |||
241 | ${base_libdir}/*.a ${base_libdir}/*.o" | 253 | ${base_libdir}/*.a ${base_libdir}/*.o" |
242 | SECTION_${PN}-dev = "devel" | 254 | SECTION_${PN}-dev = "devel" |
243 | ALLOW_EMPTY_${PN}-dev = "1" | 255 | ALLOW_EMPTY_${PN}-dev = "1" |
244 | RDEPENDS_${PN}-dev = "${PN} (= ${EXTENDPV})" | 256 | RDEPENDS_${PN}-dev = "${PN} (= ${EXTENDPKGV})" |
245 | 257 | ||
246 | DOTDEBUG-dbg = "${bindir}/.debug ${sbindir}/.debug ${libexecdir}/.debug ${libdir}/.debug \ | 258 | DOTDEBUG-dbg = "${bindir}/.debug ${sbindir}/.debug ${libexecdir}/.debug ${libdir}/.debug \ |
247 | ${base_bindir}/.debug ${base_sbindir}/.debug ${base_libdir}/.debug ${libdir}/${PN}/.debug \ | 259 | ${base_bindir}/.debug ${base_sbindir}/.debug ${base_libdir}/.debug ${libdir}/${PN}/.debug \ |
@@ -253,7 +265,7 @@ FILES_${PN}-dbg = "${@bb.data.getVar(['DOTDEBUG-dbg', 'DEBUGFILEDIRECTORY-dbg'][ | |||
253 | 265 | ||
254 | SECTION_${PN}-dbg = "devel" | 266 | SECTION_${PN}-dbg = "devel" |
255 | ALLOW_EMPTY_${PN}-dbg = "1" | 267 | ALLOW_EMPTY_${PN}-dbg = "1" |
256 | RRECOMMENDS_${PN}-dbg = "${PN} (= ${EXTENDPV})" | 268 | RRECOMMENDS_${PN}-dbg = "${PN} (= ${EXTENDPKGV})" |
257 | 269 | ||
258 | FILES_${PN}-locale = "${datadir}/locale" | 270 | FILES_${PN}-locale = "${datadir}/locale" |
259 | 271 | ||
diff --git a/meta/recipes-core/udev/udev-new.inc b/meta/recipes-core/udev/udev-new.inc index d1abf39074..1b94f1bc9b 100644 --- a/meta/recipes-core/udev/udev-new.inc +++ b/meta/recipes-core/udev/udev-new.inc | |||
@@ -13,7 +13,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ | |||
13 | DEPENDS = "acl glib-2.0 libusb usbutils pciutils linux-libc-headers gperf-native libxslt-native" | 13 | DEPENDS = "acl glib-2.0 libusb usbutils pciutils linux-libc-headers gperf-native libxslt-native" |
14 | RPROVIDES_${PN} = "hotplug" | 14 | RPROVIDES_${PN} = "hotplug" |
15 | RRECOMMENDS_${PN} += "udev-extraconf udev-cache usbutils-ids pciutils-ids" | 15 | RRECOMMENDS_${PN} += "udev-extraconf udev-cache usbutils-ids pciutils-ids" |
16 | RDEPENDS_libudev = "${PN} (= ${EXTENDPV})" | 16 | RDEPENDS_libudev = "${PN} (= ${EXTENDPKGV})" |
17 | 17 | ||
18 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ | 18 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ |
19 | file://run.rules \ | 19 | file://run.rules \ |
diff --git a/meta/recipes-graphics/xcb/libpthread-stubs_0.3.bb b/meta/recipes-graphics/xcb/libpthread-stubs_0.3.bb index 038c00f6c6..40c47da560 100644 --- a/meta/recipes-graphics/xcb/libpthread-stubs_0.3.bb +++ b/meta/recipes-graphics/xcb/libpthread-stubs_0.3.bb | |||
@@ -20,4 +20,4 @@ SRC_URI[sha256sum] = "35b6d54e3cc6f3ba28061da81af64b9a92b7b757319098172488a660e3 | |||
20 | inherit autotools pkgconfig | 20 | inherit autotools pkgconfig |
21 | 21 | ||
22 | RDEPENDS_${PN}-dev = "" | 22 | RDEPENDS_${PN}-dev = "" |
23 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPV})" | 23 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" |
diff --git a/meta/recipes-graphics/xcb/xcb-proto.inc b/meta/recipes-graphics/xcb/xcb-proto.inc index ae4028298a..d51134145f 100644 --- a/meta/recipes-graphics/xcb/xcb-proto.inc +++ b/meta/recipes-graphics/xcb/xcb-proto.inc | |||
@@ -16,7 +16,7 @@ inherit autotools pkgconfig | |||
16 | FILES_${PN}-dev += "${datadir}/xcb/*.xml" | 16 | FILES_${PN}-dev += "${datadir}/xcb/*.xml" |
17 | 17 | ||
18 | RDEPENDS_${PN}-dev = "" | 18 | RDEPENDS_${PN}-dev = "" |
19 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPV})" | 19 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" |
20 | 20 | ||
21 | DEPENDS_append_virtclass-native = " python-native" | 21 | DEPENDS_append_virtclass-native = " python-native" |
22 | BBCLASSEXTEND = "native" | 22 | BBCLASSEXTEND = "native" |
diff --git a/meta/recipes-graphics/xorg-proto/xorg-proto-common.inc b/meta/recipes-graphics/xorg-proto/xorg-proto-common.inc index ab1af28311..765e30a3aa 100644 --- a/meta/recipes-graphics/xorg-proto/xorg-proto-common.inc +++ b/meta/recipes-graphics/xorg-proto/xorg-proto-common.inc | |||
@@ -18,4 +18,4 @@ EXTRA_OECONF = "--with-fop=no" | |||
18 | 18 | ||
19 | # ${PN} is empty so we need to tweak -dev and -dbg package dependencies | 19 | # ${PN} is empty so we need to tweak -dev and -dbg package dependencies |
20 | RDEPENDS_${PN}-dev = "" | 20 | RDEPENDS_${PN}-dev = "" |
21 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPV})" | 21 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" |
diff --git a/meta/recipes-graphics/xorg-util/util-macros_1.13.0.bb b/meta/recipes-graphics/xorg-util/util-macros_1.13.0.bb index a708ed0cc9..a6f5402276 100644 --- a/meta/recipes-graphics/xorg-util/util-macros_1.13.0.bb +++ b/meta/recipes-graphics/xorg-util/util-macros_1.13.0.bb | |||
@@ -16,7 +16,7 @@ DEPENDS_virtclass-native = "gettext" | |||
16 | DEPENDS_virtclass-nativesdk = "gettext" | 16 | DEPENDS_virtclass-nativesdk = "gettext" |
17 | 17 | ||
18 | RDEPENDS_${PN}-dev = "" | 18 | RDEPENDS_${PN}-dev = "" |
19 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPV})" | 19 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" |
20 | 20 | ||
21 | BBCLASSEXTEND = "native nativesdk" | 21 | BBCLASSEXTEND = "native nativesdk" |
22 | 22 | ||
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc index 8c5dc76849..014024f460 100644 --- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc | |||
@@ -7,4 +7,4 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v2.6/linux-${PV}.tar.bz2" | |||
7 | 7 | ||
8 | #DEPENDS = "cross-linkage" | 8 | #DEPENDS = "cross-linkage" |
9 | RDEPENDS_${PN}-dev = "" | 9 | RDEPENDS_${PN}-dev = "" |
10 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPV})" | 10 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" |