From patchwork Tue May 26 21:27:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Olivari X-Patchwork-Id: 476751 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 330F11402A2 for ; Wed, 27 May 2015 07:31:46 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 2457628BCCC; Tue, 26 May 2015 23:27:50 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 4047F280ADB for ; Tue, 26 May 2015 23:26:57 +0200 (CEST) X-policyd-weight: using cached result; rate:hard: -7.6 Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Tue, 26 May 2015 23:26:41 +0200 (CEST) Received: from smtp.codeaurora.org (localhost [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 69913140713; Tue, 26 May 2015 21:28:07 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 486) id 55027140748; Tue, 26 May 2015 21:28:07 +0000 (UTC) Received: from mathieu-linux.qualcomm.com (qf-scl1nat.qualcomm.com [207.114.132.30]) (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mathieu@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 05BC6140713; Tue, 26 May 2015 21:28:05 +0000 (UTC) From: Mathieu Olivari To: nbd@openwrt.org, blogic@openwrt.org, kaloz@openwrt.org Date: Tue, 26 May 2015 14:27:54 -0700 Message-Id: <1432675677-8806-4-git-send-email-mathieu@codeaurora.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1432675677-8806-1-git-send-email-mathieu@codeaurora.org> References: <1432675677-8806-1-git-send-email-mathieu@codeaurora.org> X-Virus-Scanned: ClamAV using ClamSMTP Cc: openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] [PATCH 3/6] kernel: add stmmac as a new kernel package X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Mathieu Olivari --- package/kernel/linux/modules/netdevices.mk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk index 9dd18f3..62fd949 100644 --- a/package/kernel/linux/modules/netdevices.mk +++ b/package/kernel/linux/modules/netdevices.mk @@ -811,6 +811,27 @@ endef $(eval $(call KernelPackage,vmxnet3)) +define KernelPackage/stmmac + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=STMicro 10/100/1000 Ethernet driver + DEPENDS:=+kmod-mii +kmod-ptp + KCONFIG:=CONFIG_NET_VENDOR_STMICRO=y \ + CONFIG_STMMAC_ETH \ + CONFIG_STMMAC_PLATFORM=y \ + CONFIG_STMMAC_DEBUG_FS=y \ + CONFIG_STMMAC_DA=y \ + CONFIG_DWMAC_IPQ806X=y + FILES:=$(LINUX_DIR)/drivers/net/ethernet/stmicro/stmmac/stmmac.ko + AUTOLOAD:=$(call AutoLoad,50,stmmac.ko) +endef + +define KernelPackage/stmmac/description + Kernel module for STMicroelectronics 10/100/1000 Ethernet driver +endef + +$(eval $(call KernelPackage,stmmac)) + + define KernelPackage/spi-ks8995 SUBMENU:=$(NETWORK_DEVICES_MENU) TITLE:=Micrel/Kendin KS8995 Ethernet switch control