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>
Fri, 4 Apr 2025 09:37:12 +0000 (11:37 +0200)
commit02d3aa72bb72af1a9405bc3fef977e48d20157a5
treea2753306bf1cdb1784479dc726e260514d9959a2
parent65b8a978deac05894d1fd20dfe63494f4b43848d
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>
target/linux/at91/Makefile
target/linux/at91/sam9x/target.mk
target/linux/at91/sama5/target.mk