| 1 | #! /bin/sh |
| 2 | |
| 3 | if test $# = 0; then |
| 4 | exit 0 |
| 5 | fi |
| 6 | |
| 7 | # Create list of config switches that should be poisoned in common code, |
| 8 | # but filter out several which are handled manually. |
| 9 | exec sed -n \ |
| 10 | -e' /CONFIG_TCG/d' \ |
| 11 | -e '/CONFIG_USER_ONLY/d' \ |
| 12 | -e '/CONFIG_SOFTMMU/d' \ |
| 13 | -e '/TARGET_NOT_USING_LEGACY_LDST_PHYS_API/d' \ |
| 14 | -e '/TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API/d' \ |
| 15 | -e '/^#define / {' \ |
| 16 | -e 's///' \ |
| 17 | -e 's/ .*//' \ |
| 18 | -e 's/^/#pragma GCC poison /p' \ |
| 19 | -e '}' "$@" | sort -u |