-
Notifications
You must be signed in to change notification settings - Fork 188
/
dpdk.mk
45 lines (38 loc) · 1.7 KB
/
dpdk.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright (C) 2019 iQIYI (www.iqiyi.com).
# All Rights Reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
ifeq ($(RTE_SDK),)
$(error "The variable RTE_SDK is not defined.")
endif
# default target, may be overriden.
RTE_TARGET ?= build
DPDKDIR := $(RTE_SDK)/$(RTE_TARGET)
INCDIRS += -I $(DPDKDIR)/include
CFLAGS += -include $(DPDKDIR)/include/rte_config.h
CFLAGS += -march=native \
-DRTE_MACHINE_CPUFLAG_SSE \
-DRTE_MACHINE_CPUFLAG_SSE2 \
-DRTE_MACHINE_CPUFLAG_SSE3 \
-DRTE_MACHINE_CPUFLAG_SSSE3 \
-DRTE_MACHINE_CPUFLAG_SSE4_1 \
-DRTE_MACHINE_CPUFLAG_SSE4_2 \
-DRTE_COMPILE_TIME_CPUFLAGS=RTE_CPUFLAG_SSE,RTE_CPUFLAG_SSE2,RTE_CPUFLAG_SSE3,RTE_CPUFLAG_SSSE3,RTE_CPUFLAG_SSE4_1,RTE_CPUFLAG_SSE4_2
LIBS += -L $(DPDKDIR)/lib
LIBS += -Wl,--no-as-needed -fvisibility=default \
-Wl,--whole-archive -lrte_pmd_vmxnet3_uio -lrte_pmd_i40e -lrte_pmd_ixgbe \
-lrte_pmd_e1000 -lrte_pmd_bnxt -lrte_pmd_ring -lrte_pmd_bond -lrte_ethdev -lrte_ip_frag \
-Wl,--whole-archive -lrte_hash -lrte_lpm -lrte_kvargs -Wl,-lrte_mbuf -lrte_eal \
-Wl,-lrte_mempool -lrte_ring -lrte_cmdline -lrte_cfgfile -lrte_kni \
-lrte_timer -lrte_net -Wl,-lrte_pmd_virtio \
-lrte_acl -lrte_sched -lrte_port -lrte_table -lqnsm_service \
-Wl,--no-whole-archive -lrt -lm -ldl