net/kni: add KNI PMD
[dpdk.git] / drivers / net / Makefile
1 #   BSD LICENSE
2 #
3 #   Copyright(c) 2010-2015 Intel Corporation. All rights reserved.
4 #   All rights reserved.
5 #
6 #   Redistribution and use in source and binary forms, with or without
7 #   modification, are permitted provided that the following conditions
8 #   are met:
9 #
10 #     * Redistributions of source code must retain the above copyright
11 #       notice, this list of conditions and the following disclaimer.
12 #     * Redistributions in binary form must reproduce the above copyright
13 #       notice, this list of conditions and the following disclaimer in
14 #       the documentation and/or other materials provided with the
15 #       distribution.
16 #     * Neither the name of Intel Corporation nor the names of its
17 #       contributors may be used to endorse or promote products derived
18 #       from this software without specific prior written permission.
19 #
20 #   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 #   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 #   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 #   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 #   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 #   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 #   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 #   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 #   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 #   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 #   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
32 include $(RTE_SDK)/mk/rte.vars.mk
33
34 core-libs := librte_eal librte_mbuf librte_mempool librte_ring librte_ether
35 core-libs += librte_net librte_kvargs
36
37 DIRS-$(CONFIG_RTE_LIBRTE_PMD_AF_PACKET) += af_packet
38 DEPDIRS-af_packet = $(core-libs)
39 DIRS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x
40 DEPDIRS-bnx2x = $(core-libs)
41 DIRS-$(CONFIG_RTE_LIBRTE_PMD_BOND) += bonding
42 DEPDIRS-bonding = $(core-libs) librte_cmdline
43 DIRS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += cxgbe
44 DEPDIRS-cxgbe = $(core-libs)
45 DIRS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000
46 DEPDIRS-e1000 = $(core-libs)
47 DIRS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += ena
48 DEPDIRS-ena = $(core-libs)
49 DIRS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic
50 DEPDIRS-enic = $(core-libs) librte_hash
51 DIRS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k
52 DEPDIRS-fm10k = $(core-libs) librte_hash
53 DIRS-$(CONFIG_RTE_LIBRTE_I40E_PMD) += i40e
54 DEPDIRS-i40e = $(core-libs) librte_hash
55 DIRS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe
56 DEPDIRS-ixgbe = $(core-libs) librte_hash
57 DIRS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += mlx4
58 DEPDIRS-mlx4 = $(core-libs)
59 DIRS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5
60 DEPDIRS-mlx5 = $(core-libs)
61 DIRS-$(CONFIG_RTE_LIBRTE_NFP_PMD) += nfp
62 DEPDIRS-nfp = $(core-libs)
63 DIRS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt
64 DEPDIRS-bnxt = $(core-libs)
65 DIRS-$(CONFIG_RTE_LIBRTE_PMD_NULL) += null
66 DEPDIRS-null = $(core-libs)
67 DIRS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) += pcap
68 DEPDIRS-pcap = $(core-libs)
69 DIRS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += qede
70 DEPDIRS-qede = $(core-libs)
71 DIRS-$(CONFIG_RTE_LIBRTE_PMD_RING) += ring
72 DEPDIRS-ring = $(core-libs)
73 DIRS-$(CONFIG_RTE_LIBRTE_SFC_EFX_PMD) += sfc
74 DEPDIRS-sfc = $(core-libs)
75 DIRS-$(CONFIG_RTE_LIBRTE_PMD_SZEDATA2) += szedata2
76 DEPDIRS-szedata2 = $(core-libs)
77 DIRS-$(CONFIG_RTE_LIBRTE_PMD_TAP) += tap
78 DEPDIRS-tap = $(core-libs)
79 DIRS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += thunderx
80 DEPDIRS-thunderx = $(core-libs)
81 DIRS-$(CONFIG_RTE_LIBRTE_VIRTIO_PMD) += virtio
82 DEPDIRS-virtio = $(core-libs)
83 DIRS-$(CONFIG_RTE_LIBRTE_VMXNET3_PMD) += vmxnet3
84 DEPDIRS-vmxnet3 = $(core-libs)
85 DIRS-$(CONFIG_RTE_LIBRTE_PMD_XENVIRT) += xenvirt
86 DEPDIRS-xenvirt = $(core-libs) librte_cmdline
87
88 ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
89 DIRS-$(CONFIG_RTE_LIBRTE_PMD_KNI) += kni
90 endif
91 DEPDIRS-kni = $(core-libs) librte_kni
92
93 ifeq ($(CONFIG_RTE_LIBRTE_VHOST),y)
94 DIRS-$(CONFIG_RTE_LIBRTE_PMD_VHOST) += vhost
95 endif # $(CONFIG_RTE_LIBRTE_VHOST)
96 DEPDIRS-vhost = $(core-libs) librte_vhost
97
98 include $(RTE_SDK)/mk/rte.subdir.mk