From 4dafa7abba77b2c1e9c83cd1c76a13a7c97cc571 Mon Sep 17 00:00:00 2001 From: Kevin Darbyshire-Bryant Date: Sat, 23 Dec 2017 09:45:37 +0000 Subject: [PATCH] update_kernel.sh: improve cross platform support Use staging_dir/host for sed. Improves compatibility with MacOS Signed-off-by: Kevin Darbyshire-Bryant --- update_kernel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_kernel.sh b/update_kernel.sh index 061e6e7..198ca6b 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 sed -i include/kernel-version.mk \ + $CMD ./staging_dir/host/bin/sed -i include/kernel-version.mk \ -e "s|LINUX_VERSION-${KERNEL} =.*|LINUX_VERSION-${KERNEL} = ${NEWVER}|" \ -e "s|LINUX_KERNEL_HASH-${KERNEL}.*|LINUX_KERNEL_HASH-${PATCHVER} = ${CHECKSUM}|" fi -- 2.30.2