From 6a75a08ef41fc6a4a2393dc3d23869183c2454e0 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Mon, 9 Nov 2015 11:28:38 -0600 Subject: [PATCH] Provide distro config include for security flags When someone is using a distro that's using security flags we need to provide overrides to disable PIE. Signed-off-by: Doug Goldstein --- conf/distro/include/rust_security_flags.inc | 4 ++++ conf/layer.conf | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 conf/distro/include/rust_security_flags.inc diff --git a/conf/distro/include/rust_security_flags.inc b/conf/distro/include/rust_security_flags.inc new file mode 100644 index 0000000..28aec40 --- /dev/null +++ b/conf/distro/include/rust_security_flags.inc @@ -0,0 +1,4 @@ +# Build errors with PIE options enabled +SECURITY_CFLAGS_pn-rust-native = "${SECURITY_NO_PIE_CFLAGS}" +SECURITY_CFLAGS_pn-rust-cross = "${SECURITY_NO_PIE_CFLAGS}" +SECURITY_CFLAGS_pn-rust = "${SECURITY_NO_PIE_CFLAGS}" diff --git a/conf/layer.conf b/conf/layer.conf index 6c6d52e..e114bc6 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -9,3 +9,6 @@ BBFILE_PATTERN_rust-layer := "^${LAYERDIR}/" BBFILE_PRIORITY_rust-layer = "7" LICENSE_PATH += "${LAYERDIR}/files/licenses" + +# Override security flags +require conf/distro/include/rust_security_flags.inc