Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
oulijun | 8793f77 | 2016-07-21 19:06:56 +0800 | [diff] [blame] | 2 | # |
| 3 | # Makefile for the Hisilicon RoCE drivers. |
| 4 | # |
| 5 | |
Masahiro Yamada | b360ce3 | 2019-01-25 13:39:31 +0900 | [diff] [blame] | 6 | ccflags-y := -I $(srctree)/drivers/net/ethernet/hisilicon/hns3 |
Wei Hu(Xavier) | dd74282d | 2017-08-30 17:23:01 +0800 | [diff] [blame] | 7 | |
Yixian Liu | b16f818 | 2017-11-14 17:26:16 +0800 | [diff] [blame] | 8 | hns-roce-objs := hns_roce_main.o hns_roce_cmd.o hns_roce_pd.o \ |
oulijun | 8793f77 | 2016-07-21 19:06:56 +0800 | [diff] [blame] | 9 | hns_roce_ah.o hns_roce_hem.o hns_roce_mr.o hns_roce_qp.o \ |
Lijun Ou | e1c9a0dc | 2019-04-01 19:13:35 +0800 | [diff] [blame] | 10 | hns_roce_cq.o hns_roce_alloc.o hns_roce_db.o hns_roce_srq.o hns_roce_restrack.o |
Lijun Ou | e9816dd | 2019-06-19 15:00:47 +0800 | [diff] [blame] | 11 | |
Arnd Bergmann | d5b60e2 | 2019-10-07 23:18:08 +0200 | [diff] [blame] | 12 | ifdef CONFIG_INFINIBAND_HNS_HIP06 |
Lijun Ou | 9a601fc | 2019-07-04 14:22:58 +0800 | [diff] [blame] | 13 | hns-roce-hw-v1-objs := hns_roce_hw_v1.o $(hns-roce-objs) |
Arnd Bergmann | d5b60e2 | 2019-10-07 23:18:08 +0200 | [diff] [blame] | 14 | obj-$(CONFIG_INFINIBAND_HNS) += hns-roce-hw-v1.o |
| 15 | endif |
Lijun Ou | e9816dd | 2019-06-19 15:00:47 +0800 | [diff] [blame] | 16 | |
Arnd Bergmann | d5b60e2 | 2019-10-07 23:18:08 +0200 | [diff] [blame] | 17 | ifdef CONFIG_INFINIBAND_HNS_HIP08 |
Lijun Ou | e9816dd | 2019-06-19 15:00:47 +0800 | [diff] [blame] | 18 | hns-roce-hw-v2-objs := hns_roce_hw_v2.o hns_roce_hw_v2_dfx.o $(hns-roce-objs) |
Arnd Bergmann | d5b60e2 | 2019-10-07 23:18:08 +0200 | [diff] [blame] | 19 | obj-$(CONFIG_INFINIBAND_HNS) += hns-roce-hw-v2.o |
| 20 | endif |