[maintainer-tools] update_kernel.sh: update it to new kernel hash/version file way

LEDE Commits lede-commits at lists.infradead.org
Sun Jan 16 15:58:49 PST 2022


rsalvaterra pushed a commit to maintainer-tools.git, branch master:
https://git.openwrt.org/cbb9d087d6b13bd066a1d2e19ba25f87b06f5200

commit cbb9d087d6b13bd066a1d2e19ba25f87b06f5200
Author: Ansuel Smith <ansuelsmth at gmail.com>
AuthorDate: Sun Jan 16 21:35:32 2022 +0100

    update_kernel.sh: update it to new kernel hash/version file way
    
    OpenWrt changed how the hash/version of the various kernels are declared and
    saved.
    They are now placed in dedicated files. Fix the update_kernel.sh script to
    update the kernel version/hash in the correct file.
    
    Signed-off-by: Ansuel Smith <ansuelsmth at gmail.com>
    [fix typos/wrapping]
    Signed-off-by: Rui Salvaterra <rsalvaterra at gmail.com>
---
 update_kernel.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/update_kernel.sh b/update_kernel.sh
index 0cbdb1d..2c4bb09 100755
--- a/update_kernel.sh
+++ b/update_kernel.sh
@@ -155,7 +155,7 @@ if [ "$UPDATE" -eq 1 ]; then
 		CHECKSUM=$(./staging_dir/host/bin/mkhash sha256 dl/linux-$PATCHVER.tar.xz)
 	fi
 
-	$CMD ./staging_dir/host/bin/sed -i include/kernel-version.mk \
+	$CMD ./staging_dir/host/bin/sed -i include/kernel-${KERNEL} \
 		-e "s|LINUX_VERSION-${KERNEL} =.*|LINUX_VERSION-${KERNEL} = ${NEWVER}|" \
 		-e "s|LINUX_KERNEL_HASH-${KERNEL}.*|LINUX_KERNEL_HASH-${PATCHVER} = ${CHECKSUM}|"
 fi



More information about the lede-commits mailing list