1*eed56e9aSPaolo Bonzini#! /bin/sh 2*eed56e9aSPaolo Bonzini 3*eed56e9aSPaolo Bonziniif test $# = 0; then 4*eed56e9aSPaolo Bonzini exit 0 5*eed56e9aSPaolo Bonzinifi 6*eed56e9aSPaolo Bonzini 7*eed56e9aSPaolo Bonzini# Create list of config switches that should be poisoned in common code... 8*eed56e9aSPaolo Bonzini# but filter out CONFIG_TCG and CONFIG_USER_ONLY which are special. 9*eed56e9aSPaolo Bonziniexec sed -n \ 10*eed56e9aSPaolo Bonzini -e' /CONFIG_TCG/d' \ 11*eed56e9aSPaolo Bonzini -e '/CONFIG_USER_ONLY/d' \ 12*eed56e9aSPaolo Bonzini -e '/^#define / {' \ 13*eed56e9aSPaolo Bonzini -e 's///' \ 14*eed56e9aSPaolo Bonzini -e 's/ .*//' \ 15*eed56e9aSPaolo Bonzini -e 's/^/#pragma GCC poison /p' \ 16*eed56e9aSPaolo Bonzini -e '}' "$@" 17