[rtems-libbsd commit] Add USB mass storage only build set

Sebastian Huber sebh at rtems.org
Mon May 13 08:14:54 UTC 2019


Module:    rtems-libbsd
Branch:    master
Commit:    7801010b68b8bffdd31e8ed03d7ddbf94217becb
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=7801010b68b8bffdd31e8ed03d7ddbf94217becb

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri May 10 14:14:57 2019 +0200

Add USB mass storage only build set

---

 buildset/umass.ini                         | 18 ++++++++++++++++++
 rtemsbsd/include/rtems/bsd/local/opt_usb.h |  4 ++++
 2 files changed, 22 insertions(+)

diff --git a/buildset/umass.ini b/buildset/umass.ini
new file mode 100644
index 0000000..6a43c58
--- /dev/null
+++ b/buildset/umass.ini
@@ -0,0 +1,18 @@
+#
+# USB mass storage only.
+#
+
+[general]
+name = umass
+
+[modules]
+base = on
+cam = on
+dev_usb = on
+dev_usb_controller = on
+dev_usb_controller_bbb = on
+dev_usb_quirk = on
+dev_usb_storage = on
+fdt = on
+rtems = on
+user_space = on
diff --git a/rtemsbsd/include/rtems/bsd/local/opt_usb.h b/rtemsbsd/include/rtems/bsd/local/opt_usb.h
index 2b7227b..6453248 100644
--- a/rtemsbsd/include/rtems/bsd/local/opt_usb.h
+++ b/rtemsbsd/include/rtems/bsd/local/opt_usb.h
@@ -1,3 +1,5 @@
+#include <rtems/bsd/modules.h>
+
 #define USB_HAVE_CONDVAR 1
 
 #define USB_HAVE_UGEN 1
@@ -8,7 +10,9 @@
 
 #define USB_HAVE_USER_IO 0
 
+#if defined(RTEMS_BSD_MODULE_NETINET) || defined(RTEMS_BSD_MODULE_NETINET6)
 #define USB_HAVE_MBUF 1
+#endif
 
 #undef USB_VERBOSE
 




More information about the vc mailing list