Skip to content

Commit ff2a3ff

Browse files
author
lec-bit
committed
test ci
Signed-off-by: lec-bit <[email protected]>
1 parent 9ef7d96 commit ff2a3ff

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

kmesh_compile_env_pre.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

kmesh_macros_env.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,7 @@ if [ "$VERSION" -ge 6 ]; then
6161
set_config KERNEL_KFUNC 1
6262
else
6363
set_config KERNEL_KFUNC 0
64-
fi
64+
fi
65+
66+
cat config/kmesh_marcos_def.h
67+
uname -a

0 commit comments

Comments
 (0)