2
0

make-config-poison.sh 387 B

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