From fd9dc10530ef04de58fd36947c03113345e9b949 Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Sun, 28 May 2023 21:22:52 +0200 Subject: apm821xx: make ata-dwc as a standalone module In order to cut down on the Netgear WNDR4700, the ata driver can be outsourced. This helps other apm821xx devices too to save up on kernel size (~200 kb). Signed-off-by: Christian Lamparter --- target/linux/apm821xx/modules.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 target/linux/apm821xx/modules.mk (limited to 'target/linux/apm821xx/modules.mk') diff --git a/target/linux/apm821xx/modules.mk b/target/linux/apm821xx/modules.mk new file mode 100644 index 0000000000..98610f9b2e --- /dev/null +++ b/target/linux/apm821xx/modules.mk @@ -0,0 +1,13 @@ +define KernelPackage/ata-dwc + TITLE:=DesignWare Cores SATA support + KCONFIG:=CONFIG_SATA_DWC + FILES:=$(LINUX_DIR)/drivers/ata/sata_dwc_460ex.ko + AUTOLOAD:=$(call AutoLoad,40,sata_dwc_460ex,1) + $(call AddDepends/ata) +endef + +define KernelPackage/ata-dwc/description + Platform support for the on-chip SATA controller. +endef + +$(eval $(call KernelPackage,ata-dwc)) -- cgit v1.2.3