u-boot/scripts
Ilias Apalodimas fd58c275f6 efi_loader: Move public cert for capsules to .rodata
commit ddf67daac3 ("efi_capsule: Move signature from DTB to .rodata")
was reverted in
commit 47a25e81d3 ("Revert "efi_capsule: Move signature from DTB to .rodata"")
because that's what U-Boot was usually doing -- using the DT to store
configuration and data. Some of the discussions can be found here [0].

(Ab)using the device tree to store random data isn't ideal though.
On top of that with new features introduced over the years, keeping
the certificates in the DT has proven to be problematic.
One of the reasons is that platforms might send U-Boot a DTB
from the previous stage loader using a transfer list which won't contain
the signatures since other loaders are not  aware of internal
U-Boot ABIs. On top of that QEMU creates the DTB on the fly, so adding
the capsule certificate there does not work and requires users to dump
it and re-create it injecting the public keys.

Now that we have proper memory permissions for arm64, move the certificate
to .rodata and read it from there.

[0] https://lore.kernel.org/u-boot/CAPnjgZ2uM=n8Qo-a=DUkx5VW5Bzp5Xy8=Wgmrw8ESqUBK00YJQ@mail.gmail.com/

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Jonathan Humphreys <j-humphreys@ti.com>  # on TI sk-am62p-lp
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on AML-A311D-CC
Tested-by: Raymond Mao <raymond.mao@linaro.org>
2025-04-11 13:25:31 +02:00
..
basic fixdep: Support VPL 2024-07-29 08:42:18 -06:00
coccinelle
dtc dtc: introduce label relative path references 2025-04-10 11:58:08 -06:00
kconfig tools/scripts/Kconfig: Update references from kconfig-language.txt to rst 2024-08-27 18:01:32 -06:00
.gitignore
bin2c.c
binutils-version.sh
build-cb.sh
build-efi.sh efI: Allow packaging a kernel in the debugging script 2023-03-25 11:07:22 +01:00
build_OID_registry
check-of.sh
checkpatch.pl checkpatch.pl: Report an error for CONFIG_xPL_BUILD in device trees 2025-03-18 08:17:36 -06:00
checkstack.pl
clang-version.sh
cleanpatch
coccicheck Use grep -E or plain grep instead of egrep 2023-01-11 15:02:24 -05:00
config scripts/config: pick config script from kernel scripts 2022-08-10 13:46:55 -04:00
const_structs.checkpatch
coreboot.sed
decodecode scripts/decodecode: update from Linux v6.10 2024-08-15 11:51:26 -06:00
documentation-file-ref-check
dtc-version.sh scripts: dtc-version: Don't show error messages 2024-03-02 12:25:20 -05:00
env2string.awk env: Allow text-env tests to run with awk 2022-04-07 16:50:53 -04:00
event_dump.py scripts: typos in event_dump.py 2025-03-18 08:17:27 -06:00
gcc-stack-usage.sh
gcc-version.sh
gen_compile_commands.py scripts: gen_compile_commands: fix invalid escape sequence warning 2024-05-13 16:51:14 -06:00
gen_ll_addressable_symbols.sh sandbox: Fix LTO to work with STACKPROTECTOR 2024-07-26 08:01:06 -06:00
get_default_envs.sh scripts/get_default_envs.sh: Remove blank lines 2022-04-07 16:50:53 -04:00
get_maintainer.pl get_maintainer.pl: slightly modify penguin_chief 2024-01-18 20:24:13 -05:00
Kbuild.include global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
Kconfig.include tests: Build correct sandbox configuration on 32bit 2022-10-29 07:36:33 -06:00
kernel-doc
ld-version.sh
Lindent
mailmapper
make_pip.sh tools/make_pip: Add mention of u_boot_pylib in tool list 2023-12-13 18:39:06 -05:00
Makefile
Makefile.autoconf xpl: Define CONFIG_SPL_BUILD only for the SPL build 2024-10-11 11:44:48 -06:00
Makefile.build kbuild: cherry-pick kbuild fdtoverlay changes from linux 2024-09-20 08:31:57 +02:00
Makefile.clean
Makefile.dts Merge tag 'u-boot-imx-master-20241018a' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx 2024-10-18 09:05:04 -06:00
Makefile.extrawarn Kconfig: Introduce CONFIG_WERROR 2025-03-13 14:23:11 -06:00
Makefile.host kbuild: add KBUILD_HOSTLDFLAGS to cmd_host-csingle 2022-08-31 12:16:01 -04:00
Makefile.lib efi_loader: Move public cert for capsules to .rodata 2025-04-11 13:25:31 +02:00
Makefile.xpl Makefile: Make sure all linker input objects exist 2025-01-18 08:28:16 -06:00
mkmakefile
objdiff
of_allowlist.txt
pylint.base scripts: Update pylint.base 2024-09-18 13:00:59 -06:00
setlocalversion scripts/setlocalversion: sync with linux v6.9 2024-05-21 16:09:36 -06:00
show-gnu-make
spdxcheck.py
spelling.txt scripts: add volatge to spelling.txt 2024-12-24 18:09:46 +01:00
style.py RFC: tools: Add a camel-case conversion script 2023-03-01 11:22:27 -07:00
u-boot.supp malloc: Annotate allocator for valgrind 2022-04-11 10:00:30 -04:00