[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b102d460-adbe-4396-ac1b-ad2f2244061c@infradead.org>
Date: Tue, 2 Apr 2024 19:10:05 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: Valerii Chernous <vchernou@...co.com>,
Masahiro Yamada <masahiroy@...nel.org>, Nathan Chancellor
<nathan@...nel.org>, Nicolas Schier <nicolas@...sle.eu>
Cc: xe-linux-external@...co.com, linux-kbuild@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Add MO(mod objs) variable to process ext modules with
subdirs
Hi,
On 4/2/24 8:30 AM, Valerii Chernous wrote:
> The change allow to build external modules with nested makefiles.
> With current unofficial way(using "src" variable) it is posible to build
possible
> external(out of tree) kernel module with separating source and build
> artifacts dirs but with nested makefiles it doesn't work properly.
> Build system trap to recursion inside makefiles, articafts output dir
artifacts
> path grow with each iteration until exceed max path len and build failed
> Providing "MO" variable and using "override" directive with declaring
> "src" variable solve the problem
> Usage example:
> make -C KERNEL_SOURCE_TREE MO=BUILD_OUT_DIR M=EXT_MOD_SRC_DIR modules
>
> Cc: xe-linux-external@...co.com
> Cc: Valerii Chernous <vchernou@...co.com>
> Signed-off-by: Valerii Chernous <vchernou@...co.com>
> ---
> Makefile | 17 +++++++++++++++++
> scripts/Makefile.build | 7 +++++++
> 2 files changed, 24 insertions(+)
>
If this code is going to be merged, there should also be a Documentation
update to Documentation/kbuild/{kbuild.rst,modules.rst}.
Thanks.
--
#Randy
Powered by blists - more mailing lists