Commit f4c3b83b authored by Masahiro Yamada's avatar Masahiro Yamada

kbuild: simplify GCC_PLUGINS enablement in dummy-tools/gcc

With commit 1e860048 ("gcc-plugins: simplify GCC plugin-dev
capability test") applied, this hunk can be way simplified because
now scripts/gcc-plugins/Kconfig only checks plugin-version.h
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 1cabe74f
...@@ -75,16 +75,12 @@ if arg_contain -S "$@"; then ...@@ -75,16 +75,12 @@ if arg_contain -S "$@"; then
fi fi
fi fi
# For scripts/gcc-plugin.sh # To set GCC_PLUGINS
if arg_contain -print-file-name=plugin "$@"; then if arg_contain -print-file-name=plugin "$@"; then
plugin_dir=$(mktemp -d) plugin_dir=$(mktemp -d)
sed -n 's/.*#include "\(.*\)"/\1/p' $(dirname $0)/../gcc-plugins/gcc-common.h | mkdir -p $plugin_dir/include
while read header touch $plugin_dir/include/plugin-version.h
do
mkdir -p $plugin_dir/include/$(dirname $header)
touch $plugin_dir/include/$header
done
echo $plugin_dir echo $plugin_dir
exit 0 exit 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment