From 9eb7eb456a6a530749d1c0121794c415b4888b96 Mon Sep 17 00:00:00 2001 From: Dario Binacchi Date: Thu, 6 Jun 2024 12:22:08 +0200 Subject: [PATCH] configs/stm32f429_disco_xip: add hashes The patch adds the .hash file for Linux, which then allow to enable BR2_DOWNLOAD_FORCE_CHECK_HASHES. With this, we can now drop the defconfig from .checkpackageignore. Note that the defconfig uses linux-headers that are not the same as the kernel (although the same series), and instead use the 6.1.x version from the linux-headers package choice. So we don't need to add a .hash file for linux-headers. Signed-off-by: Dario Binacchi [yann.morin.1998@free.fr: don't add linux-headers symlink; explain why] Signed-off-by: Yann E. MORIN --- .checkpackageignore | 1 - .../stmicroelectronics/stm32f429-disco/patches/linux/linux.hash | 2 ++ configs/stm32f429_disco_xip_defconfig | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 board/stmicroelectronics/stm32f429-disco/patches/linux/linux.hash diff --git a/.checkpackageignore b/.checkpackageignore index 35c8c0a59c..8a21b3f155 100644 --- a/.checkpackageignore +++ b/.checkpackageignore @@ -330,7 +330,6 @@ configs/solidrun_clearfog_defconfig lib_defconfig.ForceCheckHash configs/solidrun_clearfog_gt_8k_defconfig lib_defconfig.ForceCheckHash configs/solidrun_macchiatobin_defconfig lib_defconfig.ForceCheckHash configs/spike_riscv64_defconfig lib_defconfig.ForceCheckHash -configs/stm32f429_disco_xip_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 diff --git a/board/stmicroelectronics/stm32f429-disco/patches/linux/linux.hash b/board/stmicroelectronics/stm32f429-disco/patches/linux/linux.hash new file mode 100644 index 0000000000..c1bd9f9100 --- /dev/null +++ b/board/stmicroelectronics/stm32f429-disco/patches/linux/linux.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 c2b74b96dd3d0cc9f300914ef7c4eef76d5fac9de6047961f49e69447ce9f905 linux-6.1.27.tar.xz diff --git a/configs/stm32f429_disco_xip_defconfig b/configs/stm32f429_disco_xip_defconfig index 99ae8cc753..e3d3cc38ff 100644 --- a/configs/stm32f429_disco_xip_defconfig +++ b/configs/stm32f429_disco_xip_defconfig @@ -3,6 +3,8 @@ BR2_cortex_m4=y BR2_KERNEL_HEADERS_6_1=y # BR2_UCLIBC_INSTALL_UTILS is not set BR2_ENABLE_LTO=y +BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/stm32f429-disco/patches" +BR2_DOWNLOAD_FORCE_CHECK_HASHES=y BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y