[v2,2/2] examples: move vendor specific apps to drivers sub directory
Checks
Commit Message
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%)
@@ -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
-----------------------
@@ -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',
new file mode 100644
@@ -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)
similarity index 100%
rename from examples/ntb/Makefile
rename to examples/rawdev/ntb/Makefile
similarity index 100%
rename from examples/ntb/meson.build
rename to examples/rawdev/ntb/meson.build
similarity index 100%
rename from examples/ntb/ntb_fwd.c
rename to examples/rawdev/ntb/ntb_fwd.c