buildtools/cmdline: fix use in Meson subprojectFix the following error when using dpdk as a subproject: subprojects/dpdk/buildtools/subproject/meson.build:28:56: ERROR: Unknown function "file".
buildtools/cmdline: fix use in Meson subprojectFix the following error when using dpdk as a subproject: subprojects/dpdk/buildtools/subproject/meson.build:28:56: ERROR: Unknown function "file".This was obviously never tested in its submitted form.Fixes: 7d8c608faa7f ("buildtools/cmdline: allow using script in subproject")Cc: stable@dpdk.orgSigned-off-by: Robin Jarry <rjarry@redhat.com>Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
buildtools/cmdline: allow using script in subprojectWhen DPDK is used as a subproject, allow declaring wrap files thatprovide dpdk-cmdline-gen.py.This way, find_program('dpdk-cmdline-gen.py') wi
buildtools/cmdline: allow using script in subprojectWhen DPDK is used as a subproject, allow declaring wrap files thatprovide dpdk-cmdline-gen.py.This way, find_program('dpdk-cmdline-gen.py') will return the path tothe script in the DPDK subproject source tree.Link: https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-sectionLink: https://mesonbuild.com/Reference-manual_builtin_meson.html#mesonoverride_find_programSigned-off-by: Robin Jarry <rjarry@redhat.com>Acked-by: Bruce Richardson <bruce.richardson@intel.com>
build: pass cflags in subprojectWhen DPDK is used as a subproject, include the required compilearguments so that the parent project is also built with the appropriatecflags (most importantly -mar
build: pass cflags in subprojectWhen DPDK is used as a subproject, include the required compilearguments so that the parent project is also built with the appropriatecflags (most importantly -march). Use the same cflags as pkg-config.Fixes: f93a605f2d6e ("build: add definitions for use as Meson subproject")Cc: stable@dpdk.orgSigned-off-by: Robin Jarry <rjarry@redhat.com>Reviewed-by: David Marchand <david.marchand@redhat.com>
build: link static libs with whole-archive in subprojectWhen DPDK is used as a subproject, declare static libs to be linked with-Wl,--whole-archive along with the drivers. This is already done thi
build: link static libs with whole-archive in subprojectWhen DPDK is used as a subproject, declare static libs to be linked with-Wl,--whole-archive along with the drivers. This is already done thisway in pkg-config.Fixes: f93a605f2d6e ("build: add definitions for use as Meson subproject")Cc: stable@dpdk.orgSigned-off-by: Robin Jarry <rjarry@redhat.com>Tested-by: David Marchand <david.marchand@redhat.com>Acked-by: Bruce Richardson <bruce.richardson@intel.com>
build: add definitions for use as Meson subprojectTo allow other projects to easily use DPDK as a subproject, add in thenecessary dependency definitions. Slightly different definitions arenecessa
build: add definitions for use as Meson subprojectTo allow other projects to easily use DPDK as a subproject, add in thenecessary dependency definitions. Slightly different definitions arenecessary for static and shared builds, since for shared builds thedrivers should not be linked in, and the internal meson dependencyobjects are more complete.To use DPDK as a subproject fallback i.e. use installed DPDK if present,otherwise the shipped one, the following meson statement can be used:libdpdk = dependency('libdpdk', fallback: ['dpdk', 'dpdk_dep'])Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>Reviewed-by: Ben Magistro <koncept1@gmail.com>Tested-by: Ben Magistro <koncept1@gmail.com>