patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob e6d91ca4a2a4078029257dc418796cb83ca73843 1060 bytes (raw)
name: tools/xdp-forwarder/meson.build 	 # note: path name is non-authoritative(*)

 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
 
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2025 Yureka Lilian <yureka@cyberchaos.dev>
# SPDX-FileCopyrightText: 2025 Demi Marie Obenour <demiobenour@gmail.com>

libbpf = dependency('libbpf', version : '1.6.2')

executable('set-router-iface', 'set_router_iface.c',
  dependencies : libbpf,
  install : true)

clang = find_program('clang')

bpf_o_cmd = [
  clang.full_path(),
  '-fno-stack-protector',
  '-fno-strict-aliasing',
  '-fwrapv', '-fwrapv-pointer',
  '-Wall',
  '-Wextra',
  '-O2',
  '-target', 'bpf',
  '-I', meson.current_source_dir() + '/include',
  '-g',
  '-c',
  '-o', '@OUTPUT@',
  '-MD',
  '-MP',
  '-MF', '@DEPFILE@',
  '--',
  '@INPUT@',
]

prog_router_o = custom_target(
  input : 'prog_router.c',
  output : 'prog_router.o',
  depfile : 'prog_router.o.dep',
  command : bpf_o_cmd,
  install: true,
  install_dir: 'lib/xdp')

prog_physical_o = custom_target(
  input : 'prog_physical.c',
  output : 'prog_physical.o',
  depfile : 'prog_physical.o.dep',
  command : bpf_o_cmd,
  install: true,
  install_dir: 'lib/xdp')


debug log:

solving e6d91ca ...
found e6d91ca in https://inbox.spectrum-os.org/spectrum-devel/20250923132012.28013-3-yureka@cyberchaos.dev/

applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20250923132012.28013-3-yureka@cyberchaos.dev/
diff --git a/tools/xdp-forwarder/meson.build b/tools/xdp-forwarder/meson.build
new file mode 100644
index 0000000..e6d91ca

Checking patch tools/xdp-forwarder/meson.build...
1:54: new blank line at EOF.
+
Applied patch tools/xdp-forwarder/meson.build cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 e6d91ca4a2a4078029257dc418796cb83ca73843	tools/xdp-forwarder/meson.build

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).