]> git.baikalelectronics.ru Git - kernel.git/commit
certs: fix and refactor CONFIG_SYSTEM_BLACKLIST_HASH_LIST build
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 11 Jun 2022 17:22:31 +0000 (02:22 +0900)
committerJarkko Sakkinen <jarkko@kernel.org>
Wed, 15 Jun 2022 18:52:32 +0000 (21:52 +0300)
commitbfa7bf89abc16f944540f74920219824b5a26658
treec18c4378c767ebfa4ee221b4400793dec1f51343
parente386ce4292ba9ccc44627aec69a53ea095895439
certs: fix and refactor CONFIG_SYSTEM_BLACKLIST_HASH_LIST build

Commit 4dbf0d7281b6 ("certs: Check that builtin blacklist hashes are
valid") was applied 8 months after the submission.

In the meantime, the base code had been removed by commit e311d8525a75
("certs: simplify $(srctree)/ handling and remove config_filename
macro").

Fix the Makefile.

Create a local copy of $(CONFIG_SYSTEM_BLACKLIST_HASH_LIST). It is
included from certs/blacklist_hashes.c and also works as a timestamp.

Send error messages from check-blacklist-hashes.awk to stderr instead
of stdout.

Fixes: 4dbf0d7281b6 ("certs: Check that builtin blacklist hashes are valid")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Reviewed-by: Mickaël Salaün <mic@linux.microsoft.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
certs/.gitignore
certs/Makefile
certs/blacklist_hashes.c