Re: [PATCH] make use of make variable CURDIR instead of calling pwd

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

 



On Tue, Nov 22, 2016 at 09:30:26AM +0100, Uwe Kleine-König wrote:
> From: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
> 
> make already provides the current working directory in a variable, so make
> use of it instead of forking a shell. Also replace usage of PWD by
> CURDIR. PWD is provided by most shells, but not all, so this makes the
> build system more robust.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
> ---
> Hello,
> 
> BTW, the comment "set up PWD so that older versions of make will work
> with our build." in tools/power/cpupower/Makefile is wrong. PWD is a
> variable provided by most modern shells, so it has nothing to do with
> old make.
> 
> I don't know where to send this patch, so I picked the kbuild entry from
> MAINTAINERS as best match. If you think there is a better alternative or
> this patch needs splitting, please tell me.

I applied it to the kbuild tree. If conflicts happen, their resolution
should be straightforward.

Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



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

  Powered by Linux