Commit aec6c60a01d3 ("kbuild: check the minimum compiler version in Kconfig") changed how the script detects the compiler version. Get 'make CROSS_COMPILE=scripts/dummy-tools/' back working again.
Unified · Split
| @@ -57,9 +57,9 @@ if arg_contain --version "$@"; then · 56 unmodified lines | ||
| 57 | 57 | fi |
| 58 | 58 | |
| 59 | 59 | if arg_contain -E "$@"; then |
| 60 | − # For scripts/gcc-version.sh; This emulates GCC 20.0.0 | |
| 60 | + # For scripts/cc-version.sh; This emulates GCC 20.0.0 | |
| 61 | 61 | if arg_contain - "$@"; then |
| 62 | − sed 's/^__GNUC__$/20/; s/^__GNUC_MINOR__$/0/; s/^__GNUC_PATCHLEVEL__$/0/' | |
| 62 | + sed -n '/^GCC/{s/__GNUC__/20/; s/__GNUC_MINOR__/0/; s/__GNUC_PATCHLEVEL__/0/; p;}' | |
| 63 | 63 | exit 0 |
| 64 | 64 | else |
| 65 | 65 | echo "no input files" >&2 |