diff options
author | Yannick Gicquel <yannick.gicquel@iot.bzh> | 2016-09-29 15:35:29 +0200 |
---|---|---|
committer | Yannick Gicquel <yannick.gicquel@iot.bzh> | 2016-09-29 15:39:17 +0200 |
commit | 54468ca688041d27af11d9109aeacac83f74dbe2 (patch) | |
tree | db4a34860d5059b1780606ac0c1fe83315531703 | |
parent | cd6ada027733b45c78a8d4dd1575296e27e3ae56 (diff) |
kernel: add usbgadget support
This is conditioned by the presence of the usbgadget in DISTRO_FEATURE
variable.
Change-Id: Ia14deeab2431a68e6890885c1d0dd568e5713eaf
Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
-rw-r--r-- | meta-rcar-gen2/recipes-kernel/linux/linux.inc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-rcar-gen2/recipes-kernel/linux/linux.inc b/meta-rcar-gen2/recipes-kernel/linux/linux.inc index 806be22..75a7141 100644 --- a/meta-rcar-gen2/recipes-kernel/linux/linux.inc +++ b/meta-rcar-gen2/recipes-kernel/linux/linux.inc @@ -175,6 +175,28 @@ do_configure_prepend() { kernel_configure_variable BLK_DEV_LOOP y fi + if [ "x1" = "x${@base_contains("DISTRO_FEATURES", "usbgadget", "1", "",d)}" ]; then + # activate USB-OTG & Gadget + kernel_configure_variable USB_OTG y + kernel_configure_variable USB_RENESAS_USBHS_UDC y + kernel_configure_variable CONFIGFS_FS y + kernel_configure_variable USB_GADGET y + kernel_configure_variable USB_LIBCOMPOSITE y + kernel_configure_variable USB_F_ACM y + kernel_configure_variable USB_U_SERIAL y + kernel_configure_variable USB_ETH m + kernel_configure_variable USB_G_MULTI m + kernel_configure_variable USB_G_MULTI_RNDIS n + kernel_configure_variable USB_G_MULTI_CDC y + + # ethernet over usb tethering + kernel_configure_variable NETFILTER y + kernel_configure_variable NF_CONNTRACK_IPV4 y + kernel_configure_variable NF_NAT_IPV4 y + kernel_configure_variable BRIDGE y + kernel_configure_variable IP_NF_TARGET_MASQUERADE y + fi + # Keep this the last line # Remove all modified configs and add the rest to .config sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config' |