summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Opaniuk <igor.opaniuk@toradex.com>2020-11-30 15:51:41 +0200
committerIgor Opaniuk <igor.opanyuk@toradex.com>2020-11-30 14:18:21 +0000
commit9893d9662d5c9f883eaca89227945c13894463c0 (patch)
tree14c3437d2bc68d5f8f6f78a6c854dafd9cd4b31c
parent2554f4eec62d2cd68dec3d043654874f3b221e63 (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>
-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"