diff options
| author | Paul Barker <paul@paulbarker.me.uk> | 2017-01-01 22:21:20 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2017-01-03 10:28:33 -0500 |
| commit | e64f378b93e6fed8f5e8a019e1c4a82bdad4fe0c (patch) | |
| tree | 79cbcd4bfe6b2db3e8baf0a0a9c2d224296e7692 /recipes-extended/xen/xen.inc | |
| parent | b0a72cd343c9bdb38d01f6dbf0c5ac3d55c769dd (diff) | |
| download | meta-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/xen/xen.inc')
| -rw-r--r-- | recipes-extended/xen/xen.inc | 10 |
1 files changed, 5 insertions, 5 deletions
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 | |||
| 739 | export STAGING_LIBDIR | 739 | export STAGING_LIBDIR |
| 740 | 740 | ||
| 741 | # specify xen hypervisor to build/target | 741 | # specify xen hypervisor to build/target |
| 742 | export XEN_TARGET_ARCH = "${@map_xen_arch(d.getVar('TARGET_ARCH', True), d)}" | 742 | export XEN_TARGET_ARCH = "${@map_xen_arch(d.getVar('TARGET_ARCH'), d)}" |
| 743 | export XEN_COMPILE_ARCH = "${@map_xen_arch(d.getVar('BUILD_ARCH', True), d)}" | 743 | export XEN_COMPILE_ARCH = "${@map_xen_arch(d.getVar('BUILD_ARCH'), d)}" |
| 744 | 744 | ||
| 745 | python () { | 745 | python () { |
| 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 |
| 806 | python () { | 806 | python () { |
| 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: |
