summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Marko2025-04-04 09:04:01 +0000
committerRobert Marko2025-10-22 16:19:28 +0000
commitbe73a7f033174eeba36b0a5c950aa0d58fbdee3c (patch)
tree80c3b73470b0df952f50cbe88b5c8216c93e5d18
parentd4eb33990b0064e27b8aa48c27cca82df0fe7450 (diff)
downloadopenwrt-be73a7f033174eeba36b0a5c950aa0d58fbdee3c.tar.gz
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)
-rw-r--r--target/linux/at91/Makefile2
-rw-r--r--target/linux/at91/sam9x/target.mk2
-rw-r--r--target/linux/at91/sama5/target.mk2
3 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/at91/Makefile b/target/linux/at91/Makefile
index 8fd4a01834..752ac4c398 100644
--- a/target/linux/at91/Makefile
+++ b/target/linux/at91/Makefile
@@ -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))
diff --git a/target/linux/at91/sam9x/target.mk b/target/linux/at91/sam9x/target.mk
index f6da7c003c..70f4a2e7e3 100644
--- a/target/linux/at91/sam9x/target.mk
+++ b/target/linux/at91/sam9x/target.mk
@@ -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.
diff --git a/target/linux/at91/sama5/target.mk b/target/linux/at91/sama5/target.mk
index 35df05b70d..c2c3464e49 100644
--- a/target/linux/at91/sama5/target.mk
+++ b/target/linux/at91/sama5/target.mk
@@ -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,