56bb5841fd
As decided in the Technical Board in November 2019, the kernel module igb_uio is moved to the dpdk-kmods repository in the /linux/igb_uio/ directory. Minutes of Technical Board meeting: https://mails.dpdk.org/archives/dev/2019-November/151763.html Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Andrew Rybchenko <arybchenko@solarflare.com> Acked-by: Jerin Jacob <jerinj@marvell.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
29 lines
864 B
Meson
29 lines
864 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2018 Intel Corporation
|
|
|
|
subdirs = ['kni']
|
|
|
|
# if we are cross-compiling we need kernel_dir specified
|
|
if get_option('kernel_dir') == '' and meson.is_cross_build()
|
|
error('Need "kernel_dir" option for kmod compilation when cross-compiling')
|
|
endif
|
|
|
|
kernel_dir = get_option('kernel_dir')
|
|
if kernel_dir == ''
|
|
# use default path for native builds
|
|
kernel_version = run_command('uname', '-r').stdout().strip()
|
|
kernel_dir = '/lib/modules/' + kernel_version
|
|
endif
|
|
|
|
# test running make in kernel directory, using "make kernelversion"
|
|
make_returncode = run_command('make', '-sC', kernel_dir + '/build',
|
|
'kernelversion').returncode()
|
|
if make_returncode != 0
|
|
error('Cannot compile kernel modules as requested - are kernel headers installed?')
|
|
endif
|
|
|
|
# DO ACTUAL MODULE BUILDING
|
|
foreach d:subdirs
|
|
subdir(d)
|
|
endforeach
|