[v2,2/2] examples: move vendor specific apps to drivers sub directory

Message ID 20230705095626.31177-2-hemant.agrawal@nxp.com (mailing list archive)
State New
Delegated to: Thomas Monjalon
Headers
Series [v2,1/2] doc: add policy for adding vendor PMD specific examples |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/github-robot: build success github build: passed
ci/intel-Functional success Functional PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-aarch-unit-testing success Testing PASS
ci/iol-unit-testing success Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS

Commit Message

Hemant Agrawal July 5, 2023, 9:56 a.m. UTC
  As approved by DPDK technical board on 2021-03-24 NTB
raw driver example application will be moved to
example/rawdev/ to avoid PMD specific example application
to show up in examples directory.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
 doc/guides/sample_app_ug/ntb.rst      |  2 +-
 examples/meson.build                  |  2 +-
 examples/rawdev/Makefile              | 10 ++++++++++
 examples/{ => rawdev}/ntb/Makefile    |  0
 examples/{ => rawdev}/ntb/meson.build |  0
 examples/{ => rawdev}/ntb/ntb_fwd.c   |  0
 6 files changed, 12 insertions(+), 2 deletions(-)
 create mode 100644 examples/rawdev/Makefile
 rename examples/{ => rawdev}/ntb/Makefile (100%)
 rename examples/{ => rawdev}/ntb/meson.build (100%)
 rename examples/{ => rawdev}/ntb/ntb_fwd.c (100%)
  

Patch

diff --git a/doc/guides/sample_app_ug/ntb.rst b/doc/guides/sample_app_ug/ntb.rst
index f80b221db7..10f7395aff 100644
--- a/doc/guides/sample_app_ug/ntb.rst
+++ b/doc/guides/sample_app_ug/ntb.rst
@@ -22,7 +22,7 @@  Compiling the Application
 
 To compile the sample application see :doc:`compiling`.
 
-The application is located in the ``ntb`` sub-directory.
+The ``ntb`` application code is located in the ``rawdev/ntb`` sub-directory.
 
 Running the Application
 -----------------------
diff --git a/examples/meson.build b/examples/meson.build
index 55ba8847a0..f4a1ea3f70 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -39,12 +39,12 @@  all_examples = [
         'multi_process/hotplug_mp',
         'multi_process/simple_mp',
         'multi_process/symmetric_mp',
-        'ntb',
         'packet_ordering',
         'pipeline',
         'ptpclient',
         'qos_meter',
         'qos_sched',
+        'rawdev/ntb',
         'rxtx_callbacks',
         'server_node_efd/efd_node',
         'server_node_efd/efd_server',
diff --git a/examples/rawdev/Makefile b/examples/rawdev/Makefile
new file mode 100644
index 0000000000..0c26937a13
--- /dev/null
+++ b/examples/rawdev/Makefile
@@ -0,0 +1,10 @@ 
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2023 NXP
+
+subdirs := ntb
+
+.PHONY: all static shared clean $(subdirs)
+all static shared clean: $(subdirs)
+
+$(subdirs):
+	$(MAKE) -C $@ $(MAKECMDGOALS)
diff --git a/examples/ntb/Makefile b/examples/rawdev/ntb/Makefile
similarity index 100%
rename from examples/ntb/Makefile
rename to examples/rawdev/ntb/Makefile
diff --git a/examples/ntb/meson.build b/examples/rawdev/ntb/meson.build
similarity index 100%
rename from examples/ntb/meson.build
rename to examples/rawdev/ntb/meson.build
diff --git a/examples/ntb/ntb_fwd.c b/examples/rawdev/ntb/ntb_fwd.c
similarity index 100%
rename from examples/ntb/ntb_fwd.c
rename to examples/rawdev/ntb/ntb_fwd.c