Skip to content

Commit bfb41e4

Browse files
Jiri Slabymasahir0y
Jiri Slaby
authored andcommitted
kbuild: dummy-tools: make MPROFILE_KERNEL checks work on BE
Commit 2eab791 ("kbuild: dummy-tools: support MPROFILE_KERNEL checks for ppc") added support for ppc64le's checks for -mprofile-kernel. Now, commit aec0ba7 ("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: aec0ba7 ("powerpc/64: Use -mprofile-kernel for big endian ELFv2 kernels") Signed-off-by: Jiri Slaby <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent a3c6bfb commit bfb41e4

File tree

1 file changed

+1
-2
lines changed
  • scripts/dummy-tools

1 file changed

+1
-2
lines changed

scripts/dummy-tools/gcc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ if arg_contain -S "$@"; then
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

0 commit comments

Comments
 (0)