diff options
author | Simon Glass <sjg@chromium.org> | 2023-02-10 12:12:07 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-29 08:19:36 +0000 |
commit | 33a210ddc97ddc722463a8c32d245907803d3958 (patch) | |
tree | ce37714a81d02a71ccb4bddd36894d37ee038b7b | |
parent | 6a611a4c6b9a62a6f331fb8c9a67fc554dc59666 (diff) | |
download | vboot-33a210ddc97ddc722463a8c32d245907803d3958.tar.gz |
Avoid build failures with dumpRSAPublicKey on recent distros
Emit a warning and continue when OpenSSL is newer than expected. The
chroot still uses an older version.
This was broken by:
0ca7a9e4 ("firmware: host: futility: Add CBFS metadata hash support")
BUG=b:245993083, b:246328810, b:197114807
BRANCH=none
TEST=make -C ~/cosarm/src/platform/vboot_reference/ USE_FLASHROM=0
See that the errors become warnings and the build completes
Change-Id: Id4e25e4ebad1d9ae1f6ee5425b3e6fe3cbd5d5e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4241424
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4380994
Auto-Submit: Phoebe Wang <phoebewang@chromium.org>
Commit-Queue: Cheng Yueh <cyueh@chromium.org>
Tested-by: Phoebe Wang <phoebewang@chromium.org>
Reviewed-by: Cheng Yueh <cyueh@chromium.org>
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1016,6 +1016,11 @@ util_files: $(if ${SDK_BUILD},${UTIL_FILES_SDK},${UTIL_FILES_BOARD}) # These have their own headers too. ${BUILD}/utility/%: INCLUDES += -Iutility/include +# Avoid build failures outside the chroot on Ubuntu 2022.04 +ifeq ($(OPENSSL_VERSION),3) +${BUILD}/utility/%: CFLAGS += -Wno-error=deprecated-declarations +endif + ${UTIL_BINS_SDK}: ${UTILLIB} ${UTIL_BINS_SDK}: LIBS = ${UTILLIB} ${UTIL_BINS_BOARD}: ${UTILLIB} |