mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
- pass our system include directories to make generators use our libc wrappers and latest kernel headers, - include relevant headers in generated gperf file, - use files() rather than find_program(), as the result of find_program() cannot be passed to 'input' of custom_target(), - move generate-bpf-delegate-configs.py to src/core/, as it is only used by libcore.
12 lines
263 B
Bash
Executable File
12 lines
263 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
CC=${1:?}
|
|
shift
|
|
|
|
$CC -dM -include linux/if_arp.h "$@" - </dev/null | \
|
|
awk '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $2; }' | \
|
|
sed -e 's/ARPHRD_//'
|