]> code.ossystems Code Review - meta-freescale.git/commitdiff
cst: suppress deprecated-declarations error 888/head
authorTing Liu <ting.liu@nxp.com>
Fri, 15 Oct 2021 08:13:53 +0000 (16:13 +0800)
committerTing Liu <ting.liu@nxp.com>
Fri, 15 Oct 2021 14:11:36 +0000 (22:11 +0800)
Fix below build error with openssl 3.0:
| gcc  -c -g -Wall -Wno-strict-aliasing -Werror -Itools/header_generation/create_hdr_isbc/include/ -Itools/header_generation/create_hdr_esbc/include/ -Itools/header_generation/create_hdr_pbi/include/ -Itools/header_generation/create_hdr_cf/include/ -Itools/fuse_provisioning/include/ -Itaal/include -Icommon/include -Ilib_hash_drbg/include -isystem.../usr/include -O2 -pipe common/crypto_utils.c
| common/crypto_utils.c: In function 'crypto_hash_init'
| common/crypto_utils.c:46:2: error: 'SHA256_Init' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|    46 |  SHA256_Init(c);
|       |  ^~~~~~~~~~~
| In file included from .../usr/include/openssl/x509.h:41,
|                  from .../usr/include/openssl/ssl.h:31,
|                  from common/crypto_utils.c:37:
| .../usr/include/openssl/sha.h:73:27: note: declared here
|    73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c);
|       |                           ^~~~~~~~~~~
| cc1: all warnings being treated as errors
| make: *** [Makefile:172: crypto_utils.o] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| NOTE: recipe cst-native-git-r0: task do_compile: Failed

Signed-off-by: Ting Liu <ting.liu@nxp.com>
recipes-devtools/cst/cst_git.bb

index 71df0a352514c912afc6830c56dbb484a85e3238..d4a9a85983598de906e9e3d6d04cd5578e6093a2 100644 (file)
@@ -24,6 +24,7 @@ SRCREV = "dfe30d3f05cfe281896482839e57ed49c52f2088"
 S = "${WORKDIR}/git"
 
 EXTRA_OEMAKE = 'CC="${CC}" LD="${CC}"'
+CFLAGS:append = ' -Wno-deprecated-declarations'
 
 PARALLEL_MAKE = ""