diff options
| -rw-r--r-- | recipes-kernel/linux/linux-yocto_virtualization.inc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/recipes-kernel/linux/linux-yocto_virtualization.inc b/recipes-kernel/linux/linux-yocto_virtualization.inc index 88a1fa99..e729c3b2 100644 --- a/recipes-kernel/linux/linux-yocto_virtualization.inc +++ b/recipes-kernel/linux/linux-yocto_virtualization.inc | |||
| @@ -34,14 +34,9 @@ def distro_cond_feature(feature_fragment,distro_feature,d): | |||
| 34 | return bb.utils.contains('DISTRO_FEATURES', distro_feature, ' ' + feat, ' ', d) | 34 | return bb.utils.contains('DISTRO_FEATURES', distro_feature, ' ' + feat, ' ', d) |
| 35 | 35 | ||
| 36 | def kernel_meta_ver_depends(d): | 36 | def kernel_meta_ver_depends(d): |
| 37 | import re | ||
| 38 | |||
| 39 | t = d.getVar("PREFERRED_PROVIDER_virtual/kernel") | ||
| 40 | pv = d.getVar( "PREFERRED_VERSION_%s" % t ) | ||
| 41 | pv = re.sub( '%', '', pv ) | ||
| 42 | |||
| 43 | yocto_enabled = bb.data.inherits_class('kernel-yocto', d) | 37 | yocto_enabled = bb.data.inherits_class('kernel-yocto', d) |
| 44 | if yocto_enabled: | 38 | if yocto_enabled: |
| 39 | pv = oe.utils.trim_version(d.getVar('PV'), 2) | ||
| 45 | return "yocto-cfg-fragments-%s-native:do_populate_sysroot" % pv | 40 | return "yocto-cfg-fragments-%s-native:do_populate_sysroot" % pv |
| 46 | else: | 41 | else: |
| 47 | return "" | 42 | return "" |
