From patchwork Tue Aug 29 10:51:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 13368813 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0C4CDC83F14 for ; Tue, 29 Aug 2023 10:51:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229541AbjH2KvP (ORCPT ); Tue, 29 Aug 2023 06:51:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229967AbjH2KvP (ORCPT ); Tue, 29 Aug 2023 06:51:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2399EAC; Tue, 29 Aug 2023 03:51:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B6F8960BC7; Tue, 29 Aug 2023 10:51:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A086DC433C8; Tue, 29 Aug 2023 10:51:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693306271; bh=9EMLlwBP3d+/Jjp4Z6iGtFHMhVlj6enF1/kkKQkoQSo=; h=From:To:Cc:Subject:Date:From; b=ABM/A6fkCN5moCa3/sl0bh5As6Sc71QwYbelxi5371wbNV42TYCEFSglv9ULjSCY6 FTGFPRz8kTDfRf3YcOz7emT5r89lkC46Ao04PsZjm9kpVQp9FzsFpOCSzzC20SdDxV YW3dY3Un9g1hasjd+5VMpJarr4k5kJpm9bxko/zHUMRVHlk0IZ3WmKjoq2mPS6yAsN xbjtdqJE8k+QDvL/uZHNiesSlQlgsacvC8z3OrSdM6+j0CwG9jzV0itZhLO6dK77zm ncCkK10E91n6I7l2eURHLahI1de8UzXnK+56ML11xyhv4fww+lzIRO3wQLUxBs1npP yp+rCqRC1ioRg== From: "Jiri Slaby (SUSE)" To: masahiroy@kernel.org Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , "Naveen N . Rao" , Christophe Leroy , Nicholas Piggin , Michael Ellerman , Michal Kubecek Subject: [PATCH] kbuild: dummy-tools: support make MPROFILE_KERNEL checks work on BE Date: Tue, 29 Aug 2023 12:51:06 +0200 Message-ID: <20230829105106.1277-1-jirislaby@kernel.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org From: Jiri Slaby 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. Signed-off-by: Jiri Slaby Cc: Masahiro Yamada Cc: Nathan Chancellor Cc: Nick Desaulniers Cc: Nicolas Schier Cc: Naveen N. Rao Cc: Christophe Leroy Cc: Nicholas Piggin Cc: Michael Ellerman Cc: Michal Kubecek --- scripts/dummy-tools/gcc | 3 +-- 1 file changed, 1 insertion(+), 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