2021-11-10 11:01:26 +01:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
if test $# = 0; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2023-04-30 09:54:23 +02:00
|
|
|
# Create list of config switches that should be poisoned in common code,
|
|
|
|
# but filter out several which are handled manually.
|
2021-11-10 11:01:26 +01:00
|
|
|
exec sed -n \
|
|
|
|
-e' /CONFIG_TCG/d' \
|
|
|
|
-e '/CONFIG_USER_ONLY/d' \
|
2023-04-30 09:54:23 +02:00
|
|
|
-e '/CONFIG_SOFTMMU/d' \
|
2021-11-10 11:01:26 +01:00
|
|
|
-e '/^#define / {' \
|
|
|
|
-e 's///' \
|
|
|
|
-e 's/ .*//' \
|
|
|
|
-e 's/^/#pragma GCC poison /p' \
|
2023-02-06 11:20:37 +01:00
|
|
|
-e '}' "$@" | sort -u
|