Linux wireless drivers development
 help / color / mirror / Atom feed
From: Maxin John <maxin.john@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH v2] iw: Makefile: support out-of-tree builds
Date: Wed, 6 May 2026 23:23:07 +0300	[thread overview]
Message-ID: <afujK_-G8ty4LnBD@Thor.home> (raw)
In-Reply-To: <6d1b6079bd0c0318e4311bc41a35fc2169a0b4e8.camel@sipsolutions.net>

Hi,

On Tue, May 05, 2026 at 12:35:16PM +0200, Johannes Berg wrote:
> On Thu, 2026-04-30 at 00:08 +0300, Maxin John wrote:
> 
> 
> >   - Add support for kernel-style out-of-tree builds using:
> >       make O=<builddir>
> >   - Make SRCDIR computation whitespace-safe by switching to realpath
> >   - Remove ambiguous use of "-I." from CPPFLAGS
> 
> Thanks for fixing that.
> 
> Right now I don't really see _why_ it doesn't work, but it seems
> confusing that if you build in-tree first and then try to build out-of-
> tree, it just says
> 
> 	make[1]: Nothing to be done for 'all'.
> 
> Maybe that should abort? Or work?

Thanks for sharing this observation. Yes, this is not ideal. I will update that
part based on your suggestion.

> It seems that removing VPATH and changing the %.o rule
> 
> -%.o: %.c iw.h nl80211.h nl80211-commands.inc
> +%.o: $(SRCDIR)/%.c $(SRCDIR)/iw.h $(SRCDIR)/nl80211.h nl80211-commands.inc
> 
> makes that work?
> 
> I'll leave it to you though.

I will send a v3 to fix it.
 
> johannes

Best Regards,
Maxin

      reply	other threads:[~2026-05-06 20:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-29 21:08 [PATCH v2] iw: Makefile: support out-of-tree builds Maxin John
2026-05-05 10:35 ` Johannes Berg
2026-05-06 20:23   ` Maxin John [this message]

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=afujK_-G8ty4LnBD@Thor.home \
    --to=maxin.john@gmail.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /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