[4/5] configs/beaglebone_defconfig: add hashes for Linux/headers/U-Boot

Message ID 20240720201659.2253736-4-dario.binacchi@amarulasolutions.com
State New
Headers show
Series
  • [1/5] configs/beaglebone_qt5: bump U-Boot to 2024.07
Related show

Commit Message

Dario Binacchi July 20, 2024, 8:16 p.m. UTC
The patch adds .hash files for 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 <dario.binacchi@amarulasolutions.com>
---
 .checkpackageignore                                             | 1 -
 .../beaglebone/patches/linux-headers/linux-headers.hash         | 1 +
 board/beagleboard/beaglebone/patches/linux/linux.hash           | 2 ++
 board/beagleboard/beaglebone/patches/uboot/uboot.hash           | 2 ++
 configs/beaglebone_defconfig                                    | 2 ++
 5 files changed, 7 insertions(+), 1 deletion(-)
 create mode 120000 board/beagleboard/beaglebone/patches/linux-headers/linux-headers.hash
 create mode 100644 board/beagleboard/beaglebone/patches/linux/linux.hash
 create mode 100644 board/beagleboard/beaglebone/patches/uboot/uboot.hash

Comments

'Krzysztof Kozlowski' via Amarula Linux July 30, 2024, 9:45 p.m. UTC | #1
On Sat, 20 Jul 2024 22:16:58 +0200
Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote:

> The patch adds .hash files for 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 <dario.binacchi@amarulasolutions.com>
> ---
>  .checkpackageignore                                             | 1 -
>  .../beaglebone/patches/linux-headers/linux-headers.hash         | 1 +
>  board/beagleboard/beaglebone/patches/linux/linux.hash           | 2 ++
>  board/beagleboard/beaglebone/patches/uboot/uboot.hash           | 2 ++
>  configs/beaglebone_defconfig                                    | 2 ++
>  5 files changed, 7 insertions(+), 1 deletion(-)
>  create mode 120000 board/beagleboard/beaglebone/patches/linux-headers/linux-headers.hash
>  create mode 100644 board/beagleboard/beaglebone/patches/linux/linux.hash
>  create mode 100644 board/beagleboard/beaglebone/patches/uboot/uboot.hash

Applied to master, thanks.

Thomas

Patch

diff --git a/.checkpackageignore b/.checkpackageignore
index 2f40d1e77c6b..2aec21b90faa 100644
--- a/.checkpackageignore
+++ b/.checkpackageignore
@@ -141,7 +141,6 @@  configs/bananapi_m2_berry_defconfig lib_defconfig.ForceCheckHash
 configs/bananapi_m2_ultra_defconfig lib_defconfig.ForceCheckHash
 configs/bananapi_m2_zero_defconfig lib_defconfig.ForceCheckHash
 configs/bananapro_defconfig lib_defconfig.ForceCheckHash
-configs/beaglebone_defconfig lib_defconfig.ForceCheckHash
 configs/beelink_gs1_defconfig lib_defconfig.ForceCheckHash
 configs/broadcom_northstar_defconfig lib_defconfig.ForceCheckHash
 configs/canaan_kd233_defconfig lib_defconfig.ForceCheckHash
diff --git a/board/beagleboard/beaglebone/patches/linux-headers/linux-headers.hash b/board/beagleboard/beaglebone/patches/linux-headers/linux-headers.hash
new file mode 120000
index 000000000000..5808d92afe89
--- /dev/null
+++ b/board/beagleboard/beaglebone/patches/linux-headers/linux-headers.hash
@@ -0,0 +1 @@ 
+../linux/linux.hash
\ No newline at end of file
diff --git a/board/beagleboard/beaglebone/patches/linux/linux.hash b/board/beagleboard/beaglebone/patches/linux/linux.hash
new file mode 100644
index 000000000000..ce0613ad4467
--- /dev/null
+++ b/board/beagleboard/beaglebone/patches/linux/linux.hash
@@ -0,0 +1,2 @@ 
+# Locally calculated
+sha256  6b73d8dca21000030acd2e37aed43f23de2fdd2850a2808722658241df48e671  linux-6.1.80-ti-r34.tar.gz
diff --git a/board/beagleboard/beaglebone/patches/uboot/uboot.hash b/board/beagleboard/beaglebone/patches/uboot/uboot.hash
new file mode 100644
index 000000000000..bc999536af21
--- /dev/null
+++ b/board/beagleboard/beaglebone/patches/uboot/uboot.hash
@@ -0,0 +1,2 @@ 
+# Locally calculated
+sha256  b99611f1ed237bf3541bdc8434b68c96a6e05967061f992443cb30aabebef5b3  u-boot-2024.01.tar.bz2
diff --git a/configs/beaglebone_defconfig b/configs/beaglebone_defconfig
index b1a0c7cda408..28f3c20c00ee 100644
--- a/configs/beaglebone_defconfig
+++ b/configs/beaglebone_defconfig
@@ -7,6 +7,8 @@  BR2_ARM_FPU_VFPV3=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1=y
 
 # System
+BR2_GLOBAL_PATCH_DIR="board/beagleboard/beaglebone/patches"
+BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
 
 # Image