3 # Copyright(c) 2010-2015 Intel Corporation. All rights reserved.
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
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
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.
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.
32 include $(RTE_SDK)/mk/rte.vars.mk
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)
39 core-libs := librte_eal librte_mbuf librte_mempool librte_ring librte_ether
40 core-libs += librte_net librte_kvargs
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_E1000_PMD) += e1000
55 DEPDIRS-e1000 = $(core-libs)
56 DIRS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += ena
57 DEPDIRS-ena = $(core-libs)
58 DIRS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic
59 DEPDIRS-enic = $(core-libs) librte_hash
60 DIRS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k
61 DEPDIRS-fm10k = $(core-libs) librte_hash
62 DIRS-$(CONFIG_RTE_LIBRTE_I40E_PMD) += i40e
63 DEPDIRS-i40e = $(core-libs) librte_hash
64 DIRS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe
65 DEPDIRS-ixgbe = $(core-libs) librte_hash
66 DIRS-$(CONFIG_RTE_LIBRTE_LIO_PMD) += liquidio
67 DEPDIRS-liquidio = $(core-libs)
68 DIRS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += mlx4
69 DEPDIRS-mlx4 = $(core-libs)
70 DIRS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5
71 DEPDIRS-mlx5 = $(core-libs)
72 DIRS-$(CONFIG_RTE_LIBRTE_NFP_PMD) += nfp
73 DEPDIRS-nfp = $(core-libs)
74 DIRS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt
75 DEPDIRS-bnxt = $(core-libs)
76 DIRS-$(CONFIG_RTE_LIBRTE_PMD_NULL) += null
77 DEPDIRS-null = $(core-libs)
78 DIRS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) += pcap
79 DEPDIRS-pcap = $(core-libs)
80 DIRS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += qede
81 DEPDIRS-qede = $(core-libs)
82 DIRS-$(CONFIG_RTE_LIBRTE_PMD_RING) += ring
83 DEPDIRS-ring = $(core-libs)
84 DIRS-$(CONFIG_RTE_LIBRTE_SFC_EFX_PMD) += sfc
85 DEPDIRS-sfc = $(core-libs)
86 DIRS-$(CONFIG_RTE_LIBRTE_PMD_SZEDATA2) += szedata2
87 DEPDIRS-szedata2 = $(core-libs)
88 DIRS-$(CONFIG_RTE_LIBRTE_PMD_TAP) += tap
89 DEPDIRS-tap = $(core-libs) librte_hash
90 DIRS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += thunderx
91 DEPDIRS-thunderx = $(core-libs)
92 DIRS-$(CONFIG_RTE_LIBRTE_VIRTIO_PMD) += virtio
93 DEPDIRS-virtio = $(core-libs)
94 DIRS-$(CONFIG_RTE_LIBRTE_VMXNET3_PMD) += vmxnet3
95 DEPDIRS-vmxnet3 = $(core-libs)
96 DIRS-$(CONFIG_RTE_LIBRTE_PMD_XENVIRT) += xenvirt
97 DEPDIRS-xenvirt = $(core-libs) librte_cmdline
99 ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
100 DIRS-$(CONFIG_RTE_LIBRTE_PMD_KNI) += kni
102 DEPDIRS-kni = $(core-libs) librte_kni
104 ifeq ($(CONFIG_RTE_LIBRTE_VHOST),y)
105 DIRS-$(CONFIG_RTE_LIBRTE_PMD_VHOST) += vhost
106 endif # $(CONFIG_RTE_LIBRTE_VHOST)
107 DEPDIRS-vhost = $(core-libs) librte_vhost
109 include $(RTE_SDK)/mk/rte.subdir.mk