File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ function dependency_pkg_install() {
1717 echo " Checking for required packages on a Debian-based system..."
1818
1919
20- packages=(git make clang libbpf-dev llvm linux-tools-generic protobuf-compiler libprotobuf-dev libprotobuf-c-dev protobuf-c-compiler cmake pkg-config)
20+ packages=(git make clang libbpf-dev llvm linux-tools-generic protobuf-compiler libprotobuf-dev libprotobuf-c-dev protobuf-c-compiler cmake pkg-config gcc )
2121
2222
2323 update_needed=false
@@ -51,7 +51,7 @@ function dependency_pkg_install() {
5151 echo " Checking for required packages on a Red Hat-based system..."
5252
5353 # List of required packages
54- packages=(git make clang llvm libboundscheck protobuf protobuf-c protobuf-c-devel bpftool libbpf libbpf-devel cmake pkg-config)
54+ packages=(git make clang llvm libboundscheck protobuf protobuf-c protobuf-c-devel bpftool libbpf libbpf-devel cmake pkg-config gcc )
5555
5656 # Install each missing package
5757 for pkg in " ${packages[@]} " ; do
@@ -136,6 +136,7 @@ function set_enhanced_kernel_env() {
136136 # The 6.x Linux kernel already has complete support for kfunc capabilities,
137137 # allowing all features of kmesh to run directly.
138138 KERNEL_MAJOR=$( uname -r | awk -F ' .' ' {print $1}' )
139+ echo $KERNEL_MAJOR
139140 if grep -q " FN(parse_header_msg)" $KERNEL_HEADER_LINUX_BPF || [ $KERNEL_MAJOR -ge 6 ]; then
140141 export ENHANCED_KERNEL=" enhanced"
141142 else
Original file line number Diff line number Diff line change @@ -61,4 +61,7 @@ if [ "$VERSION" -ge 6 ]; then
6161 set_config KERNEL_KFUNC 1
6262else
6363 set_config KERNEL_KFUNC 0
64- fi
64+ fi
65+
66+ cat config/kmesh_marcos_def.h
67+ uname -a
You can’t perform that action at this time.
0 commit comments