Skip to content

Commit b656f3e

Browse files
author
lec-bit
committed
tmp
1 parent cc1af1d commit b656f3e

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ if [ "$1" == "-h" -o "$1" == "--help" ]; then
4343
fi
4444

4545
if [ -z "$1" -o "$1" == "-b" -o "$1" == "--build" ]; then
46+
bash kmesh_macros_env_kernel.sh
4647
prepare
4748
make
4849
exit

kmesh_compile_env_pre.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ function set_enhanced_kernel_env() {
146146

147147
KERNEL_MAJOR=$(uname -r | awk -F '.' '{print $1}')
148148

149+
zcat /proc/config.gz | grep BTF
150+
cat "/boot/config-$(uname -r)" | grep BTF
151+
check_config "CONFIG_DEBUG_INFO_BTF_MODULES"
152+
check_config "CONFIG_DEBUG_INFO_BTF"
149153
if grep -q "FN(parse_header_msg)" $KERNEL_HEADER_LINUX_BPF ||
150154
[ "$(check_config "CONFIG_DEBUG_INFO_BTF_MODULES")" == "y" ] &&
151155
[ "$(check_config "CONFIG_DEBUG_INFO_BTF")" == "y" ] &&

kmesh_macros_env_kernel.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ else
3939
set_config ENHANCED_KERNEL 0
4040
fi
4141

42+
zcat /proc/config.gz | grep BTF
43+
cat "/boot/config-$(uname -r)" | grep BTF
4244
# KERNEL_KFUNC
4345
if [ "$(check_config "CONFIG_DEBUG_INFO_BTF_MODULES")" == "y" ] &&
4446
[ "$(check_config "CONFIG_DEBUG_INFO_BTF")" == "y" ] &&
@@ -48,3 +50,5 @@ if [ "$(check_config "CONFIG_DEBUG_INFO_BTF_MODULES")" == "y" ] &&
4850
else
4951
set_config KERNEL_KFUNC 0
5052
fi
53+
54+
cat config/kmesh_marcos_def.h

0 commit comments

Comments
 (0)