OpenCloudOS-Kernel/arch/riscv
Palmer Dabbelt 4938c79bd0
RISC-V: Use KBUILD_CFLAGS instead of KCFLAGS when building the vDSO
If you use a 64-bit compiler to build a 32-bit kernel then you'll get an
error when building the vDSO due to a library mismatch.  The happens
because the relevant "-march" argument isn't supplied to the GCC run
that generates one of the vDSO intermediate files.

I'm not actually sure what the right thing to do here is as I'm not
particularly familiar with the kernel build system.  I poked the
documentation and it appears that KCFLAGS is the correct thing to do
(it's suggested that should be used when building modules), but we set
KBUILD_CFLAGS in arch/riscv/Makefile.

This does at least fix the build error.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
2018-08-13 08:31:28 -07:00
..
configs RISC-V: Add CONFIG_HVC_RISCV_SBI=y to defconfig 2018-06-11 09:16:24 -07:00
include RISC-V: Add definiion of extract symbol's index and type for 32-bit 2018-07-04 13:54:08 -07:00
kernel RISC-V: Use KBUILD_CFLAGS instead of KCFLAGS when building the vDSO 2018-08-13 08:31:28 -07:00
lib RISC-V: Make our port sparse-clean 2018-06-11 09:09:49 -07:00
mm RISC-V: Add conditional macro for zone of DMA32 2018-07-04 13:53:21 -07:00
Kconfig RISC-V: Select GENERIC_UCMPDI2 on RV32I 2018-07-04 13:53:33 -07:00
Makefile riscv: add riscv-specific predefines to CHECKFLAGS 2018-06-11 09:03:43 -07:00