Adding new build target

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

 



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



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

  Powered by Linux