This test helps ensure that nothing about the way we build our shared objects changes in a way that breaks external applications or bdev modules trying to link to SPDK. Change-Id: I45ac36a2afc873b04eb237f4e633a9d84066737c Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/435 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI
18 lines
902 B
Markdown
18 lines
902 B
Markdown
This directory is meant to demonstrate how to link an external application and bdev
|
|
module to the SPDK libraries. The makefiles contain six examples of linking against spdk
|
|
libraries. They cover linking an application both with and without a custom bdev. For each of
|
|
these categories, they also demonstrate linking against the spdk combined shared library,
|
|
individual shared libraries, and static libraries.
|
|
|
|
This directory also contains a convenient test script, test_make.sh, which automates making SPDK
|
|
and testing all six of these linker options. It takes a single argument, the path to an SPDK
|
|
repository and should be run as follows:
|
|
|
|
~~~
|
|
sudo ./test_make.sh /path/to/spdk
|
|
~~~
|
|
|
|
The application `hello_world` and bdev module `passthru_external` have been copied from their namesakes
|
|
in the top level [SPDK github repository](https://github.com/spdk/spdk) and don't have any special
|
|
functionality.
|