diff options
author | Jiri Slaby <jslaby@suse.cz> | 2023-08-29 12:51:06 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-09-01 09:38:04 +0200 |
commit | bfb41e46d0b040ae83c1c4a50292298208b10f73 (patch) | |
tree | 2365e44f1dbf14e576e5fc7ae098179677803fe9 /scripts/dummy-tools/gcc | |
parent | Documentation/llvm: refresh docs (diff) | |
download | linux-bfb41e46d0b040ae83c1c4a50292298208b10f73.tar.xz linux-bfb41e46d0b040ae83c1c4a50292298208b10f73.zip |
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.
Fixes: aec0ba7472a7 ("powerpc/64: Use -mprofile-kernel for big endian ELFv2 kernels")
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/dummy-tools/gcc')
-rwxr-xr-x | scripts/dummy-tools/gcc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/dummy-tools/gcc b/scripts/dummy-tools/gcc index 1db1889f6d81..07f6dc4c5cf6 100755 --- a/scripts/dummy-tools/gcc +++ b/scripts/dummy-tools/gcc @@ -85,8 +85,7 @@ if arg_contain -S "$@"; then fi # For arch/powerpc/tools/gcc-check-mprofile-kernel.sh - if arg_contain -m64 "$@" && arg_contain -mlittle-endian "$@" && - arg_contain -mprofile-kernel "$@"; then + if arg_contain -m64 "$@" && arg_contain -mprofile-kernel "$@"; then if ! test -t 0 && ! grep -q notrace; then echo "_mcount" fi |