summaryrefslogtreecommitdiffstats
path: root/recipes-extended
diff options
context:
space:
mode:
authorPaul Barker <paul@paulbarker.me.uk>2017-01-01 22:21:20 +0000
committerBruce Ashfield <bruce.ashfield@windriver.com>2017-01-03 10:28:33 -0500
commite64f378b93e6fed8f5e8a019e1c4a82bdad4fe0c (patch)
tree79cbcd4bfe6b2db3e8baf0a0a9c2d224296e7692 /recipes-extended
parentb0a72cd343c9bdb38d01f6dbf0c5ac3d55c769dd (diff)
downloadmeta-virtualization-e64f378b93e6fed8f5e8a019e1c4a82bdad4fe0c.tar.gz
Remove True option to getVar calls
getVar() now defaults to expanding by default. Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-extended')
-rw-r--r--recipes-extended/libvirt/libvirt-python.inc2
-rw-r--r--recipes-extended/xen/xen-arch.inc2
-rw-r--r--recipes-extended/xen/xen.inc10
3 files changed, 7 insertions, 7 deletions
diff --git a/recipes-extended/libvirt/libvirt-python.inc b/recipes-extended/libvirt/libvirt-python.inc
index bc2f1de2..15aa8044 100644
--- a/recipes-extended/libvirt/libvirt-python.inc
+++ b/recipes-extended/libvirt/libvirt-python.inc
@@ -32,7 +32,7 @@ LIBVIRT_INSTALL_ARGS = "--root=${D} \
32 --install-data=${datadir}" 32 --install-data=${datadir}"
33 33
34python __anonymous () { 34python __anonymous () {
35 pkgconfig = d.getVar('PACKAGECONFIG', True) 35 pkgconfig = d.getVar('PACKAGECONFIG')
36 if ('python') in pkgconfig.split(): 36 if ('python') in pkgconfig.split():
37 d.setVar('LIBVIRT_PYTHON_ENABLE', '1') 37 d.setVar('LIBVIRT_PYTHON_ENABLE', '1')
38 else: 38 else:
diff --git a/recipes-extended/xen/xen-arch.inc b/recipes-extended/xen/xen-arch.inc
index 844d47dd..fb0093e3 100644
--- a/recipes-extended/xen/xen-arch.inc
+++ b/recipes-extended/xen/xen-arch.inc
@@ -6,7 +6,7 @@ valid_xen_archs = " \
6 6
7def map_xen_arch(a, d): 7def map_xen_arch(a, d):
8 import re 8 import re
9 valid_archs = d.getVar('valid_xen_archs', True).split() 9 valid_archs = d.getVar('valid_xen_archs').split()
10 10
11 if re.match("i.86", a): return "x86_32" 11 if re.match("i.86", a): return "x86_32"
12 elif re.match("x86.64", a): return "x86_64" 12 elif re.match("x86.64", a): return "x86_64"
diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc
index 429a05a9..bc62a5a8 100644
--- a/recipes-extended/xen/xen.inc
+++ b/recipes-extended/xen/xen.inc
@@ -739,12 +739,12 @@ export STAGING_INCDIR
739export STAGING_LIBDIR 739export STAGING_LIBDIR
740 740
741# specify xen hypervisor to build/target 741# specify xen hypervisor to build/target
742export XEN_TARGET_ARCH = "${@map_xen_arch(d.getVar('TARGET_ARCH', True), d)}" 742export XEN_TARGET_ARCH = "${@map_xen_arch(d.getVar('TARGET_ARCH'), d)}"
743export XEN_COMPILE_ARCH = "${@map_xen_arch(d.getVar('BUILD_ARCH', True), d)}" 743export XEN_COMPILE_ARCH = "${@map_xen_arch(d.getVar('BUILD_ARCH'), d)}"
744 744
745python () { 745python () {
746 if d.getVar('XEN_TARGET_ARCH', True) == 'INVALID': 746 if d.getVar('XEN_TARGET_ARCH') == 'INVALID':
747 raise bb.parse.SkipPackage('Cannot map `%s` to a xen architecture' % d.getVar('TARGET_ARCH', True)) 747 raise bb.parse.SkipPackage('Cannot map `%s` to a xen architecture' % d.getVar('TARGET_ARCH'))
748} 748}
749 749
750# Yocto appends ${PN} to libexecdir by default and Xen appends 'xen' as well 750# Yocto appends ${PN} to libexecdir by default and Xen appends 'xen' as well
@@ -804,7 +804,7 @@ EXTRA_OEMAKE += "GIT=/bin/false"
804 804
805# check for XSM in package config to allow XSM_ENABLE to be set 805# check for XSM in package config to allow XSM_ENABLE to be set
806python () { 806python () {
807 pkgconfig = d.getVar('PACKAGECONFIG', True) 807 pkgconfig = d.getVar('PACKAGECONFIG')
808 if ('xsm') in pkgconfig.split(): 808 if ('xsm') in pkgconfig.split():
809 d.setVar('XSM_ENABLED', '1') 809 d.setVar('XSM_ENABLED', '1')
810 else: 810 else: