File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ TMP_FILES := bpf/kmesh/bpf2go/bpf2go.go \
89
89
bpf/include/bpf_helper_defs_ext.h \
90
90
91
91
.PHONY : all kmesh-bpf kmesh-ko all-binary
92
- all : kmesh-bpf kmesh-ko all-binary
92
+ all : kmesh-bpf all-binary
93
93
94
94
kmesh-bpf :
95
95
$(QUIET ) find $(ROOT_DIR ) /mk -name " *.pc" | xargs sed -i " s#^prefix=.*#prefix=${ROOT_DIR} #g"
@@ -101,7 +101,7 @@ kmesh-bpf:
101
101
kmesh-ko :
102
102
$(QUIET ) find $(ROOT_DIR ) /mk -name " *.pc" | xargs sed -i " s#^prefix=.*#prefix=${ROOT_DIR} #g"
103
103
$(call printlog, BUILD, "kernel")
104
- $(QUIET ) make -C kernel/ko_src
104
+ $(QUIET ) make -C kernel/ko_src/kmesh
105
105
106
106
all-binary :
107
107
$(QUIET ) find $(ROOT_DIR ) /mk -name " *.pc" | xargs sed -i " s#^prefix=.*#prefix=${ROOT_DIR} #g"
Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ container_id=$(run_docker_container)
8
8
build_kmesh $container_id
9
9
clean_container $container_id
10
10
11
+ make kmesh-ko
11
12
sudo chmod -R a+r out/
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ function dependency_pkg_install() {
17
17
echo " Checking for required packages on a Debian-based system..."
18
18
19
19
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 gcc-11 )
21
21
22
22
23
23
update_needed=false
@@ -51,7 +51,7 @@ function dependency_pkg_install() {
51
51
echo " Checking for required packages on a Red Hat-based system..."
52
52
53
53
# 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 )
55
55
56
56
# Install each missing package
57
57
for pkg in " ${packages[@]} " ; do
@@ -136,6 +136,7 @@ function set_enhanced_kernel_env() {
136
136
# The 6.x Linux kernel already has complete support for kfunc capabilities,
137
137
# allowing all features of kmesh to run directly.
138
138
KERNEL_MAJOR=$( uname -r | awk -F ' .' ' {print $1}' )
139
+ echo $KERNEL_MAJOR
139
140
if grep -q " FN(parse_header_msg)" $KERNEL_HEADER_LINUX_BPF || [ $KERNEL_MAJOR -ge 6 ]; then
140
141
export ENHANCED_KERNEL=" enhanced"
141
142
else
Original file line number Diff line number Diff line change @@ -61,4 +61,7 @@ if [ "$VERSION" -ge 6 ]; then
61
61
set_config KERNEL_KFUNC 1
62
62
else
63
63
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