Skip to content

Commit

Permalink
Merge pull request #916 from hzxuzhonghu/headerfile-license
Browse files Browse the repository at this point in the history
rm depends/include/bpf_helper_defs_ext.h
  • Loading branch information
kmesh-bot authored Oct 12, 2024
2 parents a255c06 + 0a7735d commit b85ca41
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 24 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ TMP_FILES := bpf/kmesh/bpf2go/bpf2go.go \
mk/bpf.pc \
bpf/kmesh/ads/include/config.h \
bpf/include/bpf_helper_defs_ext.h \
depends/include/bpf_helper_defs_ext.h

.PHONY: all
all:
Expand Down
18 changes: 0 additions & 18 deletions depends/include/bpf_helper_defs_ext.h

This file was deleted.

2 changes: 1 addition & 1 deletion hack/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ function install_clang_format () {

install_clang_format

find ./ -path "./api/v2-c" -prune -o -name "*.[ch]" -exec clang-format -i {} \;
find ./ -name "*.[ch]" |grep -v pb-c |xargs clang-format -i
6 changes: 2 additions & 4 deletions kmesh_bpf_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ for name in ${helper_name[@]}; do
current_line=`grep -nr "FN($name)" $KERNEL_HEADER_LINUX_BPF | awk -F ":" {'print $1'}`
if [ -n "$current_line" ]; then
helper_id=`expr $current_line - $base_line`
sed -Ei "/$name/s/([0-9]+)[^0-9]*$/$helper_id;/" $ROOT_DIR/depends/include/bpf_helper_defs_ext.h
sed -Ei "/$name/s/([0-9]+)[^0-9]*$/$helper_id;/" $ROOT_DIR/bpf/include/bpf_helper_defs_ext.h
fi
done

cp $ROOT_DIR/depends/include/bpf_helper_defs_ext.h $ROOT_DIR/bpf/include/
done

0 comments on commit b85ca41

Please sign in to comment.