]> git.ipfire.org Git - thirdparty/openwrt.git/commit
at91: add USB kmods only for subtargets that support USB
authorRobert Marko <robimarko@gmail.com>
Fri, 4 Apr 2025 09:04:01 +0000 (11:04 +0200)
committerRobert Marko <robimarko@gmail.com>
Wed, 22 Oct 2025 16:19:28 +0000 (18:19 +0200)
commitbe73a7f033174eeba36b0a5c950aa0d58fbdee3c
tree80c3b73470b0df952f50cbe88b5c8216c93e5d18
parentd4eb33990b0064e27b8aa48c27cca82df0fe7450
at91: add USB kmods only for subtargets that support USB

Currently, kmod-usb-ohci,kmod-at91-udc and kmod-usb-gadget-eth are included
as the default packages for all at91 subtargets.

However, this is breaking image builder as kmod-at91-udc is not being built
on sama7 since it depends on USB_SUPPORT and sama7 does not have USB support
enabled in the kernel as its not supported upstream so its not even
selectable in the config.

So, move to include these as default packages only for sama5 and sama9x as
both of those have USB support enabled.

Fixes: #18407
Link: https://github.com/openwrt/openwrt/pull/18413
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 02d3aa72bb72af1a9405bc3fef977e48d20157a5)
target/linux/at91/Makefile
target/linux/at91/sam9x/target.mk
target/linux/at91/sama5/target.mk