Commit 41cde804 authored by Jijie Shao's avatar Jijie Shao Committed by Hao Chen
Browse files

net: hibmcge: Add a Makefile and update Kconfig for hibmcge

maillist inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/IAZDQX
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=81e176de6ad4



----------------------------------------------------------------------

Add a Makefile and update Kconfig to build hibmcge driver.

Signed-off-by: default avatarJijie Shao <shaojijie@huawei.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarHao Chen <chenhao418@huawei.com>
parent 69f49a45
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2922,6 +2922,7 @@ CONFIG_HNS3_HCLGE=m
CONFIG_HNS3_DCB=y
CONFIG_HNS3_HCLGEVF=m
CONFIG_HNS3_ENET=m
CONFIG_HIBMCGE=m
CONFIG_NET_VENDOR_HUAWEI=y
CONFIG_HINIC=m
CONFIG_HINIC3=m
+3 −0
Original line number Diff line number Diff line
@@ -2206,6 +2206,9 @@ CONFIG_EFI_CUSTOM_SSDT_OVERLAYS=y
CONFIG_UNACCEPTED_MEMORY=y
# end of EFI (Extensible Firmware Interface) Support

CONFIG_NET_VENDOR_HISILICON=y
CONFIG_HIBMCGE=m

CONFIG_UEFI_CPER=y
CONFIG_UEFI_CPER_X86=y

+17 −1
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@ config NET_VENDOR_HISILICON
	bool "Hisilicon devices"
	default y
	depends on OF || ACPI
	depends on ARM || ARM64 || COMPILE_TEST
	help
	  If you have a network (Ethernet) card belonging to this class, say Y.

@@ -18,6 +17,8 @@ config NET_VENDOR_HISILICON

if NET_VENDOR_HISILICON

if ARM || ARM64 || COMPILE_TEST

config HIX5HD2_GMAC
	tristate "Hisilicon HIX5HD2 Family Network Device Support"
	select PHYLIB
@@ -142,4 +143,19 @@ config HNS3_ENET

endif #HNS3

endif # ARM || ARM64 || COMPILE_TEST

config HIBMCGE
	tristate "Hisilicon BMC Gigabit Ethernet Device Support"
	depends on PCI && PCI_MSI
	select PHYLIB
	select MOTORCOMM_PHY
	select REALTEK_PHY
	help
	  If you wish to compile a kernel for a BMC with HIBMC-xx_gmac
	  then you should answer Y to this. This makes this driver suitable for use
	  on certain boards such as the HIBMC-210.

	  If you are unsure, say N.

endif # NET_VENDOR_HISILICON
+1 −0
Original line number Diff line number Diff line
@@ -9,3 +9,4 @@ obj-$(CONFIG_HNS_MDIO) += hns_mdio.o
obj-$(CONFIG_HNS) += hns/
obj-$(CONFIG_HNS3) += hns3/
obj-$(CONFIG_HISI_FEMAC) += hisi_femac.o
obj-$(CONFIG_HIBMCGE) += hibmcge/
+8 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0+
#
# Makefile for the HISILICON BMC GE network device drivers.
#

obj-$(CONFIG_HIBMCGE) += hibmcge.o

hibmcge-objs = hbg_main.o hbg_hw.o hbg_mdio.o hbg_irq.o hbg_txrx.o hbg_ethtool.o