From 9a7928511a3fe1981c6e8dac46f727d5cc5df625 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Thu, 8 Apr 2021 04:06:12 +0300 Subject: [PATCH] image: get kernel version from the fs for building rtl8812au --- builder/image-network.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/image-network.sh b/builder/image-network.sh index 64bc7491..903d3321 100755 --- a/builder/image-network.sh +++ b/builder/image-network.sh @@ -73,9 +73,9 @@ sed -i 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/g' Makefile apt-cache policy raspberrypi-kernel-headers apt-get install -y raspberrypi-kernel-headers dkms ls /lib/modules -KERNEL_VERSION=5.10.17-v7l+ # TODO: get kernel version from the fs +KERNEL_VERSION=$(cd /lib/modules && echo *-v7l+) # can't use `uname` as it gives incorrect value in emulated environment echo make -make KERNEL_VER=$KERNEL_VERSION KVER=$KERNEL_VERSION # TODO: determine kernel version from fs +make KERNEL_VER=$KERNEL_VERSION KVER=$KERNEL_VERSION echo make install make install KERNEL_VER=$KERNEL_VERSION KVER=$KERNEL_VERSION