Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp86196imm; Tue, 12 Jun 2018 19:04:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJr8aTXn2miqXxiOVmZTWQW6p1q84oPGixA9DexYRZZamsyfloRMJi1BWIJNcsrEM1Sw3tC X-Received: by 2002:a63:bc0a:: with SMTP id q10-v6mr2406662pge.70.1528855489510; Tue, 12 Jun 2018 19:04:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528855489; cv=none; d=google.com; s=arc-20160816; b=erNY/GRWjyhBbEqorF+roSlmq06s/7znutkilK6oE66MDCHRuinEIB59CfDReADgty TgtY/uoS3x/8UvdfkrUvgVyXL1OzrSP9x9U4oXUt+bgusS/vh38k3DtNY0+JvBqOE36Z T7r3rKCvjH3iyOCqz0Uje8QTAUCOSEGgJLdw7XB+UEfyFAcOzQh8FXl0uxqNGLZOUP1O ebFT+aKDIJAgWn1OPB2MKHFu+E34sw+GK9fOeVkQRbm/WiIhSv2VfpN7pqMAWlYBB3jA ZU+2mLTnc/jeZ8rBtoHCnrhlJEQ/PYijtC4AQvuYoI2jG0flWJaKSKBmIZnMNrK7TR8G rnIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=h75hTC0L064IJ0rxB6g18x+4cTB8uFbcIdADIo7QYHo=; b=NA8WJ5D4yd1oKwNFOKeClh5grxvqVUdAf6irm5DFIEcpaMUJ+9dp0ovSwq0a6TLSL8 zlwUln5qzcsfbizUlmcWm9cQwvLVBn60JWEWjLxTRphph9tnQxLwgnlcK/XhEzs2HI8N eQjqWlkl1X/M6shksjIAhT8qpkT/CCb0RRrC/AgMJLGYW9WRVaNMxBIgHTo/11qrnjnx WB41xLXkXcH+T/YQhRZekt9tNKM6rOf+hlVsWlVYhhKjLVCgF8DHqYWSGGSdqZBiUJTa phOLjdWbRz25jP+aDigRzI4b9KaoYM6YRWz/P3QIYpH7ltq7+Me/qBK+LAMxBYSq9bTn /VSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=oqAyWu60; 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 o1-v6si1499555plb.279.2018.06.12.19.04.34; Tue, 12 Jun 2018 19:04:49 -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=oqAyWu60; 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 S1754327AbeFMCEL (ORCPT + 99 others); Tue, 12 Jun 2018 22:04:11 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:52776 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753517AbeFMCEJ (ORCPT ); Tue, 12 Jun 2018 22:04:09 -0400 Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com [209.85.213.46]) (authenticated) by conssluserg-06.nifty.com with ESMTP id w5D23nih004342; Wed, 13 Jun 2018 11:03:50 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com w5D23nih004342 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1528855430; bh=h75hTC0L064IJ0rxB6g18x+4cTB8uFbcIdADIo7QYHo=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=oqAyWu60yiOsbwDLQWu2b56AfNRNklnXmPMhWYQiKmJtfce2eFDf9czsNDNuYv176 67zCDTSDMJUDRL2cwD749YCXlWsG001F5ubqbErfIYRZSbW85F0iJ3BuGjVOJBjFQu 9frn4TNiHkvlqaoek2CFYRrMVDlLA5Nq5HlH4/nN0F3/TsosiTGm6XKhDi8xdIcKnn kMuYHeGiKkejZBhge9Tk9PSjDPiK0d4d/YRsl5Ida6bQekCzHFbUCg0wU0LpSirj6u mtHNy2QYp0dF7Y2aMzWodf9ECQRMm3t4Vatq8wN7zOaEG+y+XdA5l7auh838vZk1xO lQC1DOLYCzf6Q== X-Nifty-SrcIP: [209.85.213.46] Received: by mail-vk0-f46.google.com with SMTP id o17-v6so596707vka.2; Tue, 12 Jun 2018 19:03:49 -0700 (PDT) X-Gm-Message-State: APt69E2BMBJy2U6UA1GjETx5rOWfJG4Bg0GT73T7Wm7ZYnJB7pegT/gS ytbDzsJdlNebvW1ot+bFI7v5a99nY80GTkL3FtY= X-Received: by 2002:a1f:ba4a:: with SMTP id k71-v6mr1866446vkf.11.1528855428670; Tue, 12 Jun 2018 19:03:48 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:20ab:0:0:0:0:0 with HTTP; Tue, 12 Jun 2018 19:03:08 -0700 (PDT) In-Reply-To: <20180612003224.3658-2-labbott@redhat.com> References: <20180612003224.3658-1-labbott@redhat.com> <20180612003224.3658-2-labbott@redhat.com> From: Masahiro Yamada Date: Wed, 13 Jun 2018 11:03:08 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv4 1/3] scripts: Preprocess module-common.lds To: Laura Abbott Cc: Andy Lutomirski , Mark Wielaard , "H . J . Lu" , Linus Torvalds , X86 ML , Linux Kernel Mailing List , Nick Clifton , Cary Coutant , Linux Kbuild mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-06-12 9:32 GMT+09:00 Laura Abbott : > > In preparation for some upcoming work, allow module-common.lds > to be run through the preprocessor. > > Signed-off-by: Laura Abbott > --- > scripts/.gitignore | 1 + > scripts/Makefile | 2 +- > scripts/{module-common.lds => module-common.lds.S} | 0 > 3 files changed, 2 insertions(+), 1 deletion(-) > rename scripts/{module-common.lds => module-common.lds.S} (100%) > > diff --git a/scripts/.gitignore b/scripts/.gitignore > index 0442c06eefcb..afd1de57d9c6 100644 > --- a/scripts/.gitignore > +++ b/scripts/.gitignore > @@ -13,3 +13,4 @@ asn1_compiler > extract-cert > sign-file > insert-sys-cert > +module-common.lds > diff --git a/scripts/Makefile b/scripts/Makefile > index 25ab143cbe14..631d9d1a71e4 100644 > --- a/scripts/Makefile > +++ b/scripts/Makefile > @@ -25,7 +25,7 @@ HOSTCFLAGS_asn1_compiler.o = -I$(srctree)/include > HOSTLOADLIBES_sign-file = -lcrypto > HOSTLOADLIBES_extract-cert = -lcrypto > > -always := $(hostprogs-y) $(hostprogs-m) > +always := $(hostprogs-y) $(hostprogs-m) module-common.lds You do not need to generate module-common.lds all the time. It is necessary only when the module feature is enabled. You can do like this: extra-$(CONFIG_MODULES) += module-common.lds -- Best Regards Masahiro Yamada