[meta-virtualization] [PATCH] conf: override SECURITY_CFLAGS for a set of recipes

Mehaffey, John John_Mehaffey at mentor.com
Fri Apr 17 09:02:34 PDT 2015


> From: meta-virtualization-bounces at yoctoproject.org [meta-virtualization-bounces at yoctoproject.org] on behalf of Eremin, Dmitry
> Sent: Friday, April 17, 2015 6:41 AM
> To: meta-virtualization at yoctoproject.org
> Subject: [meta-virtualization] [PATCH] conf: override SECURITY_CFLAGS for a     set of recipes
>
> Some of recipes produce errors if the distro has enabled usage of
> security_flags.inc file. Fix those errors (and QA warnings) by providing
> an additional include file that is require'd from conf/layer.conf.
>
> Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin at mentor.com>
> ---
>  conf/distro/include/virt_security_flags.inc | 5 +++++
>  conf/layer.conf                             | 3 +++
>  2 files changed, 8 insertions(+)
>  create mode 100644 conf/distro/include/virt_security_flags.inc
>
> diff --git a/conf/distro/include/virt_security_flags.inc b/conf/distro/include/virt_security_flags.inc
> new file mode 100644
> index 0000000..f4c288b
> --- /dev/null
> +++ b/conf/distro/include/virt_security_flags.inc
> @@ -0,0 +1,5 @@
> +# Build errors with the pie options enabled
> +SECURITY_CFLAGS_pn-libvirt = "${SECURITY_NO_PIE_CFLAGS}"
> +
> +# This has text relco errors with the pie options enabled
> +SECURITY_CFLAGS_pn-lxc = "${SECURITY_NO_PIE_CFLAGS}"
> diff --git a/conf/layer.conf b/conf/layer.conf
> index 7ae9d09..f5c1b1e 100644
> --- a/conf/layer.conf
> +++ b/conf/layer.conf
> @@ -16,3 +16,6 @@ LICENSE_PATH += "${LAYERDIR}/files/custom-licenses"
>  LAYERVERSION_virtualization-layer = "1"
>
>  LAYERDEPENDS_virtualization-layer = "core networking-layer"
> +
> +# Override security flags
> +require conf/distro/include/virt_security_flags.inc
> --
> 2.1.4


Hi Dmitry,
There is a typo in the comment:
"# This has text relco errors with the pie options enabled"
It should be reloc errors.

Sincerely,
John Mehaffey
Linux System Architect
Mentor Graphics


More information about the meta-virtualization mailing list