Re: [PATCH RFC 0/3] Adding trailing slash to $(srctree)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 22, 2024 at 8:16 AM Elliott Mitchell <ehem+linux@xxxxxxx> wrote:
>
> The subject states exactly what I'm suggesting.
>
> The reason is the fallback value for $(srctree) of "." doesn't work
> properly in several places under some conditions.  In particular in
> several places a pattern of "$(srctree)/$(src)" is used.  If $(srctree)
> ends up with the value "." and $(src) ends up with the value `pwd`, the
> build breaks.  This can be triggered via in-tree/out-of-tree build
> mechanisms.


I really do not understand what you are trying to achieve,
but this is just about
"Do not try to build upstream drivers with M=".


If you hack it, it is what you should do locally.









> As such, assuming $(srctree) includes the trailing slash and setting
> the fallback for $(srctree) to "" fixes things.  This is untested, I'm
> proposing this since I wanted to use a build approach which triggers
> this.  This is really a single patch, but it has been split into 3 to
> emphasize where the real work is done.
>
> I'm suspicious of the fallback settings of $(srctree) found in several
> Makefiles.  This might be a distinct workaround for the same situation.
> I was wondering about adjusting some of those comments too.  I think
> $(src) needs similar treatment, but that is rather messier.
>
> Note, this is basically untested.  I'm hopeful this actually works, but
> if it breaks then this was mostly to alert the maintainers of this
> troublesome condition.
>
>
> Elliott Mitchell (3):
>   build: add trailing slash to $(srctree)
>   build: modify uses of $(srctree) to assume trailing slash
>   build: change $(srctree) to empty for current directory
>

--
Best Regards
Masahiro Yamada





[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux