forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
uname can not get version of kernel correctly while cross compile
 
Upstream-Status: Inappropriate [configuration]
 
Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/configure.ac b/configure.ac
index 523899b..4e6ae0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -924,7 +924,7 @@ AC_MSG_RESULT([$ARCH ($host_os)])
 if test "x$ARCH" = "xlinux"; then
     AC_MSG_CHECKING([for the linux kernel version])
 
-    kernel=`uname -r`
+    kernel="${KERNEL_VERSION}"
 
     case "${kernel}" in
         2.6.*)
-- 
1.8.3.1