[Buildroot] [PATCH 1/1] configs/imx28evk: enable BR2_DOWNLOAD_FORCE_CHECK_HASHES

Julien Olivain ju.o at free.fr
Tue May 6 19:45:01 UTC 2025


This commit adds BR2_DOWNLOAD_FORCE_CHECK_HASHES=y in the defconfig
and adds custom hash files. The exception entry in .checkpackageignore
is also removed.

Cc: Fabio Estevam <festevam at gmail.com>
Signed-off-by: Julien Olivain <ju.o at free.fr>
---
Patch tested in:
https://gitlab.com/jolivain/buildroot/-/jobs/9947424115
---
 .checkpackageignore                                             | 1 -
 .../freescale/imx28evk/patches/linux-headers/linux-headers.hash | 1 +
 board/freescale/imx28evk/patches/linux/linux.hash               | 2 ++
 board/freescale/imx28evk/patches/uboot/uboot.hash               | 2 ++
 configs/imx28evk_defconfig                                      | 2 ++
 5 files changed, 7 insertions(+), 1 deletion(-)
 create mode 120000 board/freescale/imx28evk/patches/linux-headers/linux-headers.hash
 create mode 100644 board/freescale/imx28evk/patches/linux/linux.hash
 create mode 100644 board/freescale/imx28evk/patches/uboot/uboot.hash

diff --git a/.checkpackageignore b/.checkpackageignore
index 7bfc457c90..038e3d6dc6 100644
--- a/.checkpackageignore
+++ b/.checkpackageignore
@@ -139,7 +139,6 @@ configs/engicam_imx6qdl_icore_qt5_defconfig lib_defconfig.ForceCheckHash
 configs/engicam_imx6qdl_icore_rqs_defconfig lib_defconfig.ForceCheckHash
 configs/engicam_imx6ul_geam_defconfig lib_defconfig.ForceCheckHash
 configs/engicam_imx6ul_isiot_defconfig lib_defconfig.ForceCheckHash
-configs/imx28evk_defconfig lib_defconfig.ForceCheckHash
 configs/freescale_p1025twr_defconfig lib_defconfig.ForceCheckHash
 configs/freescale_t1040d4rdb_defconfig lib_defconfig.ForceCheckHash
 configs/freescale_t2080_qds_rdb_defconfig lib_defconfig.ForceCheckHash
diff --git a/board/freescale/imx28evk/patches/linux-headers/linux-headers.hash b/board/freescale/imx28evk/patches/linux-headers/linux-headers.hash
new file mode 120000
index 0000000000..5808d92afe
--- /dev/null
+++ b/board/freescale/imx28evk/patches/linux-headers/linux-headers.hash
@@ -0,0 +1 @@
+../linux/linux.hash
\ No newline at end of file
diff --git a/board/freescale/imx28evk/patches/linux/linux.hash b/board/freescale/imx28evk/patches/linux/linux.hash
new file mode 100644
index 0000000000..8aeb3785b4
--- /dev/null
+++ b/board/freescale/imx28evk/patches/linux/linux.hash
@@ -0,0 +1,2 @@
+# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
+sha256  af54b449f4fb93b8e8daa346144a7309e8e95174bd962c4b5917cf56120456d9  linux-6.6.26.tar.xz
diff --git a/board/freescale/imx28evk/patches/uboot/uboot.hash b/board/freescale/imx28evk/patches/uboot/uboot.hash
new file mode 100644
index 0000000000..97a2b4eaf9
--- /dev/null
+++ b/board/freescale/imx28evk/patches/uboot/uboot.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  18a853fe39fad7ad03a90cc2d4275aeaed6da69735defac3492b80508843dd4a  u-boot-2024.04.tar.bz2
diff --git a/configs/imx28evk_defconfig b/configs/imx28evk_defconfig
index 8c428e3fec..d34f413440 100644
--- a/configs/imx28evk_defconfig
+++ b/configs/imx28evk_defconfig
@@ -1,5 +1,7 @@
 BR2_arm=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
+BR2_GLOBAL_PATCH_DIR="board/freescale/imx28evk/patches"
+BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/mxs/post-image.sh"
 BR2_LINUX_KERNEL=y
-- 
2.49.0



More information about the buildroot mailing list