numam-spdk/lib/env_dpdk
Jim Harris 79f9a7f572 build: generate pkg-config files for SPDK
Users can now generate the necessary linker args for their
own applications using something like:

PKG_CONFIG_PATH=build/lib/pkgconfig pkg-config --libs spdk_nvme

Dependencies between libraries are included in the generated
.pc files, so the user only needs to pass the top-level subsystems
or individual SPDK libraries they are using in their application.

Modules will automatically be added to the output if the associated
library is specified.  For example, specifying "spdk_bdev" will include
the libraries not only for spdk_bdev, but also all of the bdev modules.

Users still need to supply the -Wl,--no-as-needed or -Wl,--whole-archive
flags. They cannot be added to the .pc files without increasing the length
of the argument string by a factor of 15x to 20x.

Modify the test/external_code/hello_world Makefile to use pkg-config to
ensure this gets tested at some level in our autotest environment.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ie48a75f11969d5d775d514cf10bcb82d197eabfd
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4371
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2021-01-21 09:46:32 +00:00
..
env_internal.h lib/env: move minimum DPDK version to DPDK 19.11 2020-12-04 09:51:00 +00:00
env.c lib: Use PRId64 for portability 2020-11-20 11:01:37 +00:00
env.mk lib/env_dpdk: warn about deprecated API 2020-12-03 09:41:44 +00:00
init.c lib/env: move minimum DPDK version to DPDK 19.11 2020-12-04 09:51:00 +00:00
Makefile build: generate pkg-config files for SPDK 2021-01-21 09:46:32 +00:00
memory.c lib/env: move minimum DPDK version to DPDK 19.11 2020-12-04 09:51:00 +00:00
pci_idxd.c env: fix pci driver registration 2020-08-27 08:36:43 +00:00
pci_ioat.c env: fix pci driver registration 2020-08-27 08:36:43 +00:00
pci_virtio.c env: fix pci driver registration 2020-08-27 08:36:43 +00:00
pci_vmd.c env: fix pci driver registration 2020-08-27 08:36:43 +00:00
pci.c env_dpdk/pci: fix check on 20.11 EAL API change 2020-11-19 14:24:04 +00:00
spdk_env_dpdk.map env/memory: return the memory virtual address's file descriptor and offset 2020-10-21 20:47:01 +00:00
threads.c Revert "thread: add spdk_env_get_primary_core" 2020-07-29 14:58:44 +00:00