Thread (1 message) 1 message, 1 author, 2022-01-14

Re: [PATCH v3 2/3] selftests/x86/Makefile: Support per-target $(LIBS) configuration

From: Florian Weimer <hidden>
Date: 2022-01-14 13:28:42
Also in: linux-arch, linux-mm, lkml

* Andy Lutomirski:
On Thu, Jan 13, 2022, at 2:00 PM, Florian Weimer wrote:
quoted
* Andy Lutomirski:
quoted
On 1/5/22 08:03, Florian Weimer wrote:
quoted
And avoid compiling PCHs by accident.
The patch seems fine, but I can't make heads or tails of the
$SUBJECT. Can you help me?
What about this?

selftests/x86/Makefile: Set linked libraries using $(LIBS)

I guess that it's possible to use make features to set this per target
isn't important.
I think that's actually important -- it's nice to explain to make
dummies (e.g. me) what the purpose is is.  I assume it's so that a
given test can override the libraries.  Also, you've conflated two
different changes into one patch: removal of .h and addition of LIBS.
Do you want me to split this further into two commits?

  selftests/x86/Makefile: Per-target configuration of linked libraries

  Targets can set $(LIBS) to specify a different set of libraries than the
  defaults (or no libraries at all).

And:

  selftests/x86/Makefile: Do not pass header files as compiler inputs

  Filtering out .h files avoids accidentally creating a precompiled
  header.

I didn't want to game commit metrics.

Thanks,
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help