d33c95902ff7afd59665e146140abf06cc861886
[deb_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 # set in mk/toolchain/xxx/rte.toolchain-compat.mk
35 ifeq ($(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD),d)
36         $(warning thunderx pmd is not supported by old compilers)
37 endif
38
39 core-libs := librte_eal librte_mbuf librte_mempool librte_ring librte_ether
40 core-libs += librte_net librte_kvargs
41
42 DIRS-$(CONFIG_RTE_LIBRTE_PMD_AF_PACKET) += af_packet
43 DEPDIRS-af_packet = $(core-libs)
44 DIRS-$(CONFIG_RTE_LIBRTE_ARK_PMD) += ark
45 DEPDIRS-ark = $(core-libs)
46 DIRS-$(CONFIG_RTE_LIBRTE_AVP_PMD) += avp
47 DEPDIRS-avp = $(core-libs)
48 DIRS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x
49 DEPDIRS-bnx2x = $(core-libs)
50 DIRS-$(CONFIG_RTE_LIBRTE_PMD_BOND) += bonding
51 DEPDIRS-bonding = $(core-libs) librte_cmdline
52 DIRS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += cxgbe
53 DEPDIRS-cxgbe = $(core-libs)
54 DIRS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) += dpaa2
55 DEPDIRS-dpaa2 = $(core-libs)
56 DIRS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000
57 DEPDIRS-e1000 = $(core-libs)
58 DIRS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += ena
59 DEPDIRS-ena = $(core-libs)
60 DIRS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic
61 DEPDIRS-enic = $(core-libs) librte_hash
62 DIRS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += failsafe
63 DEPDIRS-failsafe = $(core-libs)
64 DIRS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k
65 DEPDIRS-fm10k = $(core-libs) librte_hash
66 DIRS-$(CONFIG_RTE_LIBRTE_I40E_PMD) += i40e
67 DEPDIRS-i40e = $(core-libs) librte_hash
68 DIRS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe
69 DEPDIRS-ixgbe = $(core-libs) librte_hash
70 DIRS-$(CONFIG_RTE_LIBRTE_LIO_PMD) += liquidio
71 DEPDIRS-liquidio = $(core-libs)
72 DIRS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += mlx4
73 DEPDIRS-mlx4 = $(core-libs)
74 DIRS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5
75 DEPDIRS-mlx5 = $(core-libs)
76 DIRS-$(CONFIG_RTE_LIBRTE_NFP_PMD) += nfp
77 DEPDIRS-nfp = $(core-libs)
78 DIRS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt
79 DEPDIRS-bnxt = $(core-libs)
80 DIRS-$(CONFIG_RTE_LIBRTE_PMD_NULL) += null
81 DEPDIRS-null = $(core-libs)
82 DIRS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) += pcap
83 DEPDIRS-pcap = $(core-libs)
84 DIRS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += qede
85 DEPDIRS-qede = $(core-libs)
86 DIRS-$(CONFIG_RTE_LIBRTE_PMD_RING) += ring
87 DEPDIRS-ring = $(core-libs)
88 DIRS-$(CONFIG_RTE_LIBRTE_SFC_EFX_PMD) += sfc
89 DEPDIRS-sfc = $(core-libs)
90 DIRS-$(CONFIG_RTE_LIBRTE_PMD_SZEDATA2) += szedata2
91 DEPDIRS-szedata2 = $(core-libs)
92 DIRS-$(CONFIG_RTE_LIBRTE_PMD_TAP) += tap
93 DEPDIRS-tap = $(core-libs) librte_hash
94 DIRS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += thunderx
95 DEPDIRS-thunderx = $(core-libs)
96 DIRS-$(CONFIG_RTE_LIBRTE_VIRTIO_PMD) += virtio
97 DEPDIRS-virtio = $(core-libs)
98 DIRS-$(CONFIG_RTE_LIBRTE_VMXNET3_PMD) += vmxnet3
99 DEPDIRS-vmxnet3 = $(core-libs)
100 DIRS-$(CONFIG_RTE_LIBRTE_PMD_XENVIRT) += xenvirt
101 DEPDIRS-xenvirt = $(core-libs) librte_cmdline
102
103 ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
104 DIRS-$(CONFIG_RTE_LIBRTE_PMD_KNI) += kni
105 endif
106 DEPDIRS-kni = $(core-libs) librte_kni
107
108 ifeq ($(CONFIG_RTE_LIBRTE_VHOST),y)
109 DIRS-$(CONFIG_RTE_LIBRTE_PMD_VHOST) += vhost
110 endif # $(CONFIG_RTE_LIBRTE_VHOST)
111 DEPDIRS-vhost = $(core-libs) librte_vhost
112
113 include $(RTE_SDK)/mk/rte.subdir.mk