Skip to contentSkip to conversation

configs/stm32f429_disco_xip: add hashes

PATCH Applied Dario Binacchi 3 participants 3 messages Jun 6, 2024 – Jun 11, 2024 Arm STM32

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs/stm32f429_disco_xip: add hashes

The patch adds .hash files for Linux and Linux headers and then enables BR2_DOWNLOAD_FORCE_CHECK_HASHES. With this, we can now drop the defconfig from .checkpackageignore.

---
 .checkpackageignore                                             | 1 -
 .../stm32f429-disco/patches/linux-headers/linux-headers.hash    | 1 +
 .../stmicroelectronics/stm32f429-disco/patches/linux/linux.hash | 2 ++
 configs/stm32f429_disco_xip_defconfig                           | 2 ++
 4 files changed, 5 insertions(+), 1 deletion(-)
 create mode 120000 board/stmicroelectronics/stm32f429-disco/patches/linux-headers/linux-headers.hash
 create mode 100644 board/stmicroelectronics/stm32f429-disco/patches/linux/linux.hash
.checkpackageignore +0 -1
index d0bd179a5c02..437aafb41594 100644
@@ -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/stm32f769_disco_sd_defconfig lib_defconfig.ForceCheckHash
board/stmicroelectronics/stm32f429-disco/patches/linux-headers/linux-headers.hash new file +1 -0
new file mode 120000
index 000000000000..5808d92afe89
@@ -0,0 +1 @@
+../linux/linux.hash
\ No newline at end of file
board/stmicroelectronics/stm32f429-disco/patches/linux/linux.hash new file +2 -0
new file mode 100644
index 000000000000..c1bd9f9100d5
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  c2b74b96dd3d0cc9f300914ef7c4eef76d5fac9de6047961f49e69447ce9f905  linux-6.1.27.tar.xz
configs/stm32f429_disco_xip_defconfig +2 -0
index 99ae8cc7533b..e3d3cc38ff8e 100644
@@ -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
Signature · 6 lines
2.43.0

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

Dario, All,

On 2024-06-06 12:22 +0200, Dario Binacchi spake thusly:

Quoted 6 lines

The patch adds .hash files for Linux and Linux headers and then enables BR2_DOWNLOAD_FORCE_CHECK_HASHES. With this, we can now drop the defconfig from .checkpackageignore.

---

[--SNIP--]

board/stmicroelectronics/stm32f429-disco/patches/linux-headers/linux-headers.hash line 1

Quoted 8 lines
board/stmicroelectronics/stm32f429-disco/patches/linux-headers/linux-headers.hash new file +1 -0
new file mode 120000
index 000000000000..5808d92afe89
@@ -0,0 +1 @@
+../linux/linux.hash
\ No newline at end of file

This symlink is not needed in that defconfig: it uses linux-headers that are not the same as the kernel, and instead use the 6.1.x from the linux-headers version choice.

SoI dropped the symlink, to avoid any confusion.

Applied to master, with the above fixed, thanks.

Regards,
Yann E. MORIN.

Quoted 28 lines
board/stmicroelectronics/stm32f429-disco/patches/linux/linux.hash new file +2 -0
new file mode 100644
index 000000000000..c1bd9f9100d5
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  c2b74b96dd3d0cc9f300914ef7c4eef76d5fac9de6047961f49e69447ce9f905  linux-6.1.27.tar.xz
configs/stm32f429_disco_xip_defconfig +2 -0
index 99ae8cc7533b..e3d3cc38ff8e 100644
@@ -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
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Hi,

Quoted 8 lines

board/stmicroelectronics/stm32f429-disco/patches/linux-headers/linux-headers.hash line 1

Quoted 4 lines

+++ b/board/stmicroelectronics/stm32f429-disco/patches/linux-headers/linux-headers.hash

board/stmicroelectronics/stm32f429-disco/patches/linux-headers/linux-headers.hash new file +1 -0
@@ -0,0 +1 @@
+../linux/linux.hash
\ No newline at end of file

This symlink is not needed in that defconfig: it uses linux-headers that are not the same as the kernel, and instead use the 6.1.x from the linux-headers version choice.

Is there any valid reason why it does so? If not, I would suggest to change it to match the other defconfigs.

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