From patchwork Fri Feb 23 04:56:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 129329 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp189542lja; Thu, 22 Feb 2018 20:58:47 -0800 (PST) X-Google-Smtp-Source: AH8x224yV2EOX68lFhcteqwxyfXm7evgiYIv2JhzhJhniEHjqDKx9bDiQbGVEDS4+PhA6/sAhxa0 X-Received: by 10.98.155.93 with SMTP id r90mr487541pfd.132.1519361927654; Thu, 22 Feb 2018 20:58:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519361927; cv=none; d=google.com; s=arc-20160816; b=nRd2BLwSE6hAjn8ArUc8BDBJEcvRcZGnTlcQ9rdLdJ5BAJARPD9QUojRj4Ma6YnjG8 QKah97R2i6b/nlVXTVtz59a+MQ+c1MbHBA9HnFKLj7KFVKNQo+6WjLAsZKmaPdbQ5OUD 8vJe6YXu5RtWwOkBIQjYzaybS34jltaojBIsJC7Zdq69x2R9lpd9ilx/p0b7BKwxOAhG JhXuwjf2jjeVh3GrvJYp0uoI4z2WXUtfeMn0LNCwgcNuzmWuHARrRA8FdB1uYZ1v/+sy EYcAvqHWGipEHZbiAvgqEN4BI8W30eU69VZQffFZSHqcPpC+cPh+bG39ifIVtmET+ti4 nhng== 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=5YlP5jLnIeyIU+Oj4e0c6QE5BnNR+rJxhBajjL2ftfE=; b=tlUUf3VT4x+OqpODF/0N9hpm+8yf+DofYKyIVMOUVnk6eLbnr6TOCruci8w8THPkeO v52xUGO4wB1Dg/ggkDjkUrTaFxm2cGkJ3zXaTqddZaVNeZzGXcmX5qErT2njEUVQkQ75 cz2jSdCQppBVFy4rbjdUBt8doueDUkv/Hx2L42slTOTeoURhWgRfCEKWZjfCedCPgsGA C/ddw0fzln0nUYIHz/CFU1rj3wnHl6YeOhkYWmaQZnuJJJudSuvyZfXOTf0mO4QGBwkN GRgfhwu2z8qIhCj0+WfihRdGvlEHg7N8nYgOosSUF96LJDUQNlI97MXNdaThew+VREAc gn3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Je3idMz4; 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 r11si1018529pgn.147.2018.02.22.20.58.46; Thu, 22 Feb 2018 20:58:47 -0800 (PST) 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=Je3idMz4; 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 S1751447AbeBWE63 (ORCPT + 28 others); Thu, 22 Feb 2018 23:58:29 -0500 Received: from conuserg-12.nifty.com ([210.131.2.79]:26215 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751296AbeBWE61 (ORCPT ); Thu, 22 Feb 2018 23:58:27 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id w1N4uwWA024939; Fri, 23 Feb 2018 13:56:59 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com w1N4uwWA024939 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1519361819; bh=5YlP5jLnIeyIU+Oj4e0c6QE5BnNR+rJxhBajjL2ftfE=; h=From:To:Cc:Subject:Date:From; b=Je3idMz4Mk5WBe4iKQ6sQaQw1snLAfBFZdGq/aKdLPxvZGSw4MEk1FI2SpbdnzFtq 0F5SFvLhzEaZGY/vnksmteXQX8Dx9py3F3D0LbPGld7pf82eymRIRfeAGq20OapB8O 2NUBPyTUlFLlhlX2X5vUOLdzpFcBVMwKlTZuN12QJalzRFkEYXOQO8AX7kp52u+BV4 mkeNz+0ALRsLSN35LXlnlKarUxr6h6e9KDDEaRllPxTjTFLqra4fHSdq69hHlG9PFj VZgSiyfQFR9xx5BZjXiIIEw04wJazSmYlZ0/KGq7KrSjqNaDfhTa6U3XWLVSzg1DzT GxTiNy3NYHqnA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Arnd Bergmann , Sam Ravnborg , Nick Desaulniers , Matthias Kaehlcke , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] kbuild: test --build-id linker flag by ld-option instead of cc-ldoption Date: Fri, 23 Feb 2018 13:56:52 +0900 Message-Id: <1519361813-8553-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 '--build-id' is passed to $(LD), so it should be tested by 'ld-option'. This seems a kind of misconversion when ld-option was renamed to cc-ldoption. Commit f86fd3066052 ("kbuild: rename ld-option to cc-ldoption") renamed all instances of 'ld-option' to 'cc-ldoption'. Then, commit 691ef3e7fdc1 ("kbuild: introduce ld-option") re-added 'ld-option' as a new implementation. Signed-off-by: Masahiro Yamada --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.7.4 diff --git a/Makefile b/Makefile index 4f295a2..1ed2a15 100644 --- a/Makefile +++ b/Makefile @@ -866,8 +866,7 @@ KBUILD_AFLAGS += $(ARCH_AFLAGS) $(KAFLAGS) KBUILD_CFLAGS += $(ARCH_CFLAGS) $(KCFLAGS) # Use --build-id when available. -LDFLAGS_BUILD_ID := $(patsubst -Wl$(comma)%,%,\ - $(call cc-ldoption, -Wl$(comma)--build-id,)) +LDFLAGS_BUILD_ID := $(call ld-option, --build-id) KBUILD_LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID) LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID)