[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170709124917.12852-7-saeedm@mellanox.com>
Date: Sun, 9 Jul 2017 15:49:16 +0300
From: Saeed Mahameed <saeedm@...lanox.com>
To: "David S. Miller" <davem@...emloft.net>
Cc: netdev@...r.kernel.org, Ilan Tayari <ilant@...lanox.com>,
Saeed Mahameed <saeedm@...lanox.com>
Subject: [net 6/7] net/mlx5: Add Makefiles for subdirectories
From: Ilan Tayari <ilant@...lanox.com>
Currently it is not possible to build just one .o file inside
a subdirectory, because the subdirectories lack a Makefile.
Add a Makefile to the mlx5 subdirectories.
Fixes: e29341fb3a5b ("net/mlx5: FPGA, Add basic support for Innova")
Signed-off-by: Ilan Tayari <ilant@...lanox.com>
Reported-by: David Miller <davem@...emloft.net>
Signed-off-by: Saeed Mahameed <saeedm@...lanox.com>
---
drivers/net/ethernet/mellanox/mlx5/core/accel/Makefile | 1 +
drivers/net/ethernet/mellanox/mlx5/core/en_accel/Makefile | 1 +
drivers/net/ethernet/mellanox/mlx5/core/fpga/Makefile | 1 +
drivers/net/ethernet/mellanox/mlx5/core/ipoib/Makefile | 1 +
drivers/net/ethernet/mellanox/mlx5/core/lib/Makefile | 1 +
5 files changed, 5 insertions(+)
create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/accel/Makefile
create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/en_accel/Makefile
create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/fpga/Makefile
create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/ipoib/Makefile
create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/lib/Makefile
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/accel/Makefile b/drivers/net/ethernet/mellanox/mlx5/core/accel/Makefile
new file mode 100644
index 000000000000..d8e17110f25d
--- /dev/null
+++ b/drivers/net/ethernet/mellanox/mlx5/core/accel/Makefile
@@ -0,0 +1 @@
+subdir-ccflags-y += -I$(src)/..
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/Makefile b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/Makefile
new file mode 100644
index 000000000000..d8e17110f25d
--- /dev/null
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/Makefile
@@ -0,0 +1 @@
+subdir-ccflags-y += -I$(src)/..
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fpga/Makefile b/drivers/net/ethernet/mellanox/mlx5/core/fpga/Makefile
new file mode 100644
index 000000000000..d8e17110f25d
--- /dev/null
+++ b/drivers/net/ethernet/mellanox/mlx5/core/fpga/Makefile
@@ -0,0 +1 @@
+subdir-ccflags-y += -I$(src)/..
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/ipoib/Makefile b/drivers/net/ethernet/mellanox/mlx5/core/ipoib/Makefile
new file mode 100644
index 000000000000..d8e17110f25d
--- /dev/null
+++ b/drivers/net/ethernet/mellanox/mlx5/core/ipoib/Makefile
@@ -0,0 +1 @@
+subdir-ccflags-y += -I$(src)/..
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/Makefile b/drivers/net/ethernet/mellanox/mlx5/core/lib/Makefile
new file mode 100644
index 000000000000..d8e17110f25d
--- /dev/null
+++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/Makefile
@@ -0,0 +1 @@
+subdir-ccflags-y += -I$(src)/..
--
2.11.0
Powered by blists - more mailing lists