aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-kernel
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2019-08-12 13:06:30 +0000
committerKhem Raj <raj.khem@gmail.com>2019-08-12 09:11:01 -0700
commit1ed7486a876d23bc3f9ec5b0af314bf450fa08af (patch)
tree6c2e3f4ce2b1000de23649c1f0ad18d45d4173f3 /meta-oe/recipes-kernel
parent2d34bda222b1186bcf2fab6508ff11d6ee4833de (diff)
downloadmeta-openembedded-contrib-1ed7486a876d23bc3f9ec5b0af314bf450fa08af.tar.gz
meta-openembedded-contrib-1ed7486a876d23bc3f9ec5b0af314bf450fa08af.tar.bz2
meta-openembedded-contrib-1ed7486a876d23bc3f9ec5b0af314bf450fa08af.zip
kernel-selftest: skip -Werror=format-security and fortify
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-kernel')
-rw-r--r--meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
index 181e97cac9..7370f9fb41 100644
--- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
+++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
@@ -121,3 +121,14 @@ FILES_${PN} += "/usr/kernel-selftest"
RDEPENDS_${PN} += "python3"
# tools/testing/selftests/vm/Makefile doesn't respect LDFLAGS and tools/testing/selftests/Makefile explicitly overrides to empty
INSANE_SKIP_${PN} += "ldflags"
+
+# userfaultfd.c:126:2: error: format not a string literal and no format arguments [-Werror=format-security]
+# fprintf(stderr, examples);
+# ^~~~~~~
+SECURITY_STRINGFORMAT = ""
+
+# https://errors.yoctoproject.org/Errors/Details/261657/
+# kernel-selftest/1.0-r0/recipe-sysroot/usr/include/bits/fcntl2.h:50:4: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
+# __open_missing_mode ();
+# ^~~~~~~~~~~~~~~~~~~~~~
+lcl_maybe_fortify = ""