3b4f41a10c
The KNI linux module is using a custom target for building, which doesn't take into account any cross compilation arguments. The arguments in question are ARCH, CROSS_COMPILE (for gcc, clang) and CC, LD (for clang). Get those from the cross file and pass them to the custom target. The user supplied path may not contain the 'build' directory, such as when using cross-compiled headers, so only append that in the default case (when no path is supplied in native builds) and use the unmodified path from the user otherwise. Also modify the install path accordingly. Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech> Reviewed-by: Bruce Richardson <bruce.richardson@intel.com>
37 lines
2.1 KiB
Meson
37 lines
2.1 KiB
Meson
# Please keep these options sorted alphabetically.
|
|
|
|
option('check_includes', type: 'boolean', value: false,
|
|
description: 'build "chkincs" to verify each header file can compile alone')
|
|
option('disable_drivers', type: 'string', value: '',
|
|
description: 'Comma-separated list of drivers to explicitly disable.')
|
|
option('drivers_install_subdir', type: 'string', value: 'dpdk/pmds-<VERSION>',
|
|
description: 'Subdirectory of libdir where to install PMDs. Defaults to using a versioned subdirectory.')
|
|
option('enable_docs', type: 'boolean', value: false,
|
|
description: 'build documentation')
|
|
option('enable_kmods', type: 'boolean', value: false,
|
|
description: 'build kernel modules')
|
|
option('examples', type: 'string', value: '',
|
|
description: 'Comma-separated list of examples to build by default')
|
|
option('flexran_sdk', type: 'string', value: '',
|
|
description: 'Path to FlexRAN SDK optional Libraries for BBDEV device')
|
|
option('ibverbs_link', type: 'combo', choices : ['static', 'shared', 'dlopen'], value: 'shared',
|
|
description: 'Linkage method (static/shared/dlopen) for Mellanox PMDs with ibverbs dependencies.')
|
|
option('include_subdir_arch', type: 'string', value: '',
|
|
description: 'subdirectory where to install arch-dependent headers')
|
|
option('kernel_dir', type: 'string', value: '',
|
|
description: 'Path to the kernel for building kernel modules. Headers must be in $kernel_dir or $kernel_dir/build. Modules will be installed in /lib/modules.')
|
|
option('machine', type: 'string', value: 'native',
|
|
description: 'set the target machine type')
|
|
option('max_ethports', type: 'integer', value: 32,
|
|
description: 'maximum number of Ethernet devices')
|
|
option('max_lcores', type: 'integer', value: 128,
|
|
description: 'maximum number of cores/threads supported by EAL')
|
|
option('max_numa_nodes', type: 'integer', value: 32,
|
|
description: 'maximum number of NUMA nodes supported by EAL')
|
|
option('enable_trace_fp', type: 'boolean', value: false,
|
|
description: 'enable fast path trace points.')
|
|
option('tests', type: 'boolean', value: true,
|
|
description: 'build unit tests')
|
|
option('use_hpet', type: 'boolean', value: false,
|
|
description: 'use HPET timer in EAL')
|