Upstream: https://gitlab.com/qemu-project/qemu.git Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
20 lines
491 B
Bash
Executable File
20 lines
491 B
Bash
Executable File
#! /bin/sh
|
|
|
|
if test $# = 0; then
|
|
exit 0
|
|
fi
|
|
|
|
# Create list of config switches that should be poisoned in common code,
|
|
# but filter out several which are handled manually.
|
|
exec sed -n \
|
|
-e' /CONFIG_TCG/d' \
|
|
-e '/CONFIG_USER_ONLY/d' \
|
|
-e '/CONFIG_SOFTMMU/d' \
|
|
-e '/TARGET_NOT_USING_LEGACY_LDST_PHYS_API/d' \
|
|
-e '/TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API/d' \
|
|
-e '/^#define / {' \
|
|
-e 's///' \
|
|
-e 's/ .*//' \
|
|
-e 's/^/#pragma GCC poison /p' \
|
|
-e '}' "$@" | sort -u
|