summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2016-03-31 13:52:35 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2016-03-31 17:47:06 +0200
commitc9d38a1f9441ebfa8de096beb8aa8c77bba64153 (patch)
treef534b5df07732861af1038eddb52ef44de0949ab
parent0764218675c606b5db1013a890f8b4c925861340 (diff)
Use KERNEL_MODULE_AUTOLOAD to load USB gadget support. This is required for libusbg (gadget-import) to work. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r--recipes-kernel/linux/linux-toradex_3.14.52.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-toradex_3.14.52.bb b/recipes-kernel/linux/linux-toradex_3.14.52.bb
index 4781707..2d23681 100644
--- a/recipes-kernel/linux/linux-toradex_3.14.52.bb
+++ b/recipes-kernel/linux/linux-toradex_3.14.52.bb
@@ -6,6 +6,9 @@ SUMMARY = "Linux kernel for Toradex Freescale i.MX based modules"
SRC_URI = "git://git.toradex.com/linux-toradex.git;protocol=git;branch=${SRCBRANCH} \
file://defconfig"
+# Load USB functions configurable through configfs (CONFIG_USB_CONFIGFS)
+KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains('COMBINED_FEATURES', 'usbgadget', ' libcomposite', '',d)}"
+
LOCALVERSION = "-v2.6b2"
SRCBRANCH = "toradex_imx_3.14.52_1.1.0_ga-next"
SRCREV = "9ace52b11aca9bbb657a35612c72c83c85b7e92c"