File: test_update_config.sh

package info (click to toggle)
iptables-netflow 2.6-7.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,472 kB
  • sloc: ansic: 6,823; sh: 896; ruby: 619; makefile: 239
file content (38 lines) | stat: -rwxr-xr-x 773 bytes parent folder | download | duplicates (3)
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
#!/bin/bash -efu
# SPDX-License-Identifier: GPL-2.0-only
#
# Update default .config for values required to run tests
#

set -x
cp -f .config .config-pkt-netflow.bak

if type virtme-configkernel >/dev/null 2>&1; then
  virtme-configkernel --update
fi

scripts/config \
  -e CONFIG_VETH \
  -e CONFIG_PACKET \
  -e CONFIG_NETFILTER \
  -e CONFIG_NETFILTER_XTABLES \
  -e NETFILTER_ADVANCED \
  -e CONFIG_IP_NF_FILTER \
  -e CONFIG_IP_NF_IPTABLES \
  -e CONFIG_IP6_NF_FILTER \

if [ "${1-}" = debug ]; then
scripts/config \
  -e CONFIG_LOCK_DEBUGGING_SUPPORT \
  -e CONFIG_PROVE_LOCKING \
  -e CONFIG_DEBUG_SPINLOCK \
  -e CONFIG_FRAME_POINTER \
  -d CONFIG_RANDOMIZE_BASE \

fi

make olddefconfig

scripts/diffconfig .config-pkt-netflow.bak .config

# export XTABLES_LIBDIR=