c19cca0452
Now that we document _CPE_ID_VALID, and that it shall be used instead of setting a default value to one of the other _CPE_ID_* variables, change all of the existing packages to use it, to avoid any error when we later extend check-package to validate the sanity ofthe _CPE_ID_* variables. Mechanical change done within the reference container, running the new check in check-package, to report the CPE_ID errors: $ make check-package 2>/dev/null \ |awk '{ split($(1), a, ":"); fname = a[1] split($(2), a, "'\''"); val = a[2] new_var = $(8); gsub("_CPE_ID_.*", "_CPE_ID_VALID", new_var) printf("%s %s %s %s\n", fname, $(8), val, new_var) }' \ |while read fname var val new_var; do sed -r -i -e "s/${var}[[:space:]]*=[[:space:]]*${val}/${new_var} = YES/" "${fname}" done $ git diff -I'CPE_ID_(VENDOR|VALID)' [empty] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
30 lines
964 B
Makefile
30 lines
964 B
Makefile
################################################################################
|
|
#
|
|
# tpm2-tools
|
|
#
|
|
################################################################################
|
|
|
|
TPM2_TOOLS_VERSION = 5.2
|
|
TPM2_TOOLS_SITE = https://github.com/tpm2-software/tpm2-tools/releases/download/$(TPM2_TOOLS_VERSION)
|
|
TPM2_TOOLS_LICENSE = BSD-3-Clause
|
|
TPM2_TOOLS_LICENSE_FILES = doc/LICENSE
|
|
TPM2_TOOLS_CPE_ID_VALID = YES
|
|
TPM2_TOOLS_SELINUX_MODULES = tpm2
|
|
TPM2_TOOLS_DEPENDENCIES = libcurl openssl tpm2-tss host-pkgconf
|
|
|
|
# -fstack-protector-all and FORTIFY_SOURCE=2 is used by
|
|
# default. Disable that so the BR2_SSP_* / BR2_FORTIFY_SOURCE_* options
|
|
# in the toolchain wrapper and CFLAGS are used instead
|
|
TPM2_TOOLS_CONF_OPTS = --disable-hardening
|
|
|
|
# do not build man pages
|
|
TPM2_TOOLS_CONF_ENV += ac_cv_prog_PANDOC=''
|
|
|
|
ifeq ($(BR2_PACKAGE_TPM2_TOOLS_FAPI),y)
|
|
TPM2_TOOLS_CONF_OPTS += --enable-fapi
|
|
else
|
|
TPM2_TOOLS_CONF_OPTS += --disable-fapi
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|