Thread (36 messages) 36 messages, 4 authors, 2024-08-05

Re: [RFC PATCH net-next 09/10] net: hibmcge: Add a Makefile and update Kconfig for hibmcge

From: Jijie Shao <shaojijie@huawei.com>
Date: 2024-08-01 12:15:46
Also in: lkml

on 2024/8/1 9:13, Andrew Lunn wrote:
On Wed, Jul 31, 2024 at 05:42:44PM +0800, Jijie Shao wrote:
quoted
Add a Makefile and update Kconfig to build hibmcge driver.

Signed-off-by: Jijie Shao <shaojijie@huawei.com>
---
  drivers/net/ethernet/hisilicon/Kconfig          | 17 ++++++++++++++++-
  drivers/net/ethernet/hisilicon/Makefile         |  1 +
  drivers/net/ethernet/hisilicon/hibmcge/Makefile | 10 ++++++++++
  3 files changed, 27 insertions(+), 1 deletion(-)
  create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/Makefile
diff --git a/drivers/net/ethernet/hisilicon/Kconfig b/drivers/net/ethernet/hisilicon/Kconfig
index 3312e1d93c3b..372854d15481 100644
--- a/drivers/net/ethernet/hisilicon/Kconfig
+++ b/drivers/net/ethernet/hisilicon/Kconfig
@@ -7,7 +7,7 @@ config NET_VENDOR_HISILICON
  	bool "Hisilicon devices"
  	default y
  	depends on OF || ACPI
-	depends on ARM || ARM64 || COMPILE_TEST
+	depends on ARM || ARM64 || COMPILE_TEST || X86_64
It is normal to have COMPILE_TEST last.
ok,
Any reason this won't work on S390, PowerPC etc?
I have only compiled and tested on arm or x86.
I can't ensure that compile or work ok on other platforms.
quoted
+if ARM || ARM64 || COMPILE_TEST
+
You would normally express this with a depends on.
Sorry, I can't understand how to convert if to depends on?

Thanks,

Jijie shao
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help