From 0eb1ea8cb52cd9ea080aa113646e3656ce66b97f Mon Sep 17 00:00:00 2001 From: Dario Binacchi Date: Sat, 22 Jun 2024 20:04:32 +0200 Subject: [PATCH] configs/stm32mp157a_dk1: add hashes The patch adds .hash files for Arm trusted firmware, Linux, Linux headers and U-Boot and then enables BR2_DOWNLOAD_FORCE_CHECK_HASHES. With this, we can now drop the defconfig from .checkpackageignore. Signed-off-by: Dario Binacchi Signed-off-by: Thomas Petazzoni (cherry picked from commit 751228436a4c68bc440a2f9dd1ef12ceb861765c) Signed-off-by: Peter Korsgaard --- .checkpackageignore | 1 - .../patches/arm-trusted-firmware/arm-trusted-firmware.hash | 2 ++ .../stm32mp157a-dk1/patches/linux-headers/linux-headers.hash | 1 + .../stmicroelectronics/stm32mp157a-dk1/patches/linux/linux.hash | 2 ++ .../stmicroelectronics/stm32mp157a-dk1/patches/uboot/uboot.hash | 2 ++ configs/stm32mp157a_dk1_defconfig | 2 ++ 6 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 board/stmicroelectronics/stm32mp157a-dk1/patches/arm-trusted-firmware/arm-trusted-firmware.hash create mode 120000 board/stmicroelectronics/stm32mp157a-dk1/patches/linux-headers/linux-headers.hash create mode 100644 board/stmicroelectronics/stm32mp157a-dk1/patches/linux/linux.hash create mode 100644 board/stmicroelectronics/stm32mp157a-dk1/patches/uboot/uboot.hash diff --git a/.checkpackageignore b/.checkpackageignore index ee44e82f5b..631e1d9da5 100644 --- a/.checkpackageignore +++ b/.checkpackageignore @@ -331,7 +331,6 @@ configs/solidrun_macchiatobin_defconfig lib_defconfig.ForceCheckHash configs/spike_riscv64_defconfig lib_defconfig.ForceCheckHash configs/stm32f469_disco_sd_defconfig lib_defconfig.ForceCheckHash configs/stm32f469_disco_xip_defconfig lib_defconfig.ForceCheckHash -configs/stm32mp157a_dk1_defconfig lib_defconfig.ForceCheckHash configs/stm32mp157c_dk2_defconfig lib_defconfig.ForceCheckHash configs/stm32mp157c_odyssey_defconfig lib_defconfig.ForceCheckHash configs/terasic_de10nano_cyclone5_defconfig lib_defconfig.ForceCheckHash diff --git a/board/stmicroelectronics/stm32mp157a-dk1/patches/arm-trusted-firmware/arm-trusted-firmware.hash b/board/stmicroelectronics/stm32mp157a-dk1/patches/arm-trusted-firmware/arm-trusted-firmware.hash new file mode 100644 index 0000000000..97c4500711 --- /dev/null +++ b/board/stmicroelectronics/stm32mp157a-dk1/patches/arm-trusted-firmware/arm-trusted-firmware.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 068325043b7c8ecc47ebb8b4f241f01e86d3f69dc49a63f340aa94bd41a9e6df arm-trusted-firmware/arm-trusted-firmware-lts-v2.8.16.tar.gz diff --git a/board/stmicroelectronics/stm32mp157a-dk1/patches/linux-headers/linux-headers.hash b/board/stmicroelectronics/stm32mp157a-dk1/patches/linux-headers/linux-headers.hash new file mode 120000 index 0000000000..5808d92afe --- /dev/null +++ b/board/stmicroelectronics/stm32mp157a-dk1/patches/linux-headers/linux-headers.hash @@ -0,0 +1 @@ +../linux/linux.hash \ No newline at end of file diff --git a/board/stmicroelectronics/stm32mp157a-dk1/patches/linux/linux.hash b/board/stmicroelectronics/stm32mp157a-dk1/patches/linux/linux.hash new file mode 100644 index 0000000000..8b7624cceb --- /dev/null +++ b/board/stmicroelectronics/stm32mp157a-dk1/patches/linux/linux.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 3f6baa97f37518439f51df2e4f3d65a822ca5ff016aa8e60d2cc53b95a6c89d9 linux-5.13.tar.xz diff --git a/board/stmicroelectronics/stm32mp157a-dk1/patches/uboot/uboot.hash b/board/stmicroelectronics/stm32mp157a-dk1/patches/uboot/uboot.hash new file mode 100644 index 0000000000..7cef5b688e --- /dev/null +++ b/board/stmicroelectronics/stm32mp157a-dk1/patches/uboot/uboot.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 e31cac91545ff41b71cec5d8c22afd695645cd6e2a442ccdacacd60534069341 u-boot-2023.04.tar.bz2 diff --git a/configs/stm32mp157a_dk1_defconfig b/configs/stm32mp157a_dk1_defconfig index aed6cfad34..38f7bc8946 100644 --- a/configs/stm32mp157a_dk1_defconfig +++ b/configs/stm32mp157a_dk1_defconfig @@ -6,6 +6,8 @@ BR2_cortex_a7=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_13=y # System configuration +BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/stm32mp157a-dk1/patches" +BR2_DOWNLOAD_FORCE_CHECK_HASHES=y BR2_ROOTFS_OVERLAY="board/stmicroelectronics/stm32mp157a-dk1/overlay/" BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp157/post-image.sh"