Skip to contentSkip to conversation

board/octavo: Add FORCE_CHECK_HASHES config and custom hashes

PATCH In review Kory Maincent via buildroot 2 participants 2 messages Feb 27, 2025 – Feb 28, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board/octavo: Add FORCE_CHECK_HASHES config and custom hashes

Enable FORCE_CHECK_HASHES to ensure that all hashes are valid even from custom packages.
Add custom version package hashes of Linux, U-boot and TF-A.

---
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash      | 2 ++
 board/octavo/osd32mp1-brk/patches/linux/linux.hash              | 2 ++
 board/octavo/osd32mp1-brk/patches/uboot/uboot.hash              | 2 ++
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash      | 2 ++
 board/octavo/osd32mp1-red/patches/linux/linux.hash              | 2 ++
 board/octavo/osd32mp1-red/patches/uboot/uboot.hash              | 2 ++
 configs/octavo_osd32mp1_brk_defconfig                           | 1 +
 configs/octavo_osd32mp1_red_defconfig                           | 1 +
 8 files changed, 14 insertions(+)
 create mode 100644 board/octavo/osd32mp1-brk/patches/arm-trusted-firmware/arm-trusted-firmware.hash
 create mode 100644 board/octavo/osd32mp1-brk/patches/linux/linux.hash
 create mode 100644 board/octavo/osd32mp1-brk/patches/uboot/uboot.hash
 create mode 100644 board/octavo/osd32mp1-red/patches/arm-trusted-firmware/arm-trusted-firmware.hash
 create mode 100644 board/octavo/osd32mp1-red/patches/linux/linux.hash
 create mode 100644 board/octavo/osd32mp1-red/patches/uboot/uboot.hash
board/octavo/osd32mp1-brk/patches/arm-trusted-firmware/arm-trusted-firmware.hash new file +2 -0
new file mode 100644
index 0000000000..2ba1cc0972
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  83d744c155097f27682a06fdba5f7e976fde6edf61474d40a5a44e71862a3822  arm-trusted-firmware-v2.4-stm32mp-r1-git4.tar.gz
board/octavo/osd32mp1-brk/patches/linux/linux.hash new file +2 -0
new file mode 100644
index 0000000000..ec9218e388
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  c2e22c6d13e5970839231ca29cfbe3bb66ef4d4d1cd3c2b5afb61f591f89d71a  linux-v5.10-stm32mp-r2.1-git4.tar.gz
board/octavo/osd32mp1-brk/patches/uboot/uboot.hash new file +2 -0
new file mode 100644
index 0000000000..6b51c2685b
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  49a2470ecd29c29cc712861372335c9e2020e5c56392c6417faf66dc7a782261  uboot-v2020.10-stm32mp-r2.1-git4.tar.gz
board/octavo/osd32mp1-red/patches/arm-trusted-firmware/arm-trusted-firmware.hash new file +2 -0
new file mode 100644
index 0000000000..2ba1cc0972
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  83d744c155097f27682a06fdba5f7e976fde6edf61474d40a5a44e71862a3822  arm-trusted-firmware-v2.4-stm32mp-r1-git4.tar.gz
board/octavo/osd32mp1-red/patches/linux/linux.hash new file +2 -0
new file mode 100644
index 0000000000..ec9218e388
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  c2e22c6d13e5970839231ca29cfbe3bb66ef4d4d1cd3c2b5afb61f591f89d71a  linux-v5.10-stm32mp-r2.1-git4.tar.gz
board/octavo/osd32mp1-red/patches/uboot/uboot.hash new file +2 -0
new file mode 100644
index 0000000000..6b51c2685b
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  49a2470ecd29c29cc712861372335c9e2020e5c56392c6417faf66dc7a782261  uboot-v2020.10-stm32mp-r2.1-git4.tar.gz
configs/octavo_osd32mp1_brk_defconfig +1 -0
index e8857f3649..2a6d794722 100644
@@ -4,6 +4,7 @@ BR2_TOOLCHAIN_EXTERNAL=y
 BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
 BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV7_EABIHF_GLIBC_STABLE=y
 BR2_GLOBAL_PATCH_DIR="board/octavo/osd32mp1-brk/patches"
+BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_ROOTFS_OVERLAY="board/octavo/osd32mp1-brk/overlay/"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/octavo/osd32mp1-brk/genimage.cfg"
configs/octavo_osd32mp1_red_defconfig +1 -0
index d179e0a27e..3646e2d04f 100644
@@ -4,6 +4,7 @@ BR2_TOOLCHAIN_EXTERNAL=y
 BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
 BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV7_EABIHF_GLIBC_STABLE=y
 BR2_GLOBAL_PATCH_DIR="board/octavo/osd32mp1-red/patches"
+BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_ROOTFS_OVERLAY="board/octavo/osd32mp1-red/overlay/"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/octavo/osd32mp1-red/genimage.cfg"
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Kory" == Kory Maincent <[email protected]> writes:

Enable FORCE_CHECK_HASHES to ensure that all hashes are valid even from custom packages.
Add custom version package hashes of Linux, U-boot and TF-A.

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot