conf: override SECURITY_CFLAGS for a set of recipes
PATCH v2 1/1 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 <[email protected]>
--- 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
conf/distro/include/virt_security_flags.inc new file +5 -0
@@ -0,0 +1,5 @@ +# Build errors with the pie options enabled +SECURITY_CFLAGS_pn-libvirt = "${SECURITY_NO_PIE_CFLAGS}" + +# This has text reloc errors with the pie options enabled +SECURITY_CFLAGS_pn-lxc = "${SECURITY_NO_PIE_CFLAGS}"
conf/layer.conf +3 -0
@@ -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
Signature · 1 line
2.1.4
Quoted 3 lines · Dmitry Eremin-Solenikov
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.
merged.
Bruce
Quoted 39 lines
Signed-off-by Dmitry Eremin-Solenikov <[email protected]>--- 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.incconf/distro/include/virt_security_flags.inc new file +5
-0@@ -0,0 +1,5 @@ +# Build errors with the pie options enabled +SECURITY_CFLAGS_pn-libvirt = "${SECURITY_NO_PIE_CFLAGS}" + +# This has text reloc errors with the pie options enabled +SECURITY_CFLAGS_pn-lxc = "${SECURITY_NO_PIE_CFLAGS}"conf/layer.conf +3
-1@@ -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
--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"