From bbb1e2c8df3d6eee107b64c949557009489aaaac Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Sun, 7 Jun 2026 00:51:18 +0200 Subject: [PATCH] configs/arcturus_ucp1020: specify Linux license file The used Linux kernel (4.4.144) does not contain the default license files as those were only added in 4.16 with commit e00a844aca ("LICENSES: Add Linux syscall note exception"), so specify the correct license file to fix: make legal-info .. cp: cannot stat '/path/to/output/build/linux-headers-custom/LICENSES/preferred/GPL-2.0': No such file or directory And add the sha256sum to the .hash file. Enable BR2_DOWNLOAD_FORCE_CHECK_HASHES. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/14728913808 (arcturus_ucp1020_defconfig) Signed-off-by: Romain Naour Cc: Michael Durrant [Julien: remove .checkpackageignore entry to fix check-package error] Signed-off-by: Julien Olivain --- .checkpackageignore | 1 - .../ppc-ucp1020/patches/linux-headers/linux-headers.hash | 1 + board/arcturus/ppc-ucp1020/patches/linux/linux.hash | 2 ++ board/arcturus/ppc-ucp1020/patches/uboot/uboot.hash | 2 ++ configs/arcturus_ucp1020_defconfig | 3 +++ 5 files changed, 8 insertions(+), 1 deletion(-) create mode 120000 board/arcturus/ppc-ucp1020/patches/linux-headers/linux-headers.hash create mode 100644 board/arcturus/ppc-ucp1020/patches/linux/linux.hash create mode 100644 board/arcturus/ppc-ucp1020/patches/uboot/uboot.hash diff --git a/.checkpackageignore b/.checkpackageignore index b4e7919c07..cf197e4b16 100644 --- a/.checkpackageignore +++ b/.checkpackageignore @@ -71,7 +71,6 @@ boot/syslinux/0014-Fix-build-with-binutils-note-gnu-property-section.patch lib_p boot/syslinux/0016-Workaround-multiple-definition-of-symbol-errors.patch lib_patch.Upstream boot/syslinux/0017-Replace-builtin-strlen-that-appears-to-get-optimized.patch lib_patch.Upstream configs/arcturus_ucls1012a_defconfig lib_defconfig.ForceCheckHash -configs/arcturus_ucp1020_defconfig lib_defconfig.ForceCheckHash configs/asus_tinker-s_rk3288_defconfig lib_defconfig.ForceCheckHash configs/atmel_sama5d27_som1_ek_mmc_dev_defconfig lib_defconfig.ForceCheckHash configs/atmel_sama5d2_xplained_mmc_defconfig lib_defconfig.ForceCheckHash diff --git a/board/arcturus/ppc-ucp1020/patches/linux-headers/linux-headers.hash b/board/arcturus/ppc-ucp1020/patches/linux-headers/linux-headers.hash new file mode 120000 index 0000000000..5808d92afe --- /dev/null +++ b/board/arcturus/ppc-ucp1020/patches/linux-headers/linux-headers.hash @@ -0,0 +1 @@ +../linux/linux.hash \ No newline at end of file diff --git a/board/arcturus/ppc-ucp1020/patches/linux/linux.hash b/board/arcturus/ppc-ucp1020/patches/linux/linux.hash new file mode 100644 index 0000000000..eafb86d8cb --- /dev/null +++ b/board/arcturus/ppc-ucp1020/patches/linux/linux.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 5ad0192e5cd10eca5f9fabb3234f2bfcbafba3382a9577139cc66be629e5bafa linux-v20190618.tar.gz diff --git a/board/arcturus/ppc-ucp1020/patches/uboot/uboot.hash b/board/arcturus/ppc-ucp1020/patches/uboot/uboot.hash new file mode 100644 index 0000000000..eb9744043c --- /dev/null +++ b/board/arcturus/ppc-ucp1020/patches/uboot/uboot.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 eba8aaf634affec7c27a55b899c404a85a0c219c3f814d576793e3c21b711b05 uboot-v20190618.tar.gz diff --git a/configs/arcturus_ucp1020_defconfig b/configs/arcturus_ucp1020_defconfig index 8e489f7f19..c0423032bc 100644 --- a/configs/arcturus_ucp1020_defconfig +++ b/configs/arcturus_ucp1020_defconfig @@ -1,6 +1,8 @@ BR2_powerpc=y BR2_powerpc_8548=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y +BR2_GLOBAL_PATCH_DIR="board/arcturus/ppc-ucp1020/patches" +BR2_DOWNLOAD_FORCE_CHECK_HASHES=y BR2_TARGET_GENERIC_HOSTNAME="UCP1020" BR2_TARGET_GENERIC_ISSUE="Welcome to Arcturus uCP1020 System on Module" BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" @@ -8,6 +10,7 @@ BR2_SYSTEM_DHCP="eth0" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,ArcturusNetworks,uCP1020-kernel,v20190618)/linux-v20190618.tar.gz" +BR2_LINUX_KERNEL_LICENSE_FILES="COPYING" BR2_LINUX_KERNEL_DEFCONFIG="ucp1020" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="ucp1020"