Skip to content

Commit 58026b2

Browse files
cosmo0920edsiper
authored andcommitted
in_ebpf: core: Prepare eBPF skeletons before starting to compile properly
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
1 parent e7fc139 commit 58026b2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

plugins/in_ebpf/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ foreach(TRACE_C_FILE ${TRACE_C_FILES})
112112
endforeach()
113113

114114
# Create a custom target specifically for generating eBPF skeletons
115-
add_custom_target(generate_skeletons DEPENDS ${TRACE_SKEL_HEADERS})
115+
add_custom_target(flb-ebpf-generate_skeletons DEPENDS ${TRACE_SKEL_HEADERS})
116116

117117
# Create a custom target to compile all eBPF programs (all trace bpf.c files)
118118
add_custom_target(compile_ebpf ALL DEPENDS ${TRACE_OBJ_FILES} ${TRACE_SKEL_HEADERS})

src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,11 @@ if(FLB_BINARY)
509509
add_dependencies(fluent-bit-bin flb-static-conf)
510510
endif()
511511

512+
# in_ebpf
513+
if(FLB_IN_EBPF)
514+
add_dependencies(fluent-bit-bin flb-ebpf-generate_skeletons)
515+
endif()
516+
512517
if(FLB_REGEX)
513518
target_link_libraries(fluent-bit-bin onigmo-static)
514519
endif()

0 commit comments

Comments
 (0)