Projet_SETI_RISC-V/riscv-gnu-toolchain/qemu/scripts/make-config-poison.sh
2023-03-06 14:48:14 +01:00

16 lines
367 B
Bash
Executable file

#! /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' \
-e '}' "$@"