]> git.proxmox.com Git - mirror_qemu.git/blame - scripts/make-config-poison.sh
hw/core/cpu: Remove final vestiges of dynamic state tracing
[mirror_qemu.git] / scripts / make-config-poison.sh
CommitLineData
eed56e9a
PB
1#! /bin/sh
2
3if test $# = 0; then
4 exit 0
5fi
6
d31b8404
RH
7# Create list of config switches that should be poisoned in common code,
8# but filter out several which are handled manually.
eed56e9a
PB
9exec sed -n \
10 -e' /CONFIG_TCG/d' \
11 -e '/CONFIG_USER_ONLY/d' \
d31b8404 12 -e '/CONFIG_SOFTMMU/d' \
eed56e9a
PB
13 -e '/^#define / {' \
14 -e 's///' \
15 -e 's/ .*//' \
16 -e 's/^/#pragma GCC poison /p' \
1248a159 17 -e '}' "$@" | sort -u