Commit 2eab791f940b ("kbuild: dummy-tools: support MPROFILE_KERNEL checks for ppc") added support for ppc64le's checks for -mprofile-kernel. Now, commit aec0ba7472a7 ("powerpc/64: Use -mprofile-kernel for big endian ELFv2 kernels") added support for -mprofile-kernel even on big-endian ppc. So lift the check in gcc-check-mprofile-kernel.sh to support big-endian too.
Unified · Split
| @@ -85,8 +85,7 @@ if arg_contain -S "$@"; then · 84 unmodified lines | |||
| 85 | fi | 85 | fi |
| 86 | 86 | ||
| 87 | # For arch/powerpc/tools/gcc-check-mprofile-kernel.sh | 87 | # For arch/powerpc/tools/gcc-check-mprofile-kernel.sh |
| 88 | if arg_contain -m64 "$@" && arg_contain -mlittle-endian "$@" && | 88 | if arg_contain -m64 "$@" && arg_contain -mprofile-kernel "$@"; then |
| 89 | arg_contain -mprofile-kernel "$@"; then | ||
| 90 | if ! test -t 0 && ! grep -q notrace; then | 89 | if ! test -t 0 && ! grep -q notrace; then |
| 91 | echo "_mcount" | 90 | echo "_mcount" |
| 92 | fi | 91 | fi |