mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 14:31:47 -09:00
Remove -Werror from CFLAGS to prevent build errors due to warnings of
deprecated functions:
futility/cmd_create.c: In function ‘vb1_make_keypair’:
futility/cmd_create.c:96:9: error: ‘PEM_read_RSAPrivateKey’ is deprecated:
Since OpenSSL 3.0 [-Werror=deprecated-declarations]
96 | rsa_key = PEM_read_RSAPrivateKey(fp, NULL, NULL, NULL);
futility/cmd_create.c:155:9: error: ‘RSA_free’ is deprecated:
Since OpenSSL 3.0 [-Werror=deprecated-declarations]
155 | RSA_free(rsa_key);
futility/cmd_create.c:191:17: error: ‘PEM_read_RSA_PUBKEY’ is deprecated:
Since OpenSSL 3.0 [-Werror=deprecated-declarations]
191 | rsa_key = PEM_read_RSA_PUBKEY(fp, NULL, NULL, NULL);
futility/cmd_create.c:199:9: error: ‘RSA_get0_key’ is deprecated:
Since OpenSSL 3.0 [-Werror=deprecated-declarations]
199 | RSA_get0_key(rsa_key, NULL, NULL, &rsa_d);
cc1: all warnings being treated as errors
The oldest build error dates back to 2024 so a backport to LTS branches
should be considered.
Fixes:
https://autobuild.buildroot.net/results/375/37554c5ce784835a36f0068d9a0c1cd931212b44/
https://autobuild.buildroot.net/results/1fa/1fabca11c7839d2d7ed809f30482595719a29c92/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 4463009364)
Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
48 lines
1.5 KiB
Makefile
48 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# vboot-utils
|
|
#
|
|
################################################################################
|
|
|
|
VBOOT_UTILS_VERSION = 042312c6e7fce9dd106b329be0ecb51a8a347337
|
|
VBOOT_UTILS_SITE = https://chromium.googlesource.com/chromiumos/platform/vboot_reference
|
|
VBOOT_UTILS_SITE_METHOD = git
|
|
VBOOT_UTILS_LICENSE = BSD-3-Clause
|
|
VBOOT_UTILS_LICENSE_FILES = LICENSE
|
|
|
|
HOST_VBOOT_UTILS_DEPENDENCIES = host-openssl host-util-linux host-pkgconf
|
|
|
|
# vboot_reference contains code that goes into bootloaders,
|
|
# utilities intended for the target system, and a bunch of scripts
|
|
# for Chromium OS build system. Most of that does not make sense
|
|
# in a buildroot host-package.
|
|
#
|
|
# We only need futility for signing images, the keys, and cgpt for boot
|
|
# media partitioning.
|
|
#
|
|
# make target for futility is "futil".
|
|
#
|
|
# The value of ARCH is only relevant for crossystem (a target tool) and
|
|
# does not affect futil or cgpt in any way as long as it is one of the
|
|
# supported targets.
|
|
|
|
HOST_VBOOT_UTILS_MAKE_OPTS = USE_FLASHROM=0
|
|
|
|
define HOST_VBOOT_UTILS_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_VBOOT_UTILS_MAKE_OPTS) -C $(@D) \
|
|
CC="$(HOSTCC)" \
|
|
CPPFLAGS="$(HOST_CFLAGS) -D_LARGEFILE64_SOURCE -D_GNU_SOURCE" \
|
|
LDFLAGS="$(HOST_LDFLAGS)" \
|
|
WERROR="" \
|
|
ARCH=arm \
|
|
futil cgpt
|
|
endef
|
|
|
|
define HOST_VBOOT_UTILS_INSTALL_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_VBOOT_UTILS_MAKE_OPTS) -C $(@D) \
|
|
DESTDIR=$(HOST_DIR) \
|
|
futil_install cgpt_install devkeys_install
|
|
endef
|
|
|
|
$(eval $(host-generic-package))
|