Skip to content

Commit

Permalink
Merge pull request #21 from Alan-Jowett/configuration
Browse files Browse the repository at this point in the history
Pass configuration option to Convert-BpfToNative.ps1 script
  • Loading branch information
Alan-Jowett authored Jan 3, 2024
2 parents 22a5bb4 + bcd50d9 commit 4892929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bpf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function(convert_to_native file_name out_name option)
# Run the powershell script to convert the .o file to a .sys file
add_custom_command(
OUTPUT ${bpf_sys_file_path} ${bpf_pdb_file_path}
COMMAND powershell -ExecutionPolicy Bypass -File ${EBPF_BIN_PATH}/Convert-BpfToNative.ps1 -FileName ${bpf_obj_file_name} -IncludeDir ${EBPF_INC_PATH} -OutDir ${CMAKE_CURRENT_BINARY_DIR} -BinDir ${EBPF_BIN_PATH}
COMMAND powershell -ExecutionPolicy Bypass -File ${EBPF_BIN_PATH}/Convert-BpfToNative.ps1 -FileName ${bpf_obj_file_name} -IncludeDir ${EBPF_INC_PATH} -OutDir ${CMAKE_CURRENT_BINARY_DIR} -BinDir ${EBPF_BIN_PATH} -Configuration $<$<CONFIG:Debug>:Debug>$<$<CONFIG:Release>:Release>
DEPENDS ${bpf_obj_file_path} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/export_program_info.log
COMMENT "Converting BPF object ${bpf_obj_file_path} to native"
POST_BUILD
Expand Down

0 comments on commit 4892929

Please sign in to comment.