]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
at91: add USB kmods only for subtargets that support USB 18413/head
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)
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

index 8fd4a0183411def5bb49bee12edb7e2e66810d60..752ac4c3982b6fce2ab295c99cdd2287f09ef18d 100644 (file)
@@ -16,6 +16,4 @@ include $(INCLUDE_DIR)/target.mk
 
 KERNELNAME:=zImage dtbs
 
-DEFAULT_PACKAGES += kmod-usb-ohci kmod-at91-udc kmod-usb-gadget-eth
-
 $(eval $(call BuildTarget))
index f6da7c003cc438dfb374e82b8f139dd3d73f25bd..70f4a2e7e38226c1da865da962476b432770762a 100644 (file)
@@ -1,6 +1,8 @@
 BOARDNAME:= SAM9X Boards (ARMv5)
 CPU_TYPE:=arm926ej-s
 
+DEFAULT_PACKAGES += kmod-usb-ohci kmod-at91-udc kmod-usb-gadget-eth
+
 define Target/Description
        Build generic firmware for Microchip AT91 SAM9x platforms
        using the ARMv5 instruction set.
index 35df05b70d75c799510bce480c61856be4033cc6..c2c3464e4958b954c4263819d2fd5d8d5ad988d9 100644 (file)
@@ -2,7 +2,7 @@ BOARDNAME:=SAMA5 boards(Cortex-A5)
 CPU_TYPE:=cortex-a5
 CPU_SUBTYPE:=vfpv4
 FEATURES+=fpu
-DEFAULT_PACKAGES += kmod-usb2
+DEFAULT_PACKAGES += kmod-usb2 kmod-usb-ohci kmod-at91-udc kmod-usb-gadget-eth
 
 define Target/Description
        Build generic firmware for Microchip(Atmel AT91) SAMA5D2,