make-config-poison.sh 377 B

12345678910111213141516
  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 CONFIG_TCG and CONFIG_USER_ONLY which are special.
  7. exec sed -n \
  8. -e' /CONFIG_TCG/d' \
  9. -e '/CONFIG_USER_ONLY/d' \
  10. -e '/^#define / {' \
  11. -e 's///' \
  12. -e 's/ .*//' \
  13. -e 's/^/#pragma GCC poison /p' \
  14. -e '}' "$@" | sort -u