update_kernel.sh: improve cross platform support
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Sat, 23 Dec 2017 09:45:37 +0000 (09:45 +0000)
committerJonas Gorski <jonas.gorski@gmail.com>
Sat, 23 Dec 2017 11:13:53 +0000 (12:13 +0100)
Use staging_dir/host for sed.  Improves compatibility with MacOS

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
update_kernel.sh

index 061e6e7fb75bbf7461ef0eb80b988fac33d43c08..198ca6b9b8813bd2685da34b82f7ad94d4e8647e 100755 (executable)
@@ -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