All of lore.kernel.org
 help / color / mirror / Atom feed
* single target builds are broken
@ 2020-03-31  9:16 Vegard Nossum
  2020-03-31  9:49 ` Masahiro Yamada
  0 siblings, 1 reply; 5+ messages in thread
From: Vegard Nossum @ 2020-03-31  9:16 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: Jens Axboe, LKML, linux-kbuild


Hi,

I often run 'make foo/bar.o' as part of my workflow, even when bar.o is
not specified in any kernel makefile, and this has worked just fine for
years.

This is broken after commit 394053f4a4b3e3eeeaa67b67fc886a9a75bd9e4d
(kbuild: make single targets work more correctly) and just gives an error:

$ make kernel/test.o
   CALL    scripts/checksyscalls.sh
   CALL    scripts/atomic/check-atomics.sh
   DESCEND  objtool
make[2]: *** No rule to make target 'kernel/test.o'.  Stop.
scripts/Makefile.build:502: recipe for target '__build' failed
make[1]: *** [__build] Error 2
Makefile:1670: recipe for target 'kernel' failed
make: *** [kernel] Error 2

For top-level objects (e.g. 'make bar.o') the situation is even worse,
since make exits with status 0 without building anything :-/

Is there any chance we can get this back? It was super useful for me.


Vegard

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-31 17:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-31  9:16 single target builds are broken Vegard Nossum
2020-03-31  9:49 ` Masahiro Yamada
2020-03-31 11:01   ` Vegard Nossum
2020-03-31 16:03     ` Masahiro Yamada
2020-03-31 17:56       ` Joe Perches

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.