[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNASJw4JjHD3RSmyBExvw+v+GE916RQiSZTQA+U-d4FXt1w@mail.gmail.com>
Date: Wed, 13 Jun 2018 11:03:08 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Laura Abbott <labbott@...hat.com>
Cc: Andy Lutomirski <luto@...nel.org>,
Mark Wielaard <mjw@...oraproject.org>,
"H . J . Lu" <hjl.tools@...il.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
X86 ML <x86@...nel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Nick Clifton <nickc@...hat.com>,
Cary Coutant <ccoutant@...il.com>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>
Subject: Re: [PATCHv4 1/3] scripts: Preprocess module-common.lds
2018-06-12 9:32 GMT+09:00 Laura Abbott <labbott@...hat.com>:
>
> In preparation for some upcoming work, allow module-common.lds
> to be run through the preprocessor.
>
> Signed-off-by: Laura Abbott <labbott@...hat.com>
> ---
> 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
Powered by blists - more mailing lists