kbuild: dummy-tools: fix inverted tests for gcc
authorJiri Slaby <jslaby@suse.cz>
Wed, 3 Mar 2021 10:43:14 +0000 (11:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Mar 2021 12:31:50 +0000 (14:31 +0200)
commitfeaa91193ad38d1cdeea0fa5e1ec1eeaf1fc9a36
tree7ca29128397c12eb7dbc10a6eb292cf85615cda9
parentede8be3ae078113fb536159a548890ecc39fbc87
kbuild: dummy-tools: fix inverted tests for gcc

[ Upstream commit b3d9fc1436808a4ef9927e558b3415e728e710c5 ]

There is a test in Kconfig which takes inverted value of a compiler
check:
* config CC_HAS_INT128
        def_bool !$(cc-option,$(m64-flag) -D__SIZEOF_INT128__=0)

This results in CC_HAS_INT128 not being in super-config generated by
dummy-tools. So take this into account in the gcc script.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/dummy-tools/gcc