samples: subsys: mgmt: smp_svr: add serial transport overlay
This can be more convenient than Bluetooth or UDP.
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
diff --git a/samples/subsys/mgmt/mcumgr/smp_svr/README.rst b/samples/subsys/mgmt/mcumgr/smp_svr/README.rst
index fa65337..49f785c 100644
--- a/samples/subsys/mgmt/mcumgr/smp_svr/README.rst
+++ b/samples/subsys/mgmt/mcumgr/smp_svr/README.rst
@@ -107,6 +107,18 @@
-- \
-DOVERLAY_CONFIG=overlay-bt-tiny.conf
+ .. group-tab:: Serial
+
+ To build the serial sample:
+
+ .. code-block:: console
+
+ west build \
+ -b frdm_k64f \
+ samples/subsys/mgmt/mcumgr/smp_svr \
+ -- \
+ -DOVERLAY_CONFIG=overlay-serial.conf
+
.. group-tab:: UDP
The UDP transport for SMP supports both IPv4 and IPv6.
diff --git a/samples/subsys/mgmt/mcumgr/smp_svr/overlay-serial.conf b/samples/subsys/mgmt/mcumgr/smp_svr/overlay-serial.conf
new file mode 100644
index 0000000..affecbb
--- /dev/null
+++ b/samples/subsys/mgmt/mcumgr/smp_svr/overlay-serial.conf
@@ -0,0 +1,2 @@
+# Enable the serial mcumgr transport.
+CONFIG_MCUMGR_SMP_UART=y