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 scripts: ensure the cocci script for miiphy_register does not leak the MDIO bus 2021-09-28 18:50:57 +03:00
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 x86: coreboot: Add a sample script to build a qemu image 2021-12-26 23:33:28 +01:00
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 fdt: Makefile: Ensure that OF_BOARD is used when needed 2021-12-23 11:19:39 -05:00
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 kconfig / kbuild: Re-sync with Linux 4.20 2021-07-14 16:57:35 -04:00
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 scripts: add documentation-file-ref-check 2020-04-17 12:32:36 -04:00
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 kconfig / kbuild: Re-sync with Linux 4.20 2021-07-14 16:57:35 -04:00
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 doc: update Kernel documentation build system 2021-01-27 12:52:57 +01:00
ld-version.sh
Lindent
mailmapper scripts/mailmapper: enable running with Python 3 2021-09-28 18:50:55 +03:00
make_pip.sh tools/make_pip: Add mention of u_boot_pylib in tool list 2023-12-13 18:39:06 -05:00
Makefile scripts: Makefile: also clean subdir dtc 2022-02-03 12:15:36 -05:00
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 kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
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 kconfig / kbuild: Re-sync with Linux 4.20 2021-07-14 16:57:35 -04:00
objdiff
of_allowlist.txt fdt: Makefile: Ensure that OF_BOARD is used when needed 2021-12-23 11:19:39 -05:00
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 scripts/checkpatch.pl: Resync with v5.16 2022-02-03 12:16:00 -05:00
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