- move emac into module
- add into profiles where appropriate
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39200
3c298f89-4303-0410-b956-
a3cf2f4a3e73
# CONFIG_STAGING is not set
CONFIG_STOP_MACHINE=y
CONFIG_STRICT_DEVMEM=y
# CONFIG_STAGING is not set
CONFIG_STOP_MACHINE=y
CONFIG_STRICT_DEVMEM=y
+# CONFIG_SUN4I_EMAC is not set
CONFIG_SUN4I_TIMER=y
CONFIG_SWP_EMULATE=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_SUN4I_TIMER=y
CONFIG_SWP_EMULATE=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
endef
$(eval $(call KernelPackage,ata-sunxi))
endef
$(eval $(call KernelPackage,ata-sunxi))
+
+define KernelPackage/sun4i-emac
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ TITLE:=AllWinner EMAC Ethernet support
+ DEPENDS:=@TARGET_sunxi
+ KCONFIG:=CONFIG_SUN4I_EMAC
+ FILES:=$(LINUX_DIR)/drivers/net/ethernet/allwinner/sun4i-emac.ko
+ AUTOLOAD:=$(call AutoProbe,sun4i-emac)
+endef
+
+$(eval $(call KernelPackage,sun4i-emac))
+
define Profile/A20-OLinuXino_MICRO
NAME:=A20 OLinuXino Micro
PACKAGES:=\
define Profile/A20-OLinuXino_MICRO
NAME:=A20 OLinuXino Micro
PACKAGES:=\
- uboot-sunxi-A20-OLinuXino_MICRO kmod-ata-sunxi
+ uboot-sunxi-A20-OLinuXino_MICRO kmod-ata-sunxi kmod-sun4i-emac
endef
define Profile/A20-OLinuXino_MICRO/Description
endef
define Profile/A20-OLinuXino_MICRO/Description
define Profile/Cubieboard
NAME:=Cubieboard
PACKAGES:=\
define Profile/Cubieboard
NAME:=Cubieboard
PACKAGES:=\
- uboot-sunxi-Cubieboard kmod-ata-sunxi
+ uboot-sunxi-Cubieboard kmod-ata-sunxi kmod-sun4i-emac
endef
define Profile/Cubieboard/Description
endef
define Profile/Cubieboard/Description
define Profile/Cubieboard2
NAME:=Cubieboard2
PACKAGES:=\
define Profile/Cubieboard2
NAME:=Cubieboard2
PACKAGES:=\
- uboot-sunxi-Cubieboard2 kmod-ata-sunxi
+ uboot-sunxi-Cubieboard2 kmod-ata-sunxi kmod-sun4i-emac
endef
define Profile/Cubieboard2/Description
endef
define Profile/Cubieboard2/Description
define Profile/pcDuino
NAME:=pcDuino
PACKAGES:=\
define Profile/pcDuino
NAME:=pcDuino
PACKAGES:=\
+ uboot-sunxi-pcDuino kmod-sun4i-emac
endef
define Profile/pcDuino/Description
endef
define Profile/pcDuino/Description