[meta-virtualization] [PATCH 2/4] linux-yocto: add optional support for aufs and xen using DISTRO_FEATURES.

Bruce Ashfield bruce.ashfield at gmail.com
Thu Aug 29 22:34:17 PDT 2013


On Thu, Aug 29, 2013 at 11:37 PM, Chris Patterson <cjp256 at gmail.com> wrote:
> ---
>  recipes-kernel/linux/linux-yocto_3.4.bbappend |    6 ++++++
>  recipes-kernel/linux/linux-yocto_3.8.bbappend |    6 ++++++
>  2 files changed, 12 insertions(+)
>
> diff --git a/recipes-kernel/linux/linux-yocto_3.4.bbappend b/recipes-kernel/linux/linux-yocto_3.4.bbappend
> index 2893a01..2ada931 100644
> --- a/recipes-kernel/linux/linux-yocto_3.4.bbappend
> +++ b/recipes-kernel/linux/linux-yocto_3.4.bbappend
> @@ -11,3 +11,9 @@ KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
>  module_autoload_kvm = "kvm"
>  module_autoload_kvm-amd = "kvm-amd"
>  module_autoload_kvm-intel = "kvm-intel"
> +
> +# aufs kernel support required for core-image-xen
> +KERNEL_FEATURES_append += "${@base_contains('DISTRO_FEATURES', 'aufs', ' features/aufs/aufs-enable.scc', '', d)}"
> +
> +# xen dom0 kernel support
> +SRC_URI += "${@base_contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}"

Also nice. I like the change. With my previous comment about pulling
the xen fragment into
the kernel itself, you'd be able to make these two lines consistent.

Moving up the chain to new kernels is simple after that, since I'll
pull it forward as I uprev
support. (in fact, we can also add a new 3.10 fragment along with
these changes now :)

Cheers,

Bruce

> diff --git a/recipes-kernel/linux/linux-yocto_3.8.bbappend b/recipes-kernel/linux/linux-yocto_3.8.bbappend
> index 2893a01..2ada931 100644
> --- a/recipes-kernel/linux/linux-yocto_3.8.bbappend
> +++ b/recipes-kernel/linux/linux-yocto_3.8.bbappend
> @@ -11,3 +11,9 @@ KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
>  module_autoload_kvm = "kvm"
>  module_autoload_kvm-amd = "kvm-amd"
>  module_autoload_kvm-intel = "kvm-intel"
> +
> +# aufs kernel support required for core-image-xen
> +KERNEL_FEATURES_append += "${@base_contains('DISTRO_FEATURES', 'aufs', ' features/aufs/aufs-enable.scc', '', d)}"
> +
> +# xen dom0 kernel support
> +SRC_URI += "${@base_contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}"
> --
> 1.7.10.4
>
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"



More information about the meta-virtualization mailing list