]> git.proxmox.com Git - ceph.git/blob - ceph/src/dpdk/lib/librte_eal/linuxapp/kni/Makefile
bump version to 12.2.12-pve1
[ceph.git] / ceph / src / dpdk / lib / librte_eal / linuxapp / kni / Makefile
1 # BSD LICENSE
2 #
3 # Copyright(c) 2010-2014 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 #
35 # module name and path
36 #
37 MODULE = rte_kni
38
39 #
40 # CFLAGS
41 #
42 MODULE_CFLAGS += -I$(SRCDIR) --param max-inline-insns-single=50
43 MODULE_CFLAGS += -I$(RTE_OUTPUT)/include -I$(SRCDIR)/ethtool/ixgbe -I$(SRCDIR)/ethtool/igb
44 MODULE_CFLAGS += -include $(RTE_OUTPUT)/include/rte_config.h
45 MODULE_CFLAGS += -Wall -Werror
46
47 ifeq ($(shell lsb_release -si 2>/dev/null),Ubuntu)
48 MODULE_CFLAGS += -DUBUNTU_RELEASE_CODE=$(shell lsb_release -sr | tr -d .)
49 UBUNTU_KERNEL_CODE := $(shell echo `grep UTS_RELEASE $(RTE_KERNELDIR)/include/generated/utsrelease.h \
50 | cut -d '"' -f2 | cut -d- -f1,2 | tr .- ,`,1)
51 MODULE_CFLAGS += -D"UBUNTU_KERNEL_CODE=UBUNTU_KERNEL_VERSION($(UBUNTU_KERNEL_CODE))"
52 endif
53
54 # this lib needs main eal
55 DEPDIRS-y += lib/librte_eal/linuxapp/eal
56
57 #
58 # all source are stored in SRCS-y
59 #
60 SRCS-y := ethtool/ixgbe/ixgbe_main.c
61 SRCS-y += ethtool/ixgbe/ixgbe_api.c
62 SRCS-y += ethtool/ixgbe/ixgbe_common.c
63 SRCS-y += ethtool/ixgbe/ixgbe_ethtool.c
64 SRCS-y += ethtool/ixgbe/ixgbe_82599.c
65 SRCS-y += ethtool/ixgbe/ixgbe_82598.c
66 SRCS-y += ethtool/ixgbe/ixgbe_x540.c
67 SRCS-y += ethtool/ixgbe/ixgbe_phy.c
68 SRCS-y += ethtool/ixgbe/kcompat.c
69
70 SRCS-y += ethtool/igb/e1000_82575.c
71 SRCS-y += ethtool/igb/e1000_i210.c
72 SRCS-y += ethtool/igb/e1000_api.c
73 SRCS-y += ethtool/igb/e1000_mac.c
74 SRCS-y += ethtool/igb/e1000_manage.c
75 SRCS-y += ethtool/igb/e1000_mbx.c
76 SRCS-y += ethtool/igb/e1000_nvm.c
77 SRCS-y += ethtool/igb/e1000_phy.c
78 SRCS-y += ethtool/igb/igb_ethtool.c
79 SRCS-y += ethtool/igb/igb_main.c
80 SRCS-y += ethtool/igb/igb_param.c
81 SRCS-y += ethtool/igb/igb_vmdq.c
82
83 SRCS-y += kni_misc.c
84 SRCS-y += kni_net.c
85 SRCS-y += kni_ethtool.c
86 SRCS-$(CONFIG_RTE_KNI_VHOST) += kni_vhost.c
87
88 include $(RTE_SDK)/mk/rte.module.mk