All of lore.kernel.org
 help / color / mirror / Atom feed
* Adding new build target
@ 2019-06-07 16:58 Derrick McKee
  2019-06-07 17:20 ` Tom Roeder
  2019-06-18 15:03 ` Masahiro Yamada
  0 siblings, 2 replies; 3+ messages in thread
From: Derrick McKee @ 2019-06-07 16:58 UTC (permalink / raw)
  To: linux-kbuild

Hi all,

Now that the kernel can be built with clang, I'd like to implement a
new build target to generate LLVM bytecode for all C source files
involved for a specific build configuration.  I am thinking that this
should be very simple if I know the make variables that captures the
needed information.  Specifically, I think I just need to perform the
following command for all C files:

clang -emit-llvm -c <appropriate CFLAGS and include paths> <source
file> -o <corresponding object file location>.bc

My problem is that I don't know how to get the info in the brackets,
but I am thinking that I should make a new build target `bytecode`.
Any help would be appreciated.  Thanks.

Derrick McKee

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

end of thread, other threads:[~2019-06-18 15:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-07 16:58 Adding new build target Derrick McKee
2019-06-07 17:20 ` Tom Roeder
2019-06-18 15:03 ` Masahiro Yamada

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.