Commit 85bdd43b authored by Ben Walker's avatar Ben Walker Committed by Tomasz Zawadzki
Browse files

build: Example applications build to build/example



This mirrors build/bin and build/lib

Change-Id: Ide1d17dfc8b425adfbe67f381c93c236653bd301
Signed-off-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2380


Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
parent c3b5ae0c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@ clean: $(DIRS-y)
	$(Q)rm -f include/spdk/config.h
	$(Q)rm -rf build/bin
	$(Q)rm -rf build/fio
	$(Q)rm -rf build/examples

install: all
	$(Q)echo "Installed to $(DESTDIR)$(CONFIG_PREFIX)"
@@ -109,6 +110,7 @@ build_dir: mk/cc.mk
	$(Q)mkdir -p build/lib
	$(Q)mkdir -p build/bin
	$(Q)mkdir -p build/fio
	$(Q)mkdir -p build/examples

include/spdk/config.h: mk/config.mk scripts/genconfig.py
	$(Q)echo "#ifndef SPDK_CONFIG_H" > $@.tmp; \
+1 −1
Original line number Diff line number Diff line
@@ -218,7 +218,7 @@ if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then
		run_test "rocksdb" ./test/blobfs/rocksdb/rocksdb.sh
		run_test "blobstore" ./test/blobstore/blobstore.sh
		run_test "blobfs" ./test/blobfs/blobfs.sh
		run_test "hello_blob" ./examples/blob/hello_world/hello_blob \
		run_test "hello_blob" $SPDK_EXAMPLE_DIR/hello_blob \
			examples/blob/hello_world/hello_blob.conf
	fi

+1 −1
Original line number Diff line number Diff line
@@ -213,7 +213,7 @@ To verify that the drive is emulated correctly, one can check the output of the
device):

```
$ examples/nvme/identify/identify
$ build/examples/identify
=====================================================
NVMe Controller at 0000:00:0a.0 [1d1d:1f1f]
=====================================================
+1 −1
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ with no arguments to see the help output. If your system has its IOMMU
enabled you can run the examples as your regular user. If it doesn't, you'll
need to run as a privileged user (root).

A good example to start with is `examples/nvme/identify/identify`, which prints
A good example to start with is `build/examples/identify`, which prints
out information about all of the NVMe devices on your system.

Larger, more fully functional applications are available in the `app`
+2 −2
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ SPDK's identify example application displays whether a device has a controller
memory buffer and which operations it supports. Run it as follows:

~~~{.sh}
./examples/nvme/identify/identify -r traddr:<pci id of ssd>
./build/examples/identify -r traddr:<pci id of ssd>
~~~

# cmb_copy: An example P2P Application {#p2p_cmb_copy}
@@ -47,7 +47,7 @@ memory buffer and which operations it supports. Run it as follows:
Run the cmb_copy example application.

~~~{.sh}
./examples/nvme/cmb_copy/cmb_copy -r <pci id of write ssd>-1-0-1 -w <pci id of write ssd>-1-0-1 -c <pci id of the ssd with cmb>
./build/examples/cmb_copy -r <pci id of write ssd>-1-0-1 -w <pci id of write ssd>-1-0-1 -c <pci id of the ssd with cmb>
~~~
This should copy a single LBA (LBA 0) from namespace 1 on the read
NVMe SSD to LBA 0 on namespace 1 on the write SSD using the CMB as the
Loading