[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZJSc2QFJq+KIUR+E@localhost>
Date: Thu, 22 Jun 2023 12:11:21 -0700
From: Josh Triplett <josh@...htriplett.org>
To: Masahiro Yamada <masahiroy@...nel.org>
Cc: linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Nicolas Schier <nicolas@...sle.eu>,
Ben Hutchings <ben@...adent.org.uk>,
linux-snps-arc@...ts.infradead.org
Subject: Re: [PATCH] kbuild: make modules_install copy
modules.builtin(.modinfo)
On Thu, Jun 15, 2023 at 08:17:43PM +0900, Masahiro Yamada wrote:
> Josh Triplett reports that initramfs-tools needs modules.builtin and
> modules.builtin.modinfo to create a working initramfs for a non-modular
> kernel.
>
> If this is a general tooling issue not limited to Debian, I think it
> makes sense to change modules_install.
>
> This commit changes the targets as follows when CONFIG_MODULES=n.
>
> In-tree builds:
> make modules -> no-op
> make modules_install -> install modules.builtin(.modinfo)
>
> External module builds:
> make modules -> show error message like before
> make modules_install -> show error message like before
>
> Link: https://lore.kernel.org/lkml/36a4014c73a52af27d930d3ca31d362b60f4461c.1686356364.git.josh@joshtriplett.org/
> Reported-by: Josh Triplett <josh@...htriplett.org>
> Signed-off-by: Masahiro Yamada <masahiroy@...nel.org>
Reviewed-by: Josh Triplett <josh@...htriplett.org>
Tested-by: Josh Triplett <josh@...htriplett.org>
I'll send a followup patch that makes the Debian packaging script use
`make modules_install` unconditionally.
Powered by blists - more mailing lists