summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Opaniuk <igor.opaniuk@toradex.com>2020-11-30 15:51:41 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2020-12-10 15:44:08 +0100
commit5d5329b56e937c5a86036d4b1f31d9c092844173 (patch)
tree2c0b90c7f4e6e3b591d32b4dc1ef120f015cf28b
parent582417167b86cccae4455ceb086ee56fae2aded6 (diff)
linux-toradex-mainline: add usbgadget/libcomposite as autoload mods
Add usbgadget and libcomposite as autoload modules. Related-to: ELB-3152 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> (cherry picked from commit 9893d9662d5c9f883eaca89227945c13894463c0)
-rw-r--r--recipes-kernel/linux/linux-toradex-mainline_5.4.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-toradex-mainline_5.4.bb b/recipes-kernel/linux/linux-toradex-mainline_5.4.bb
index 4f7a7d8..9565db1 100644
--- a/recipes-kernel/linux/linux-toradex-mainline_5.4.bb
+++ b/recipes-kernel/linux/linux-toradex-mainline_5.4.bb
@@ -20,5 +20,8 @@ SRC_URI_append_preempt-rt = " \
SRC_URI[rt-patch.md5sum] = "cf96e01e04ec8743e4b24caec76d2c2d"
SRC_URI[rt-patch.sha256sum] = "a0966fb60ce26f28e4dea5eb9db2e62974e1391470ea1bdb88e2d884a3280dc4"
+# Load USB functions configurable through configfs (CONFIG_USB_CONFIGFS)
+KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains('COMBINED_FEATURES', 'usbgadget', ' libcomposite', '',d)}"
+
KBUILD_DEFCONFIG ?= "toradex-imx_v6_v7_defconfig"
KBUILD_DEFCONFIG_apalis-tk1 ?= "tegra_defconfig"