Skip to content

Commit 890c8fa

Browse files
xzhangxaanakryiko
authored andcommitted
Build bootstrap only in CMake for bpftool
Follow the Makefile to build bootstrap only for bpftool. Signed-off-by: Xin Zhang <[email protected]>
1 parent 9a2e3a7 commit 890c8fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/c/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ExternalProject_Add(bpftool
2929
PREFIX bpftool
3030
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../bpftool/src
3131
CONFIGURE_COMMAND ""
32-
BUILD_COMMAND make
32+
BUILD_COMMAND make bootstrap
3333
OUTPUT=${CMAKE_CURRENT_BINARY_DIR}/bpftool/
3434
BUILD_IN_SOURCE TRUE
3535
INSTALL_COMMAND ""
@@ -51,7 +51,7 @@ endif()
5151

5252
# Set BpfObject input parameters -- note this is usually not necessary unless
5353
# you're in a highly vendored environment (like libbpf-bootstrap)
54-
set(BPFOBJECT_BPFTOOL_EXE ${CMAKE_CURRENT_BINARY_DIR}/bpftool/bpftool)
54+
set(BPFOBJECT_BPFTOOL_EXE ${CMAKE_CURRENT_BINARY_DIR}/bpftool/bootstrap/bpftool)
5555
set(BPFOBJECT_VMLINUX_H ${CMAKE_CURRENT_SOURCE_DIR}/../../vmlinux/vmlinux.h)
5656
set(LIBBPF_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR}/libbpf)
5757
set(LIBBPF_LIBRARIES ${CMAKE_CURRENT_BINARY_DIR}/libbpf/libbpf.a)

0 commit comments

Comments
 (0)