From 26e59355a4438628ec95526f4a83c231cf9c5510 Mon Sep 17 00:00:00 2001 From: kulukami Date: Wed, 27 Dec 2023 10:39:20 +0800 Subject: [PATCH] fix: driver build script module name format --- driver/build_script/aarch64/batch_compile.sh | 2 +- driver/build_script/aarch64/batch_compile_el7.sh | 2 +- driver/build_script/aarch64/batch_compile_el8.sh | 2 +- driver/build_script/aarch64/batch_compile_ol8_uek.sh | 2 +- driver/build_script/x86_64/batch_compile.sh | 2 +- driver/build_script/x86_64/batch_compile_el7.sh | 2 +- driver/build_script/x86_64/batch_compile_el7_centosplus.sh | 2 +- driver/build_script/x86_64/batch_compile_el8_plus.sh | 2 +- driver/build_script/x86_64/batch_compile_elrepo6.sh | 2 +- driver/build_script/x86_64/batch_compile_elrepo7_lt.sh | 2 +- driver/build_script/x86_64/batch_compile_elrepo7_lt_archive.sh | 2 +- driver/build_script/x86_64/batch_compile_elrepo7_ml.sh | 2 +- driver/build_script/x86_64/batch_compile_elrepo7_ml_archive.sh | 2 +- driver/build_script/x86_64/batch_compile_elrepo8_lt.sh | 2 +- driver/build_script/x86_64/batch_compile_elrepo8_ml.sh | 2 +- driver/build_script/x86_64/batch_compile_ol8_uek.sh | 2 +- driver/build_script/x86_64/batch_compile_tencentos.sh | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/driver/build_script/aarch64/batch_compile.sh b/driver/build_script/aarch64/batch_compile.sh index 199310206..15556d62a 100644 --- a/driver/build_script/aarch64/batch_compile.sh +++ b/driver/build_script/aarch64/batch_compile.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') UBUNTU_OR_DEBIAN_FLAG=$(cat /etc/*release | grep -iE "ubuntu|debian") FLAG_SIZE=${#UBUNTU_OR_DEBIAN_FLAG} diff --git a/driver/build_script/aarch64/batch_compile_el7.sh b/driver/build_script/aarch64/batch_compile_el7.sh index 6520c8feb..b6d30f6a2 100644 --- a/driver/build_script/aarch64/batch_compile_el7.sh +++ b/driver/build_script/aarch64/batch_compile_el7.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') enableGcc8(){ diff --git a/driver/build_script/aarch64/batch_compile_el8.sh b/driver/build_script/aarch64/batch_compile_el8.sh index 0c546b2f5..71ec57dba 100644 --- a/driver/build_script/aarch64/batch_compile_el8.sh +++ b/driver/build_script/aarch64/batch_compile_el8.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') echo "BUILD_VERSION=" $BUILD_VERSION diff --git a/driver/build_script/aarch64/batch_compile_ol8_uek.sh b/driver/build_script/aarch64/batch_compile_ol8_uek.sh index 305298866..1cdd76c3f 100644 --- a/driver/build_script/aarch64/batch_compile_ol8_uek.sh +++ b/driver/build_script/aarch64/batch_compile_ol8_uek.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') diff --git a/driver/build_script/x86_64/batch_compile.sh b/driver/build_script/x86_64/batch_compile.sh index b84417c07..e2a2de37a 100644 --- a/driver/build_script/x86_64/batch_compile.sh +++ b/driver/build_script/x86_64/batch_compile.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') UBUNTU_OR_DEBIAN_FLAG=$(cat /etc/*release | grep -iE "ubuntu|debian") FLAG_SIZE=${#UBUNTU_OR_DEBIAN_FLAG} diff --git a/driver/build_script/x86_64/batch_compile_el7.sh b/driver/build_script/x86_64/batch_compile_el7.sh index f8bba139a..79607fcaa 100644 --- a/driver/build_script/x86_64/batch_compile_el7.sh +++ b/driver/build_script/x86_64/batch_compile_el7.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') enableGcc8(){ diff --git a/driver/build_script/x86_64/batch_compile_el7_centosplus.sh b/driver/build_script/x86_64/batch_compile_el7_centosplus.sh index 6245c0020..b41625fab 100644 --- a/driver/build_script/x86_64/batch_compile_el7_centosplus.sh +++ b/driver/build_script/x86_64/batch_compile_el7_centosplus.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') enableGcc8(){ diff --git a/driver/build_script/x86_64/batch_compile_el8_plus.sh b/driver/build_script/x86_64/batch_compile_el8_plus.sh index 2fa0bf618..f8ba994a4 100644 --- a/driver/build_script/x86_64/batch_compile_el8_plus.sh +++ b/driver/build_script/x86_64/batch_compile_el8_plus.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') enableGcc8(){ diff --git a/driver/build_script/x86_64/batch_compile_elrepo6.sh b/driver/build_script/x86_64/batch_compile_elrepo6.sh index c5a7355d3..199871c4c 100644 --- a/driver/build_script/x86_64/batch_compile_elrepo6.sh +++ b/driver/build_script/x86_64/batch_compile_elrepo6.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') cd /root diff --git a/driver/build_script/x86_64/batch_compile_elrepo7_lt.sh b/driver/build_script/x86_64/batch_compile_elrepo7_lt.sh index 233b4b507..2a27eff92 100644 --- a/driver/build_script/x86_64/batch_compile_elrepo7_lt.sh +++ b/driver/build_script/x86_64/batch_compile_elrepo7_lt.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') enableGcc8(){ diff --git a/driver/build_script/x86_64/batch_compile_elrepo7_lt_archive.sh b/driver/build_script/x86_64/batch_compile_elrepo7_lt_archive.sh index b511203cb..77800a9c6 100644 --- a/driver/build_script/x86_64/batch_compile_elrepo7_lt_archive.sh +++ b/driver/build_script/x86_64/batch_compile_elrepo7_lt_archive.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') enableGcc8(){ diff --git a/driver/build_script/x86_64/batch_compile_elrepo7_ml.sh b/driver/build_script/x86_64/batch_compile_elrepo7_ml.sh index d75036e27..2af7029b2 100644 --- a/driver/build_script/x86_64/batch_compile_elrepo7_ml.sh +++ b/driver/build_script/x86_64/batch_compile_elrepo7_ml.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') enableGcc8(){ diff --git a/driver/build_script/x86_64/batch_compile_elrepo7_ml_archive.sh b/driver/build_script/x86_64/batch_compile_elrepo7_ml_archive.sh index 51866fb98..ad9a12792 100644 --- a/driver/build_script/x86_64/batch_compile_elrepo7_ml_archive.sh +++ b/driver/build_script/x86_64/batch_compile_elrepo7_ml_archive.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') enableGcc8(){ diff --git a/driver/build_script/x86_64/batch_compile_elrepo8_lt.sh b/driver/build_script/x86_64/batch_compile_elrepo8_lt.sh index c5c5a9cc0..b2d2adbbb 100644 --- a/driver/build_script/x86_64/batch_compile_elrepo8_lt.sh +++ b/driver/build_script/x86_64/batch_compile_elrepo8_lt.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') diff --git a/driver/build_script/x86_64/batch_compile_elrepo8_ml.sh b/driver/build_script/x86_64/batch_compile_elrepo8_ml.sh index 5c499902e..2b63fa548 100644 --- a/driver/build_script/x86_64/batch_compile_elrepo8_ml.sh +++ b/driver/build_script/x86_64/batch_compile_elrepo8_ml.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') enableGcc9(){ diff --git a/driver/build_script/x86_64/batch_compile_ol8_uek.sh b/driver/build_script/x86_64/batch_compile_ol8_uek.sh index 241efa436..1dd0b5cb7 100644 --- a/driver/build_script/x86_64/batch_compile_ol8_uek.sh +++ b/driver/build_script/x86_64/batch_compile_ol8_uek.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') diff --git a/driver/build_script/x86_64/batch_compile_tencentos.sh b/driver/build_script/x86_64/batch_compile_tencentos.sh index 5bc40341c..297238adb 100644 --- a/driver/build_script/x86_64/batch_compile_tencentos.sh +++ b/driver/build_script/x86_64/batch_compile_tencentos.sh @@ -1,6 +1,6 @@ #!/bin/bash mkdir -p /ko_output -BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}') +BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}') KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}') UBUNTU_OR_DEBIAN_FLAG=$(cat /etc/*release | grep -iE "ubuntu|debian")