mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
40b02a2301
Now that the armvirt target supports real hardware, not just VMs, thanks to the addition of EFI, rename it to something more appropriate. 'armsr' (Arm SystemReady) was chosen after the name of the Arm standards program. The 32 and 64 bit targets have also been renamed armv7 and armv8 respectively, to allow future profiles where required (such as armv9). See https://developer.arm.com/documentation/102858/0100/Introduction for more information. Signed-off-by: Mathew McBride <matt@traverse.com.au>
293 lines
9.1 KiB
Makefile
293 lines
9.1 KiB
Makefile
define KernelPackage/acpi-mdio
|
|
SUBMENU:=$(NETWORK_DEVICES_MENU)
|
|
TITLE:=ACPI MDIO support
|
|
DEPENDS:=@(TARGET_armsr_armv8) +kmod-libphy +kmod-mdio-devres
|
|
KCONFIG:=CONFIG_ACPI_MDIO
|
|
FILES:=$(LINUX_DIR)/drivers/net/mdio/acpi_mdio.ko
|
|
AUTOLOAD:=$(call AutoLoad,11,acpi_mdio)
|
|
endef
|
|
|
|
define KernelPackage/acpi-mdio/description
|
|
Kernel driver for ACPI MDIO support
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,acpi-mdio))
|
|
|
|
define KernelPackage/fsl-pcs-lynx
|
|
SUBMENU=$(NETWORK_DEVICES_MENU)
|
|
DEPENDS:=@(TARGET_armsr_armv8) +kmod-libphy +kmod-of-mdio +kmod-phylink
|
|
TITLE:=NXP (Freescale) Lynx PCS
|
|
HIDDEN:=1
|
|
KCONFIG:=CONFIG_PCS_LYNX
|
|
FILES=$(LINUX_DIR)/drivers/net/pcs/pcs-lynx.ko
|
|
AUTOLOAD=$(call AutoLoad,30,pcs-lynx)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,fsl-pcs-lynx))
|
|
|
|
define KernelPackage/pcs-xpcs
|
|
SUBMENU:=$(NETWORK_DEVICES_MENU)
|
|
TITLE:=Synopsis DesignWare PCS driver
|
|
DEPENDS:=@(TARGET_armsr_armv8) +kmod-phylink
|
|
KCONFIG:=CONFIG_PCS_XPCS
|
|
FILES:=$(LINUX_DIR)/drivers/net/pcs/pcs_xpcs.ko
|
|
AUTOLOAD:=$(call AutoLoad,20,pcs_xpcs)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,pcs-xpcs))
|
|
|
|
define KernelPackage/fsl-fec
|
|
SUBMENU:=$(NETWORK_DEVICES_MENU)
|
|
DEPENDS:=@(TARGET_armsr_armv8) +kmod-libphy +kmod-of-mdio \
|
|
+kmod-ptp +kmod-net-selftests
|
|
TITLE:=NXP (Freescale) FEC Ethernet controller (i.MX)
|
|
KCONFIG:=CONFIG_FEC
|
|
FILES:=$(LINUX_DIR)/drivers/net/ethernet/freescale/fec.ko
|
|
AUTOLOAD:=$(call AutoLoad,35,fec)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,fsl-fec))
|
|
|
|
define KernelPackage/fsl-xgmac-mdio
|
|
SUBMENU=$(NETWORK_DEVICES_MENU)
|
|
DEPENDS:=@(TARGET_armsr_armv8) +kmod-libphy +kmod-of-mdio +kmod-acpi-mdio
|
|
TITLE:=NXP (Freescale) MDIO bus
|
|
KCONFIG:=CONFIG_FSL_XGMAC_MDIO
|
|
FILES=$(LINUX_DIR)/drivers/net/ethernet/freescale/xgmac_mdio.ko
|
|
AUTOLOAD=$(call AutoLoad,30,xgmac_mdio)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,fsl-xgmac-mdio))
|
|
|
|
define KernelPackage/fsl-mc-dpio
|
|
SUBMENU:=$(OTHER_MENU)
|
|
TITLE:=NXP DPAA2 DPIO (Data Path IO) driver
|
|
HIDDEN:=1
|
|
KCONFIG:=CONFIG_FSL_MC_BUS=y \
|
|
CONFIG_FSL_MC_DPIO
|
|
FILES:=$(LINUX_DIR)/drivers/soc/fsl/dpio/fsl-mc-dpio.ko
|
|
AUTOLOAD=$(call AutoLoad,30,fsl-mc-dpio)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,fsl-mc-dpio))
|
|
|
|
define KernelPackage/fsl-enetc-net
|
|
SUBMENU:=$(NETWORK_DEVICES_MENU)
|
|
TITLE:=:NXP ENETC (LS1028A) Ethernet
|
|
DEPENDS:=@(TARGET_armsr_armv8) +kmod-phylink +kmod-fsl-pcs-lynx
|
|
KCONFIG:= \
|
|
CONFIG_FSL_ENETC \
|
|
CONFIG_FSL_ENETC_VF \
|
|
CONFIG_FSL_ENETC_QOS
|
|
FILES:= \
|
|
$(LINUX_DIR)/drivers/net/ethernet/freescale/enetc/fsl-enetc.ko \
|
|
$(LINUX_DIR)/drivers/net/ethernet/freescale/enetc/fsl-enetc-vf.ko \
|
|
$(LINUX_DIR)/drivers/net/ethernet/freescale/enetc/fsl-enetc-mdio.ko \
|
|
$(LINUX_DIR)/drivers/net/ethernet/freescale/enetc/fsl-enetc-ierb.ko
|
|
AUTOLOAD=$(call AutoLoad,35,fsl-enetc)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,fsl-enetc-net))
|
|
|
|
define KernelPackage/fsl-dpaa1-net
|
|
SUBMENU:=$(NETWORK_DEVICES_MENU)
|
|
TITLE:=NXP DPAA1 (LS1043/LS1046) Ethernet
|
|
DEPENDS:=@(TARGET_armsr_armv8) +kmod-fsl-xgmac-mdio +kmod-libphy +kmod-crypto-crc32
|
|
KCONFIG:= \
|
|
CONFIG_FSL_DPAA=y \
|
|
CONFIG_FSL_DPAA_ETH \
|
|
CONFIG_FSL_FMAN \
|
|
CONFIG_FSL_DPAA_CHECKING=n \
|
|
CONFIG_FSL_BMAN_TEST=n \
|
|
CONFIG_FSL_QMAN_TEST=n
|
|
MODULES:= \
|
|
$(LINUX_DIR)/drivers/net/ethernet/freescale/dpaa/fsl_dpa.ko \
|
|
$(LINUX_DIR)/drivers/net/ethernet/freescale/fman/fsl_dpaa_fman.ko \
|
|
$(LINUX_DIR)/drivers/net/ethernet/freescale/fman/fsl_dpaa_mac.ko
|
|
AUTOLOAD=$(call AutoLoad,35,fsl-dpa)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,fsl-dpaa1-net))
|
|
|
|
define KernelPackage/fsl-dpaa2-net
|
|
SUBMENU:=$(NETWORK_DEVICES_MENU)
|
|
TITLE:=NXP DPAA2 Ethernet
|
|
DEPENDS:=@(TARGET_armsr_armv8) +kmod-fsl-xgmac-mdio +kmod-phylink \
|
|
+kmod-fsl-pcs-lynx +kmod-fsl-mc-dpio
|
|
KCONFIG:= \
|
|
CONFIG_FSL_MC_UAPI_SUPPORT=y \
|
|
CONFIG_FSL_DPAA2_ETH
|
|
FILES:= \
|
|
$(LINUX_DIR)/drivers/net/ethernet/freescale/dpaa2/fsl-dpaa2-eth.ko
|
|
AUTOLOAD=$(call AutoLoad,35,fsl-dpaa2-eth)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,fsl-dpaa2-net))
|
|
|
|
define KernelPackage/fsl-dpaa2-console
|
|
SUBMENU:=$(OTHER_MENU)
|
|
TITLE:=NXP DPAA2 Debug console
|
|
DEPENDS:=@(TARGET_armsr_armv8)
|
|
KCONFIG:=CONFIG_DPAA2_CONSOLE
|
|
FILES=$(LINUX_DIR)/drivers/soc/fsl/dpaa2-console.ko
|
|
AUTOLOAD=$(call AutoLoad,40,dpaa2-console)
|
|
endef
|
|
|
|
define KernelPackage/fsl-dpaa2-console/description
|
|
Kernel modules for the NXP DPAA2 debug consoles
|
|
(Management Complex and AIOP).
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,fsl-dpaa2-console))
|
|
|
|
define KernelPackage/marvell-mdio
|
|
SUBMENU:=$(NETWORK_DEVICES_MENU)
|
|
TITLE:=Marvell Armada platform MDIO driver
|
|
DEPENDS:=@(TARGET_armsr_armv8) +kmod-libphy +kmod-of-mdio +kmod-acpi-mdio
|
|
KCONFIG:=CONFIG_MVMDIO
|
|
FILES=$(LINUX_DIR)/drivers/net/ethernet/marvell/mvmdio.ko
|
|
AUTOLOAD=$(call AutoLoad,30,marvell-mdio)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,marvell-mdio))
|
|
|
|
define KernelPackage/phy-marvell-10g
|
|
SUBMENU:=$(NETWORK_DEVICES_MENU)
|
|
TITLE:=Marvell Alaska 10G PHY driver
|
|
DEPENDS:=@(TARGET_armsr_armv8) +kmod-libphy
|
|
KCONFIG:=CONFIG_MARVELL_10G_PHY
|
|
FILES=$(LINUX_DIR)/drivers/net/phy/marvell10g.ko
|
|
AUTOLOAD=$(call AutoLoad,35,marvell10g)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,phy-marvell-10g))
|
|
|
|
define KernelPackage/mvneta
|
|
SUBMENU:=$(NETWORK_DEVICES_MENU)
|
|
TITLE:=Marvell Armada 370/38x/XP/37xx network driver
|
|
DEPENDS:=@(TARGET_armsr_armv8) +kmod-marvell-mdio +kmod-phylink
|
|
KCONFIG:=CONFIG_MVNETA
|
|
FILES:=$(LINUX_DIR)/drivers/net/ethernet/marvell/mvneta.ko
|
|
AUTOLOAD=$(call AutoLoad,30,mvneta)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,mvneta))
|
|
|
|
define KernelPackage/mvpp2
|
|
SUBMENU:=$(NETWORK_DEVICES_MENU)
|
|
TITLE:=Marvell Armada 375/7K/8K network driver
|
|
DEPENDS:=@(TARGET_armsr_armv8) +kmod-marvell-mdio +kmod-phylink
|
|
KCONFIG:=CONFIG_MVPP2 \
|
|
CONFIG_MVPP2_PTP=n
|
|
FILES=$(LINUX_DIR)/drivers/net/ethernet/marvell/mvpp2/mvpp2.ko
|
|
AUTOLOAD=$(call AutoLoad,40,mvpp2)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,mvpp2))
|
|
|
|
define KernelPackage/imx2-wdt
|
|
SUBMENU:=$(OTHER_MENU)
|
|
TITLE:=NXP (Freescale) i.MX2+ and Layerscape watchdog driver
|
|
KCONFIG:=CONFIG_IMX2_WDT
|
|
FILES=$(LINUX_DIR)/drivers/watchdog/imx2_wdt.ko
|
|
AUTOLOAD=$(call AutoLoad,60,imx2_wdt)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,imx2-wdt))
|
|
|
|
define KernelPackage/imx7-ulp-wdt
|
|
SUBMENU:=$(OTHER_MENU)
|
|
TITLE:=NXP (Freescale) i.MX7ULP and later watchdog
|
|
KCONFIG:=CONFIG_IMX7ULP_WDT
|
|
FILES=$(LINUX_DIR)/drivers/watchdog/imx7ulp_wdt.ko
|
|
AUTOLOAD=$(call AutoLoad,60,imx7ulp_wdt)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,imx7-ulp-wdt))
|
|
|
|
define KernelPackage/stmmac-core
|
|
SUBMENU=$(NETWORK_DEVICES_MENU)
|
|
TITLE:=Synopsis Ethernet Controller core (NXP,STMMicro,others)
|
|
DEPENDS:=@(TARGET_armsr_armv8) +kmod-pcs-xpcs +kmod-ptp \
|
|
+kmod-of-mdio
|
|
KCONFIG:=CONFIG_STMMAC_ETH \
|
|
CONFIG_STMMAC_SELFTESTS=n \
|
|
CONFIG_STMMAC_PLATFORM \
|
|
CONFIG_CONFIG_DWMAC_DWC_QOS_ETH=n \
|
|
CONFIG_DWMAC_GENERIC
|
|
FILES=$(LINUX_DIR)/drivers/net/ethernet/stmicro/stmmac/stmmac.ko \
|
|
$(LINUX_DIR)/drivers/net/ethernet/stmicro/stmmac/stmmac-platform.ko \
|
|
$(LINUX_DIR)/drivers/net/ethernet/stmicro/stmmac/dwmac-generic.ko
|
|
AUTOLOAD=$(call AutoLoad,40,stmmac stmmac-platform dwmac-generic)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,stmmac-core))
|
|
|
|
define KernelPackage/dwmac-imx
|
|
SUBMENU=$(NETWORK_DEVICES_MENU)
|
|
TITLE:=NXP i.MX8 Ethernet controller
|
|
DEPENDS:=+kmod-stmmac-core
|
|
KCONFIG:=CONFIG_DWMAC_IMX8
|
|
FILES=$(LINUX_DIR)/drivers/net/ethernet/stmicro/stmmac/dwmac-imx.ko
|
|
AUTOLOAD=$(call AutoLoad,45,dwmac-imx)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,dwmac-imx))
|
|
|
|
define KernelPackage/dwmac-sun8i
|
|
SUBMENU=$(NETWORK_DEVICES_MENU)
|
|
TITLE:=Allwinner H3/A83T/A64 (sun8i) Ethernet
|
|
DEPENDS:=+kmod-stmmac-core +kmod-mdio-bus-mux
|
|
KCONFIG:=CONFIG_DWMAC_SUN8I
|
|
FILES=$(LINUX_DIR)/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.ko
|
|
AUTOLOAD=$(call AutoLoad,45,dwmac-sun8i)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,dwmac-sun8i))
|
|
|
|
define KernelPackage/dwmac-rockchip
|
|
SUBMENU=$(NETWORK_DEVICES_MENU)
|
|
TITLE:=Rockchip RK3328/RK3399/RK3568 Ethernet
|
|
DEPENDS:=+kmod-stmmac-core +kmod-mdio-bus-mux
|
|
KCONFIG:=CONFIG_DWMAC_ROCKCHIP
|
|
FILES=$(LINUX_DIR)/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.ko
|
|
AUTOLOAD=$(call AutoLoad,45,dwmac-rk)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,dwmac-rockchip))
|
|
|
|
define KernelPackage/thunderx-net
|
|
SUBMENU:=$(NETWORK_DEVICES_MENU)
|
|
TITLE:=Marvell (Cavium) ThunderX/2 network drivers
|
|
DEPENDS:=@(TARGET_armsr_armv8) +kmod-phylink +kmod-of-mdio
|
|
KCONFIG:=CONFIG_NET_VENDOR_CAVIUM \
|
|
CONFIG_THUNDER_NIC_PF \
|
|
CONFIG_THUNDER_NIC_VF \
|
|
CONFIG_THUNDER_NIC_BGX \
|
|
CONFIG_THUNDER_NIC_RGX
|
|
FILES=$(LINUX_DIR)/drivers/net/ethernet/cavium/thunder/nicvf.ko \
|
|
$(LINUX_DIR)/drivers/net/ethernet/cavium/thunder/nicpf.ko \
|
|
$(LINUX_DIR)/drivers/net/ethernet/cavium/thunder/thunder_xcv.ko \
|
|
$(LINUX_DIR)/drivers/net/ethernet/cavium/thunder/thunder_bgx.ko
|
|
AUTOLOAD=$(call AutoLoad,40,nicpf nicvf thunder_xcv thunder_bgx)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,thunderx-net))
|
|
|
|
define KernelPackage/wdt-sp805
|
|
SUBMENU:=$(OTHER_MENU)
|
|
TITLE:=ARM SP805 Watchdog
|
|
KCONFIG:=CONFIG_ARM_SP805_WATCHDOG
|
|
FILES=$(LINUX_DIR)/drivers/watchdog/sp805_wdt.ko
|
|
AUTOLOAD=$(call AutoLoad,50,sp805_wdt)
|
|
endef
|
|
|
|
define KernelPackage/wdt-sp805/description
|
|
Support for the ARM SP805 wathchdog module.
|
|
This is present in the NXP Layerscape family,
|
|
HiSilicon HI3660 among others.
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,wdt-sp805))
|
|
|