diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-09 15:00:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-10 11:51:19 +0000 |
commit | c8dee9b92dfd545852ecac8dc2adfc95ac02e957 (patch) | |
tree | 5f1b86954646a0f3bb914407994388a6a4346769 /meta/recipes-devtools | |
parent | 5d3860f4a8abb8e95442b04f8b84a333af362fcd (diff) | |
download | poky-c8dee9b92dfd545852ecac8dc2adfc95ac02e957.tar.gz |
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/apt/apt-native.inc | 4 | ||||
-rw-r--r-- | meta/recipes-devtools/apt/apt-package.inc | 8 | ||||
-rw-r--r-- | meta/recipes-devtools/automake/automake.inc | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/cmake/cmake.inc | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/cmake/cmake_2.8.5.bb | 6 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-common.inc | 8 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-configure-common.inc | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/gnu-config/gnu-config_20080123.bb | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/intltool/intltool.inc | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/opkg/opkg.inc | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/perl/perl_5.14.2.bb | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python-pygobject_2.27.91.bb | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu-targets.inc | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/unfs-server/unfs-server_2.1+2.2beta47.bb | 2 |
14 files changed, 23 insertions, 23 deletions
diff --git a/meta/recipes-devtools/apt/apt-native.inc b/meta/recipes-devtools/apt/apt-native.inc index b16f99e93c..d4b207b986 100644 --- a/meta/recipes-devtools/apt/apt-native.inc +++ b/meta/recipes-devtools/apt/apt-native.inc | |||
@@ -13,14 +13,14 @@ python do_install () { | |||
13 | } | 13 | } |
14 | 14 | ||
15 | python do_install_config () { | 15 | python do_install_config () { |
16 | indir = os.path.dirname(bb.data.getVar('FILE',d,1)) | 16 | indir = os.path.dirname(d.getVar('FILE',1)) |
17 | infile = file(os.path.join(indir, 'files', 'apt.conf'), 'r') | 17 | infile = file(os.path.join(indir, 'files', 'apt.conf'), 'r') |
18 | data = infile.read() | 18 | data = infile.read() |
19 | infile.close() | 19 | infile.close() |
20 | 20 | ||
21 | data = bb.data.expand(data, d) | 21 | data = bb.data.expand(data, d) |
22 | 22 | ||
23 | outdir = os.path.join(bb.data.getVar('D', d, 1), bb.data.getVar('sysconfdir', d, 1), 'apt') | 23 | outdir = os.path.join(d.getVar('D', 1), d.getVar('sysconfdir', 1), 'apt') |
24 | if not os.path.exists(outdir): | 24 | if not os.path.exists(outdir): |
25 | os.makedirs(outdir) | 25 | os.makedirs(outdir) |
26 | outpath = os.path.join(outdir, 'apt.conf.sample') | 26 | outpath = os.path.join(outdir, 'apt.conf.sample') |
diff --git a/meta/recipes-devtools/apt/apt-package.inc b/meta/recipes-devtools/apt/apt-package.inc index 2e3be3885b..dde916e3da 100644 --- a/meta/recipes-devtools/apt/apt-package.inc +++ b/meta/recipes-devtools/apt/apt-package.inc | |||
@@ -59,15 +59,15 @@ FILES_${PN} = "${bindir}/apt-cdrom ${bindir}/apt-get \ | |||
59 | ${localstatedir} ${sysconfdir} \ | 59 | ${localstatedir} ${sysconfdir} \ |
60 | ${libdir}/dpkg" | 60 | ${libdir}/dpkg" |
61 | FILES_${PN}-utils = "${bindir}/apt-sortpkgs ${bindir}/apt-extracttemplates" | 61 | FILES_${PN}-utils = "${bindir}/apt-sortpkgs ${bindir}/apt-extracttemplates" |
62 | FILES_${PN}-doc = "${@get_files_apt_doc(d, bb, bb.data.getVar('apt-manpages', d, 1))} \ | 62 | FILES_${PN}-doc = "${@get_files_apt_doc(d, bb, d.getVar('apt-manpages', 1))} \ |
63 | ${docdir}/apt" | 63 | ${docdir}/apt" |
64 | FILES_${PN}-utils-doc = "${@get_files_apt_doc(d, bb, bb.data.getVar('apt-utils-manpages', d, 1))}" | 64 | FILES_${PN}-utils-doc = "${@get_files_apt_doc(d, bb, d.getVar('apt-utils-manpages', 1))}" |
65 | FILES_${PN}-dev = "${libdir}/libapt*.so ${includedir}" | 65 | FILES_${PN}-dev = "${libdir}/libapt*.so ${includedir}" |
66 | 66 | ||
67 | do_install () { | 67 | do_install () { |
68 | set -x | 68 | set -x |
69 | ${@get_commands_apt_doc(d, bb, bb.data.getVar('apt-manpages', d, 1))} | 69 | ${@get_commands_apt_doc(d, bb, d.getVar('apt-manpages', 1))} |
70 | ${@get_commands_apt_doc(d, bb, bb.data.getVar('apt-utils-manpages', d, 1))} | 70 | ${@get_commands_apt_doc(d, bb, d.getVar('apt-utils-manpages', 1))} |
71 | install -d ${D}${bindir} | 71 | install -d ${D}${bindir} |
72 | install -m 0755 bin/apt-cdrom ${D}${bindir}/ | 72 | install -m 0755 bin/apt-cdrom ${D}${bindir}/ |
73 | install -m 0755 bin/apt-get ${D}${bindir}/ | 73 | install -m 0755 bin/apt-get ${D}${bindir}/ |
diff --git a/meta/recipes-devtools/automake/automake.inc b/meta/recipes-devtools/automake/automake.inc index f217e1432b..370a972566 100644 --- a/meta/recipes-devtools/automake/automake.inc +++ b/meta/recipes-devtools/automake/automake.inc | |||
@@ -10,6 +10,6 @@ SRC_URI = "${GNU_MIRROR}/automake/automake-${PV}.tar.bz2 " | |||
10 | 10 | ||
11 | inherit autotools | 11 | inherit autotools |
12 | 12 | ||
13 | export AUTOMAKE = "${@bb.which('automake', bb.data.getVar('PATH', d, 1))}" | 13 | export AUTOMAKE = "${@bb.which('automake', d.getVar('PATH', 1))}" |
14 | 14 | ||
15 | FILES_${PN} += "${datadir}/automake* ${datadir}/aclocal*" | 15 | FILES_${PN} += "${datadir}/automake* ${datadir}/aclocal*" |
diff --git a/meta/recipes-devtools/cmake/cmake.inc b/meta/recipes-devtools/cmake/cmake.inc index ec37a101a3..8433c533b7 100644 --- a/meta/recipes-devtools/cmake/cmake.inc +++ b/meta/recipes-devtools/cmake/cmake.inc | |||
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://Copyright.txt;md5=f372516292ff7c33337bf16a74a5f9a8 \ | |||
11 | 11 | ||
12 | INC_PR = "r1" | 12 | INC_PR = "r1" |
13 | 13 | ||
14 | CMAKE_MAJOR_VERSION = "${@'.'.join(bb.data.getVar('PV',d,1).split('.')[0:2])}" | 14 | CMAKE_MAJOR_VERSION = "${@'.'.join(d.getVar('PV',1).split('.')[0:2])}" |
15 | 15 | ||
16 | SRC_URI = "http://www.cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \ | 16 | SRC_URI = "http://www.cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \ |
17 | file://support-oe-qt4-tools-names.patch" | 17 | file://support-oe-qt4-tools-names.patch" |
diff --git a/meta/recipes-devtools/cmake/cmake_2.8.5.bb b/meta/recipes-devtools/cmake/cmake_2.8.5.bb index 8e040728c9..3e2a218385 100644 --- a/meta/recipes-devtools/cmake/cmake_2.8.5.bb +++ b/meta/recipes-devtools/cmake/cmake_2.8.5.bb | |||
@@ -13,8 +13,8 @@ SRC_URI[sha256sum] = "5e18bff75f01656c64f553412a8905527e1b85efaf3163c6fb81ea5aac | |||
13 | 13 | ||
14 | # Strip ${prefix} from ${docdir}, set result into docdir_stripped | 14 | # Strip ${prefix} from ${docdir}, set result into docdir_stripped |
15 | python () { | 15 | python () { |
16 | prefix=bb.data.getVar("prefix", d, 1) | 16 | prefix=d.getVar("prefix", 1) |
17 | docdir=bb.data.getVar("docdir", d, 1) | 17 | docdir=d.getVar("docdir", 1) |
18 | 18 | ||
19 | if not docdir.startswith(prefix): | 19 | if not docdir.startswith(prefix): |
20 | raise bb.build.FuncFailed('docdir must contain prefix as its prefix') | 20 | raise bb.build.FuncFailed('docdir must contain prefix as its prefix') |
@@ -23,7 +23,7 @@ python () { | |||
23 | if len(docdir_stripped) > 0 and docdir_stripped[0] == '/': | 23 | if len(docdir_stripped) > 0 and docdir_stripped[0] == '/': |
24 | docdir_stripped = docdir_stripped[1:] | 24 | docdir_stripped = docdir_stripped[1:] |
25 | 25 | ||
26 | bb.data.setVar("docdir_stripped", docdir_stripped, d) | 26 | d.setVar("docdir_stripped", docdir_stripped) |
27 | } | 27 | } |
28 | 28 | ||
29 | EXTRA_OECMAKE=" \ | 29 | EXTRA_OECMAKE=" \ |
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc index f83f4da798..69e0213e9f 100644 --- a/meta/recipes-devtools/gcc/gcc-common.inc +++ b/meta/recipes-devtools/gcc/gcc-common.inc | |||
@@ -7,17 +7,17 @@ NATIVEDEPS = "" | |||
7 | 7 | ||
8 | inherit autotools gettext | 8 | inherit autotools gettext |
9 | 9 | ||
10 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}" | 10 | FILESDIR = "${@os.path.dirname(d.getVar('FILE',1))}/gcc-${PV}" |
11 | 11 | ||
12 | def get_gcc_fpu_setting(bb, d): | 12 | def get_gcc_fpu_setting(bb, d): |
13 | if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]: | 13 | if d.getVar('TARGET_FPU', 1) in [ 'soft' ]: |
14 | return "--with-float=soft" | 14 | return "--with-float=soft" |
15 | if bb.data.getVar('TARGET_FPU', d, 1) in [ 'ppc-efd' ]: | 15 | if d.getVar('TARGET_FPU', 1) in [ 'ppc-efd' ]: |
16 | return "--enable-e500_double" | 16 | return "--enable-e500_double" |
17 | return "" | 17 | return "" |
18 | 18 | ||
19 | def get_gcc_mips_plt_setting(bb, d): | 19 | def get_gcc_mips_plt_setting(bb, d): |
20 | if bb.data.getVar('TARGET_ARCH', d, 1) in [ 'mips', 'mipsel' ] and 'mplt' in bb.data.getVar('DISTRO_FEATURES',d,1).split() : | 20 | if d.getVar('TARGET_ARCH', 1) in [ 'mips', 'mipsel' ] and 'mplt' in d.getVar('DISTRO_FEATURES',1).split() : |
21 | return "--with-mips-plt" | 21 | return "--with-mips-plt" |
22 | return "" | 22 | return "" |
23 | 23 | ||
diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc index 2ddc3d7c9f..ae23e8ee49 100644 --- a/meta/recipes-devtools/gcc/gcc-configure-common.inc +++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc | |||
@@ -27,7 +27,7 @@ EXTRA_OECONF_INTERMEDIATE ?= "" | |||
27 | 27 | ||
28 | GCCMULTILIB = "--disable-multilib" | 28 | GCCMULTILIB = "--disable-multilib" |
29 | 29 | ||
30 | EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, 1) != 'no']} \ | 30 | EXTRA_OECONF = "${@['--enable-clocale=generic', ''][d.getVar('USE_NLS', 1) != 'no']} \ |
31 | --with-gnu-ld \ | 31 | --with-gnu-ld \ |
32 | --enable-shared \ | 32 | --enable-shared \ |
33 | --enable-languages=${LANGUAGES} \ | 33 | --enable-languages=${LANGUAGES} \ |
diff --git a/meta/recipes-devtools/gnu-config/gnu-config_20080123.bb b/meta/recipes-devtools/gnu-config/gnu-config_20080123.bb index de07f434b8..f93d342198 100644 --- a/meta/recipes-devtools/gnu-config/gnu-config_20080123.bb +++ b/meta/recipes-devtools/gnu-config/gnu-config_20080123.bb | |||
@@ -8,7 +8,7 @@ DEPENDS_virtclass-native = "perl-native-runtime" | |||
8 | 8 | ||
9 | INHIBIT_DEFAULT_DEPS = "1" | 9 | INHIBIT_DEFAULT_DEPS = "1" |
10 | 10 | ||
11 | FIXEDSRCDATE = "${@bb.data.getVar('FILE', d, 1).split('_')[-1].split('.')[0]}" | 11 | FIXEDSRCDATE = "${@d.getVar('FILE', 1).split('_')[-1].split('.')[0]}" |
12 | PV = "0.1+cvs${FIXEDSRCDATE}" | 12 | PV = "0.1+cvs${FIXEDSRCDATE}" |
13 | PR = "r4" | 13 | PR = "r4" |
14 | 14 | ||
diff --git a/meta/recipes-devtools/intltool/intltool.inc b/meta/recipes-devtools/intltool/intltool.inc index 23a1ee9774..8d983dfc6c 100644 --- a/meta/recipes-devtools/intltool/intltool.inc +++ b/meta/recipes-devtools/intltool/intltool.inc | |||
@@ -2,7 +2,7 @@ DESCRIPTION = "Utility scripts for internationalizing XML" | |||
2 | SECTION = "devel" | 2 | SECTION = "devel" |
3 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
4 | 4 | ||
5 | URLV="${@'.'.join(bb.data.getVar('PV',d,1).split('.')[0:2])}" | 5 | URLV="${@'.'.join(d.getVar('PV',1).split('.')[0:2])}" |
6 | SRC_URI = "${GNOME_MIRROR}/intltool/${URLV}/intltool-${PV}.tar.bz2" | 6 | SRC_URI = "${GNOME_MIRROR}/intltool/${URLV}/intltool-${PV}.tar.bz2" |
7 | S = "${WORKDIR}/intltool-${PV}" | 7 | S = "${WORKDIR}/intltool-${PV}" |
8 | 8 | ||
diff --git a/meta/recipes-devtools/opkg/opkg.inc b/meta/recipes-devtools/opkg/opkg.inc index a649213916..3e350e8197 100644 --- a/meta/recipes-devtools/opkg/opkg.inc +++ b/meta/recipes-devtools/opkg/opkg.inc | |||
@@ -12,7 +12,7 @@ DEPENDS_virtclass-nativesdk = "curl-nativesdk" | |||
12 | 12 | ||
13 | PE = "1" | 13 | PE = "1" |
14 | 14 | ||
15 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/opkg" | 15 | FILESDIR = "${@os.path.dirname(d.getVar('FILE',1))}/opkg" |
16 | 16 | ||
17 | # Werror gives all kinds bounds issuses with gcc 4.3.3 | 17 | # Werror gives all kinds bounds issuses with gcc 4.3.3 |
18 | do_configure_prepend() { | 18 | do_configure_prepend() { |
diff --git a/meta/recipes-devtools/perl/perl_5.14.2.bb b/meta/recipes-devtools/perl/perl_5.14.2.bb index 788962638d..e864f1e436 100644 --- a/meta/recipes-devtools/perl/perl_5.14.2.bb +++ b/meta/recipes-devtools/perl/perl_5.14.2.bb | |||
@@ -285,7 +285,7 @@ FILES_perl-module-unicore += "${libdir}/perl/${PV}/unicore" | |||
285 | # packages (actually the non modules packages and not created too) | 285 | # packages (actually the non modules packages and not created too) |
286 | ALLOW_EMPTY_perl-modules = "1" | 286 | ALLOW_EMPTY_perl-modules = "1" |
287 | PACKAGES_append = " perl-modules " | 287 | PACKAGES_append = " perl-modules " |
288 | RRECOMMENDS_perl-modules = "${@bb.data.getVar('PACKAGES', d, 1).replace('${PN}-modules ', '').replace('${PN}-dbg ', '').replace('${PN}-misc ', '').replace('${PN}-dev ', '').replace('${PN}-pod ', '').replace('${PN}-doc ', '')}" | 288 | RRECOMMENDS_perl-modules = "${@d.getVar('PACKAGES', 1).replace('${PN}-modules ', '').replace('${PN}-dbg ', '').replace('${PN}-misc ', '').replace('${PN}-dev ', '').replace('${PN}-pod ', '').replace('${PN}-doc ', '')}" |
289 | 289 | ||
290 | python populate_packages_prepend () { | 290 | python populate_packages_prepend () { |
291 | libdir = bb.data.expand('${libdir}/perl/${PV}', d) | 291 | libdir = bb.data.expand('${libdir}/perl/${PV}', d) |
diff --git a/meta/recipes-devtools/python/python-pygobject_2.27.91.bb b/meta/recipes-devtools/python/python-pygobject_2.27.91.bb index da4faec1ca..efc06b45c8 100644 --- a/meta/recipes-devtools/python/python-pygobject_2.27.91.bb +++ b/meta/recipes-devtools/python/python-pygobject_2.27.91.bb | |||
@@ -7,7 +7,7 @@ DEPENDS_virtclass-native = "glib-2.0-native" | |||
7 | RDEPENDS_virtclass-native = "" | 7 | RDEPENDS_virtclass-native = "" |
8 | PR = "r3" | 8 | PR = "r3" |
9 | 9 | ||
10 | MAJ_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}" | 10 | MAJ_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}" |
11 | 11 | ||
12 | SRC_URI = "${GNOME_MIRROR}/pygobject/${MAJ_VER}/pygobject-${PV}.tar.bz2" | 12 | SRC_URI = "${GNOME_MIRROR}/pygobject/${MAJ_VER}/pygobject-${PV}.tar.bz2" |
13 | 13 | ||
diff --git a/meta/recipes-devtools/qemu/qemu-targets.inc b/meta/recipes-devtools/qemu/qemu-targets.inc index 550a7fe1b5..1970dda55b 100644 --- a/meta/recipes-devtools/qemu/qemu-targets.inc +++ b/meta/recipes-devtools/qemu/qemu-targets.inc | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | def get_qemu_target_list(d): | 5 | def get_qemu_target_list(d): |
6 | import bb | 6 | import bb |
7 | archs = bb.data.getVar('QEMU_TARGETS', d, True).split() | 7 | archs = d.getVar('QEMU_TARGETS', True).split() |
8 | targets = "" | 8 | targets = "" |
9 | for arch in ['mips64', 'mips64el', 'ppcemb']: | 9 | for arch in ['mips64', 'mips64el', 'ppcemb']: |
10 | if arch in archs: | 10 | if arch in archs: |
diff --git a/meta/recipes-devtools/unfs-server/unfs-server_2.1+2.2beta47.bb b/meta/recipes-devtools/unfs-server/unfs-server_2.1+2.2beta47.bb index 29c7052056..eb80b54fc4 100644 --- a/meta/recipes-devtools/unfs-server/unfs-server_2.1+2.2beta47.bb +++ b/meta/recipes-devtools/unfs-server/unfs-server_2.1+2.2beta47.bb | |||
@@ -70,7 +70,7 @@ do_configure_prepend () { | |||
70 | python __anonymous () { | 70 | python __anonymous () { |
71 | import re | 71 | import re |
72 | 72 | ||
73 | pn = bb.data.getVar("PN", d, 1) | 73 | pn = d.getVar("PN", 1) |
74 | if not pn.endswith('-native') and not pn.endswith('-nativesdk'): | 74 | if not pn.endswith('-native') and not pn.endswith('-nativesdk'): |
75 | raise bb.parse.SkipPackage("unfs-server is intended for native/nativesdk builds only") | 75 | raise bb.parse.SkipPackage("unfs-server is intended for native/nativesdk builds only") |
76 | } | 76 | } |