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