From patchwork Thu Aug 23 23:20:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 144979 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp660299ljw; Thu, 23 Aug 2018 16:20:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaFJAwLghNytdgAJfV8EUq60Q1JjAo61Q/YKKl/AeNr4rxMn/gDfyzrz7lsgdQWiUgjjhzJ X-Received: by 2002:a62:2c91:: with SMTP id s139-v6mr2279458pfs.3.1535066455884; Thu, 23 Aug 2018 16:20:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535066455; cv=none; d=google.com; s=arc-20160816; b=X4mnoiMcEoo6ZtVlzZS4Z7epMHKNwKciCt23VSJrvSPqN23AJDWhemaz9puof/VWPV h6wyHYD/x4BrsKetK8znbGvnxy5Xo/BzziBe27Q81lW0sdqKh2+jOrC39bU6YjOCDc85 iT8GaikUuWlAPp0fLjeXY9EiUnMLcZEFy0N2D1qrKff2ryhrRX7c9fb7Zt+2HRC6WJgH Eltf1gdSS2991V9yb7kMRY4kiZX9yeBTg2CsbtxogkwgJ86FWS3mj5F4oWhQUwFbhbzq aUS4Azh8c1Sq8/U6ZCBd2d1N91nvAPZwOr9ur6mMcmrpwyi+SFHtnito1ihot/zMWoOW 5zKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=3iWWddn5RngUSQ5ZqlvQcN+Ijg9OJuMFOeb8XxVzA1A=; b=BT0H3T5GzPQqgeeOrec3Pz5h+4mUfs5oXBY3M7RvQLQI0rr54dAX8cdabr6qiMEvGJ VSQ0LSv4Ig6+BMcbluD2KSOt5LGd3YN5AXsCboJRqSLbK4LoRdHVRTGs0Gga14WQlJ4e A5WmF6wY8KnPGoDxR1j+89sL8209eHxvk4d77YDp7s1szKyHVB+sj0cYrSYc5gUMKTEk mB9QG5dmMVB8VX/hUnJCMMS7y9nVg8BdABlsXInBiDZSU4uNJ5+h72SK8nlsmSm2u1Wo 3V5bcDeqw6EApvw+MAees26HcxzBWSt3WJzq7r9tj69r9gXLgbdkW1P1Rl6DbugOfRnH vWbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=e28hnICl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m86-v6si6152758pfj.48.2018.08.23.16.20.55; Thu, 23 Aug 2018 16:20:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=e28hnICl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726675AbeHXCwt (ORCPT + 32 others); Thu, 23 Aug 2018 22:52:49 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:53324 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726243AbeHXCwt (ORCPT ); Thu, 23 Aug 2018 22:52:49 -0400 Received: from grover.tkatk1.zaq.ne.jp (zaqdadce369.zaq.ne.jp [218.220.227.105]) (authenticated) by conuserg-09.nifty.com with ESMTP id w7NNKenU013265; Fri, 24 Aug 2018 08:20:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com w7NNKenU013265 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1535066441; bh=3iWWddn5RngUSQ5ZqlvQcN+Ijg9OJuMFOeb8XxVzA1A=; h=From:To:Cc:Subject:Date:From; b=e28hnIClPhQtsFVs9bzqv+cD7W+VHsHOdIyGXMCVVhTIU0Zpom8HXK2y9lWokMma4 JdJCfVrOQ3Ybpa74idX7ficABKdbwGdX8Q/mBxHXe3yZ8uRqUekx8xVEMKnOYXGiPq k/37+HD8+3ah6oJ6PvL3+Fk7HlXV8vQ3+scLD/K/HudPWyV5bhLcpvjEwMmQd9dfAQ 9BUi58E51EbZs8/o/80+hOjdU1eXKuvsZqbO98gkYK/RAh8hnMhyCn7gvv+h4eBLM3 t4pIewwej5ucyJlvi521j2uClD2K4PJouPQW4cTcgzoHkqExyVevmoh6Rq3MUCmCsA wl/tXEjXjo9Jg== X-Nifty-SrcIP: [218.220.227.105] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Michal Simek , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH v3 1/2] kbuild: pass LDFLAGS to recordmcount.pl Date: Fri, 24 Aug 2018 08:20:38 +0900 Message-Id: <1535066439-11259-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit 0fbe9a245c60 ("microblaze: add endianness options to LDFLAGS instead of LD"), you cannot build the kernel for microblaze with CONFIG_DYNAMIC_FTRACE. Fixes: 0fbe9a245c60 ("microblaze: add endianness options to LDFLAGS instead of LD") Signed-off-by: Masahiro Yamada --- Changes in v3: - New patch Changes in v2: None scripts/Makefile.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 93b8e24..f5d7612 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -220,7 +220,7 @@ sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ "$(if $(CONFIG_64BIT),64,32)" \ "$(OBJDUMP)" "$(OBJCOPY)" "$(CC) $(KBUILD_CFLAGS)" \ - "$(LD)" "$(NM)" "$(RM)" "$(MV)" \ + "$(LD) $(LDFLAGS)" "$(NM)" "$(RM)" "$(MV)" \ "$(if $(part-of-module),1,0)" "$(@)"; recordmcount_source := $(srctree)/scripts/recordmcount.pl endif # BUILD_C_RECORDMCOUNT