From f88986d77ef02a3b2c8db61c13aee123f92046c7 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Thu, 25 Oct 2018 10:18:24 -0300 Subject: [PATCH] imx-test: Disable string format security build flags The code has some possible flaws related to string manipulation functions which are know to be fragile. This commit disables this protection but this should be fixed by NXP for next releases. Flags being disabled: - -Wformat - -Wformat-security - -Werror=format-security Signed-off-by: Otavio Salvador --- recipes-bsp/imx-test/imx-test_git.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes-bsp/imx-test/imx-test_git.bb b/recipes-bsp/imx-test/imx-test_git.bb index b0567dc1..4590b1a4 100644 --- a/recipes-bsp/imx-test/imx-test_git.bb +++ b/recipes-bsp/imx-test/imx-test_git.bb @@ -48,6 +48,9 @@ PACKAGECONFIG_append_imxvpu = " vpu" PACKAGECONFIG[x11] = ",,libx11 libxdamage libxrender libxrandr" PACKAGECONFIG[vpu] = "HAS_VPU=true,HAS_VPU=false,virtual/imxvpu" +# FIXME: NXP should fix the possible string flaws from their code. +SECURITY_STRINGFORMAT = "" + do_compile() { CFLAGS="${TOOLCHAIN_OPTIONS}" oe_runmake V=1 VERBOSE='' \ -- 2.40.1