From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Tero Kristo" <tero.kristo@linux.intel.com>,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: Hans de Goede <hdegoede@redhat.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
David Gow <davidgow@google.com>,
Masahiro Yamada <masahiroy@kernel.org>
Subject: Re: [rfc, PATCH v1 1/1] platform/x86: intel: Add 'intel' prefix to the modules automatically
Date: Fri, 11 Oct 2024 20:41:52 +0300 [thread overview]
Message-ID: <ZwljYE6Ck4Uu-aUI@smile.fi.intel.com> (raw)
In-Reply-To: <20241011172531.3407093-1-andriy.shevchenko@linux.intel.com>
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@linux.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
next prev parent reply other threads:[~2024-10-11 17:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-11 17:24 [rfc, PATCH v1 1/1] platform/x86: intel: Add 'intel' prefix to the modules automatically Andy Shevchenko
2024-10-11 17:41 ` Andy Shevchenko [this message]
2024-10-15 9:05 ` Ilpo Järvinen
2024-10-15 11:01 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZwljYE6Ck4Uu-aUI@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=davidgow@google.com \
--cc=geert@linux-m68k.org \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=tero.kristo@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox