* [Buildroot] [PATCH] toradx_apalis_imx6_defconfig: add download hashes for linux/uboot
@ 2023-12-01 21:14 Peter Korsgaard
2023-12-03 16:38 ` Peter Korsgaard
2023-12-03 22:11 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Peter Korsgaard @ 2023-12-01 21:14 UTC (permalink / raw)
To: buildroot; +Cc: Sergio Prado
The defconfig fetches Linux and U-Boot from a git repo using the
unauthenticated git:// protocol, so add download hashes for them to ensure
we get the right sources by adding a global patch dir and running
utils/add-custom-hashes.
The defconfig uses the Linux sources for the kernel headers, so make
linux-headers/linux-headers.hash a symlink to linux/linux.hash so the same
hash file is used.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
| 1 +
board/toradex/apalis-imx6/patches/linux/linux.hash | 2 ++
board/toradex/apalis-imx6/patches/uboot/uboot.hash | 2 ++
configs/toradex_apalis_imx6_defconfig | 1 +
4 files changed, 6 insertions(+)
create mode 120000 board/toradex/apalis-imx6/patches/linux-headers/linux-headers.hash
create mode 100644 board/toradex/apalis-imx6/patches/linux/linux.hash
create mode 100644 board/toradex/apalis-imx6/patches/uboot/uboot.hash
--git a/board/toradex/apalis-imx6/patches/linux-headers/linux-headers.hash b/board/toradex/apalis-imx6/patches/linux-headers/linux-headers.hash
new file mode 120000
index 0000000000..5808d92afe
--- /dev/null
+++ b/board/toradex/apalis-imx6/patches/linux-headers/linux-headers.hash
@@ -0,0 +1 @@
+../linux/linux.hash
\ No newline at end of file
diff --git a/board/toradex/apalis-imx6/patches/linux/linux.hash b/board/toradex/apalis-imx6/patches/linux/linux.hash
new file mode 100644
index 0000000000..1138ec3b93
--- /dev/null
+++ b/board/toradex/apalis-imx6/patches/linux/linux.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 9c69a1c283db6ee8042cc6f013a159473f257e71751887312c7dd2902f01bec8 linux-d899927728beca8357a5b4120b690cb3c1d80844-br1.tar.gz
diff --git a/board/toradex/apalis-imx6/patches/uboot/uboot.hash b/board/toradex/apalis-imx6/patches/uboot/uboot.hash
new file mode 100644
index 0000000000..a81a7d8d4a
--- /dev/null
+++ b/board/toradex/apalis-imx6/patches/uboot/uboot.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 9a540b08ccb7e8a0252f86d0bad5d676d0964725a7f2a06d798225c2a3024878 uboot-30a1208727729dae22cb42f9ba9ba17efe5e6f77-br1.tar.gz
diff --git a/configs/toradex_apalis_imx6_defconfig b/configs/toradex_apalis_imx6_defconfig
index 40a2d2d520..e447190e0c 100644
--- a/configs/toradex_apalis_imx6_defconfig
+++ b/configs/toradex_apalis_imx6_defconfig
@@ -1,6 +1,7 @@
BR2_arm=y
BR2_cortex_a9=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
+BR2_GLOBAL_PATCH_DIR="board/toradex/apalis-imx6/patches"
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/toradex/apalis-imx6/post-image.sh"
BR2_LINUX_KERNEL=y
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [Buildroot] [PATCH] toradx_apalis_imx6_defconfig: add download hashes for linux/uboot
2023-12-01 21:14 [Buildroot] [PATCH] toradx_apalis_imx6_defconfig: add download hashes for linux/uboot Peter Korsgaard
@ 2023-12-03 16:38 ` Peter Korsgaard
2023-12-03 22:11 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2023-12-03 16:38 UTC (permalink / raw)
To: buildroot; +Cc: Sergio Prado
>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:
> The defconfig fetches Linux and U-Boot from a git repo using the
> unauthenticated git:// protocol, so add download hashes for them to ensure
> we get the right sources by adding a global patch dir and running
> utils/add-custom-hashes.
> The defconfig uses the Linux sources for the kernel headers, so make
> linux-headers/linux-headers.hash a symlink to linux/linux.hash so the same
> hash file is used.
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH] toradx_apalis_imx6_defconfig: add download hashes for linux/uboot
2023-12-01 21:14 [Buildroot] [PATCH] toradx_apalis_imx6_defconfig: add download hashes for linux/uboot Peter Korsgaard
2023-12-03 16:38 ` Peter Korsgaard
@ 2023-12-03 22:11 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2023-12-03 22:11 UTC (permalink / raw)
To: buildroot; +Cc: Sergio Prado
>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:
> The defconfig fetches Linux and U-Boot from a git repo using the
> unauthenticated git:// protocol, so add download hashes for them to ensure
> we get the right sources by adding a global patch dir and running
> utils/add-custom-hashes.
> The defconfig uses the Linux sources for the kernel headers, so make
> linux-headers/linux-headers.hash a symlink to linux/linux.hash so the same
> hash file is used.
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Committed to 2023.02.x and 2023.08.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-12-03 22:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-01 21:14 [Buildroot] [PATCH] toradx_apalis_imx6_defconfig: add download hashes for linux/uboot Peter Korsgaard
2023-12-03 16:38 ` Peter Korsgaard
2023-12-03 22:11 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox