[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZwljYE6Ck4Uu-aUI@smile.fi.intel.com>
Date: Fri, 11 Oct 2024 20:41:52 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
Tero Kristo <tero.kristo@...ux.intel.com>,
platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Hans de Goede <hdegoede@...hat.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
David Gow <davidgow@...gle.com>,
Masahiro Yamada <masahiroy@...nel.org>
Subject: Re: [rfc, PATCH v1 1/1] platform/x86: intel: Add 'intel' prefix to
the modules automatically
On Fri, Oct 11, 2024 at 08:24:09PM +0300, Andy Shevchenko wrote:
> Rework Makefile to add 'intel' prefix to the modules automatically.
> This removes a lot of boilerplate code in it and also makes robust
> against mistypos in the prefix.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
> ---
>
> Send as RFC because TBH I rather want to have something like this to be
> available on the level of Kbuild for any of the subdirectories in
> question. Also I haven't done any comprehensive build tests on this,
> let's see what CIs think about this...
(FWIW, I already fixed a few mistakes locally)
To elaborate more, what I want to achieve.
Assume we have
obj-$(OPTION) = bar/
in the Kconfig and let's say bar/ contains
obj-$(X) += zx.o
obj-$(Y) += zy.o
What I want is to have something like
bar-prefix = baz
prefixed-obj-$(OPTION) = bar/
that results *automatically* _if_ I wrote originally something like
baz-zx-y := zx.o
obj-$(X) += baz-zx.o
baz-zy-y := zy.o
obj-$(Y) += baz-zy.o
without actually modifying the Makefile in bar/.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists