Skip to content

Commit 5f20be4

Browse files
Jie Wangdavem330
authored andcommitted
net: hns3: refactor hns3 makefile to support hns3_common module
Currently we plan to refactor PF and VF cmdq module. A new file folder hns3_common will be created to store new common APIs used by PF and VF cmdq module. Thus the PF and VF compilation process will both depends on the hns3_common. This may cause parallel building problems if we add a new makefile building unit. So this patch combined the PF and VF makefile scripts to the top level makefile to support the new hns3_common which will be created in the next patch. Signed-off-by: Jie Wang <wangjie125@huawei.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent af30f8e commit 5f20be4

File tree

3 files changed

+11
-25
lines changed

3 files changed

+11
-25
lines changed

drivers/net/ethernet/hisilicon/hns3/Makefile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@
44
#
55

66
ccflags-y += -I$(srctree)/$(src)
7-
8-
obj-$(CONFIG_HNS3) += hns3pf/
9-
obj-$(CONFIG_HNS3) += hns3vf/
7+
ccflags-y += -I$(srctree)/drivers/net/ethernet/hisilicon/hns3/hns3pf
8+
ccflags-y += -I$(srctree)/drivers/net/ethernet/hisilicon/hns3/hns3vf
109

1110
obj-$(CONFIG_HNS3) += hnae3.o
1211

1312
obj-$(CONFIG_HNS3_ENET) += hns3.o
1413
hns3-objs = hns3_enet.o hns3_ethtool.o hns3_debugfs.o
1514

1615
hns3-$(CONFIG_HNS3_DCB) += hns3_dcbnl.o
16+
17+
obj-$(CONFIG_HNS3_HCLGEVF) += hclgevf.o
18+
hclgevf-objs = hns3vf/hclgevf_main.o hns3vf/hclgevf_cmd.o hns3vf/hclgevf_mbx.o hns3vf/hclgevf_devlink.o
19+
20+
obj-$(CONFIG_HNS3_HCLGE) += hclge.o
21+
hclge-objs = hns3pf/hclge_main.o hns3pf/hclge_cmd.o hns3pf/hclge_mdio.o hns3pf/hclge_tm.o \
22+
hns3pf/hclge_mbx.o hns3pf/hclge_err.o hns3pf/hclge_debugfs.o hns3pf/hclge_ptp.o hns3pf/hclge_devlink.o
23+
24+
hclge-$(CONFIG_HNS3_DCB) += hns3pf/hclge_dcb.o

drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile

Lines changed: 0 additions & 12 deletions
This file was deleted.

drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)