History

kbuild: dummy-tools: make MPROFILE_KERNEL checks work on BE

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.

Jiri Slaby committed 3 years ago

Commit bfb41e41 parent a3c6bfb1 file · +1 −2Browse files

Unified · Split

scripts/dummy-tools/gcc+1−2
@@ -85,8 +85,7 @@ if arg_contain -S "$@"; then · 84 unmodified lines
8585 fi
8686
8787 # For arch/powerpc/tools/gcc-check-mprofile-kernel.sh
88− if arg_contain -m64 "$@" && arg_contain -mlittle-endian "$@" &&
89− arg_contain -mprofile-kernel "$@"; then
88+ if arg_contain -m64 "$@" && arg_contain -mprofile-kernel "$@"; then
9089 if ! test -t 0 && ! grep -q notrace; then
9190 echo "_mcount"
9291 fi