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@mentor.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
Dmitry Eremin-Solenikov 2015-04-17 16:41:02 +03:00 committed by Bruce Ashfield
parent 960aff31ba
commit f23b699283
2 changed files with 8 additions and 0 deletions

View File

@ -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}"

View File

@ -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