forked from CloudNativeDataPlane/cndp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson_options.txt
81 lines (64 loc) · 2.74 KB
/
meson_options.txt
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2019-2022 Intel Corporation.
# Please keep the options sorted alphabetically.
option('coverity', type: 'boolean', value: 'false',
description: 'build for coverity')
option('enable_asserts', type: 'boolean', value: false,
description: 'Enable CNE asserts')
option('enable_docs', type: 'boolean', value: false,
description: 'build documentation')
# ----
# CNET Configuration
#
option('enable_ip4_dump', type: 'boolean', value: 'false',
description: 'enable IPv4 dump header')
option('enable_tcp', type: 'boolean', value: 'false',
description: 'enable TCP in CNET (experimental)')
option('enable_punting', type: 'boolean', value: 'true',
description: 'enable punting to Linux kernel stack')
option('enable_tcp_dump', type: 'boolean', value: 'false',
description: 'enable TCP dump header')
option('cnet_num_tcbs', type: 'integer', value: '512',
description: 'Max number of TCBs')
option('cnet_num_channels', type: 'integer', value: '512',
description: 'Max number of Channels')
option('cnet_num_routes', type: 'integer', value: '512',
description: 'Max number of Routes')
# ------
option('json_test_dir', type: 'string',
value:'', # '/work/projects/json/tests',
description: 'include path to JSON test files')
# Building examples/afxdp_user we need to install linux-source code
# sudo -s # switch to root privilege
# apt-get install linux-source
# cd /usr/src
# tar xjf linux-source-X.Y.Z.tar.bz2
#
# Will create a linux-source-X.Y.Z directory use this path in the
# linux_source_dir variable in meson_options.txt file.
#
# cd linux-source-X.Y.Z
# make menuconfig # Save and exit the menuconfig.
# make headers_install
# exit # exit root privilege
#
# After the headers_install you can build CNDP to get xdpsock_user application
# built, which is called afxdp_user.
# cd cndp
# make rebuild install
#
# The binaries are located in ./usr/local/bin in the CNDP source directory.
#
option('linux_source_dir', type: 'string',
value:'/usr/src/linux-source-5.13.0',
description: 'location of Linux sources')
option('machine', type: 'string', value: 'native',
description: 'set the target machine type')
# The path below can't be a relative path, must be absolute path to quicly source code.
# Follow the quicly build process to get the libquicly.a and picotls code.
option('picotls_path', type: 'string', value: '/work/projects/intel/networking.dataplane/picotls',
description: 'set the path to picotls directory')
option('quicly_path', type: 'string', value: '/work/projects/intel/networking.dataplane/quicly',
description: 'set the path to quicly directory')
option('verbose', type: 'boolean', value: false,
description: 'Verbose build messages')