[PATCH] Add USB mass storage only build set

Sebastian Huber sebastian.huber at embedded-brains.de
Fri May 10 12:20:05 UTC 2019


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

diff --git a/buildset/umass.ini b/buildset/umass.ini
new file mode 100644
index 00000000..6a43c58f
--- /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 2b7227bd..6453248c 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
 
-- 
2.16.4



More information about the devel mailing list