Files
mirror_zfs/config
Peter Levine c7fcf00917 Add support for $KERNEL_{CC,LD,LLVM} variables
Currently, $(CC), $(LD), and $(LLVM) variables aren't passed to kbuild
while building modules.  This causes modules to build with the default
GNU GCC toolchain and prevents experimenting with other toolchains such
as CLANG/LLVM.  It can also lead to build failure if the CFLAGS/LDFLAGS
passed are incompatible with gcc/ld.

Pass $KERNEL_CC, $KERNEL_LD, and $KERNEL_LLVM as $(CC), $(LD), and
$(LLVM), respectively, to kbuild for each that is defined in the
environment.  This should take care of the majority of alternative
toolchain use cases.

Reviewed-by: Damian Szuberski <szuberskidamian@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Peter Levine <plevine457@gmail.com>
Closes #13046
2022-02-16 17:58:55 -08:00
..
2020-04-14 11:36:28 -07:00
2020-08-20 10:30:06 -07:00
2021-01-26 16:12:26 -08:00
2021-04-07 13:27:11 -07:00
2021-04-14 13:19:49 -07:00
2021-09-14 15:42:59 -07:00
2021-05-28 09:01:24 -07:00
2021-04-07 13:27:11 -07:00
2021-06-09 13:05:34 -07:00
2020-06-09 21:24:09 -07:00
2021-04-07 13:24:22 -07:00
2019-10-01 12:50:34 -07:00
2019-10-01 12:50:34 -07:00
2021-01-02 16:55:55 -08:00
2019-08-30 09:40:30 -07:00
2021-11-02 09:50:30 -07:00
2021-01-02 16:55:55 -08:00
2021-01-02 16:55:55 -08:00
2021-01-02 16:55:55 -08:00
2021-01-02 16:55:55 -08:00
2021-01-02 16:55:55 -08:00
2021-01-02 16:55:55 -08:00
2021-11-02 09:50:30 -07:00