[meta-virtualization] [PATCH 1/2] Refactor to conform to YP Compat requirements

Bruce Ashfield bruce.ashfield at gmail.com
Mon Apr 23 09:37:06 PDT 2018


merged

Bruce

On Fri, Apr 20, 2018 at 10:34 AM, Armin Kuster <akuster808 at gmail.com> wrote:

> This prevents the signature from being modified
>
> Signed-off-by: Armin Kuster <akuster808 at gmail.com>
> ---
>  recipes-core/busybox/busybox_%.bbappend              | 11 +----------
>  recipes-core/busybox/busybox_virtualization.inc      | 10 ++++++++++
>  .../iptables/iptables-meta-virtualization.inc        | 19
> +++++++++++++++++++
>  recipes-extended/iptables/iptables_1.%.bbappend      | 20
> +-------------------
>  4 files changed, 31 insertions(+), 29 deletions(-)
>  create mode 100644 recipes-core/busybox/busybox_virtualization.inc
>  create mode 100644 recipes-extended/iptables/
> iptables-meta-virtualization.inc
>
> diff --git a/recipes-core/busybox/busybox_%.bbappend
> b/recipes-core/busybox/busybox_%.bbappend
> index 8369a03..617cacc 100644
> --- a/recipes-core/busybox/busybox_%.bbappend
> +++ b/recipes-core/busybox/busybox_%.bbappend
> @@ -1,10 +1 @@
> -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> -
> -SRC_URI += " \
> -           file://lspci.cfg \
> -           file://lsusb.cfg \
> -           file://mdev.cfg \
> -           file://mount-cifs.cfg \
> -           file://ps-extras.cfg \
> -           file://getopt.cfg \
> -           "
> +require ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization',
> '${BPN}_virtualization.inc', '', d)}
> diff --git a/recipes-core/busybox/busybox_virtualization.inc
> b/recipes-core/busybox/busybox_virtualization.inc
> new file mode 100644
> index 0000000..d9c4e67
> --- /dev/null
> +++ b/recipes-core/busybox/busybox_virtualization.inc
> @@ -0,0 +1,10 @@
> +FILESEXTRAPATHS_prepend := "${THISDIR}/busybox:"
> +
> +SRC_URI += " \
> +           file://lspci.cfg \
> +           file://lsusb.cfg \
> +           file://mdev.cfg \
> +           file://mount-cifs.cfg \
> +           file://ps-extras.cfg \
> +           file://getopt.cfg \
> +           "
> diff --git a/recipes-extended/iptables/iptables-meta-virtualization.inc
> b/recipes-extended/iptables/iptables-meta-virtualization.inc
> new file mode 100644
> index 0000000..8fd521c
> --- /dev/null
> +++ b/recipes-extended/iptables/iptables-meta-virtualization.inc
> @@ -0,0 +1,19 @@
> +RRECOMMENDS_${PN} += "kernel-module-ip6-tables \
> +                      kernel-module-ip-tables \
> +                      kernel-module-ip6table-filter \
> +                      kernel-module-iptable-filter \
> +                      kernel-module-ip6table-raw \
> +                      kernel-module-iptable-raw \
> +                      kernel-module-ip6table-nat \
> +                      kernel-module-iptable-nat \
> +                      kernel-module-ip6table-mangle \
> +                      kernel-module-iptable-magle \
> +                      kernel-module-ip6table-security \
> +                      kernel-module-iptable-security \
> +                      kernel-module-ipt-reject \
> +                      kernel-module-iptable-mangle \
> +                      kernel-module-xt-checksum \
> +                      kernel-module-xt-conntrack \
> +                      kernel-module-xt-state \
> +                      kernel-module-xt-tcpudp \
> +                      "
> diff --git a/recipes-extended/iptables/iptables_1.%.bbappend
> b/recipes-extended/iptables/iptables_1.%.bbappend
> index 8fd521c..9a15e60 100644
> --- a/recipes-extended/iptables/iptables_1.%.bbappend
> +++ b/recipes-extended/iptables/iptables_1.%.bbappend
> @@ -1,19 +1 @@
> -RRECOMMENDS_${PN} += "kernel-module-ip6-tables \
> -                      kernel-module-ip-tables \
> -                      kernel-module-ip6table-filter \
> -                      kernel-module-iptable-filter \
> -                      kernel-module-ip6table-raw \
> -                      kernel-module-iptable-raw \
> -                      kernel-module-ip6table-nat \
> -                      kernel-module-iptable-nat \
> -                      kernel-module-ip6table-mangle \
> -                      kernel-module-iptable-magle \
> -                      kernel-module-ip6table-security \
> -                      kernel-module-iptable-security \
> -                      kernel-module-ipt-reject \
> -                      kernel-module-iptable-mangle \
> -                      kernel-module-xt-checksum \
> -                      kernel-module-xt-conntrack \
> -                      kernel-module-xt-state \
> -                      kernel-module-xt-tcpudp \
> -                      "
> +require ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization',
> '${BPN}-meta-virtualization.inc', '', d)}
> --
> 2.14.1
>
> --
> _______________________________________________
> 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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20180423/40d43fae/attachment.html>


More information about the meta-virtualization mailing list