diff --git a/dpdk/kernel/linux/igb_uio/meson.build b/dpdk/kernel/linux/igb_uio/meson.build index f6e04d585..b52a5ae66 100644 --- a/dpdk/kernel/linux/igb_uio/meson.build +++ b/dpdk/kernel/linux/igb_uio/meson.build @@ -1,12 +1,22 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation +# Copy source files to build directory +src_files = ['igb_uio.c', 'Kbuild', 'compat.h'] +foreach src : src_files + configure_file( + input: src, + output: src, + copy: true, + ) +endforeach + mkfile = custom_target('igb_uio_makefile', output: 'Makefile', command: ['touch', '@OUTPUT@']) custom_target('igb_uio', - input: ['igb_uio.c', 'Kbuild'], + input: src_files, # Now using the copied files in build dir output: 'igb_uio.ko', command: ['make', '-C', kernel_build_dir, 'M=' + meson.current_build_dir(),