summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2020-10-20 10:29:43 +0530
committerAnup Patel <[email protected]>2020-11-02 09:21:50 +0530
commit914f81fbee28da409eac680ab3e76f1d5982c6e7 (patch)
treea9302c40e5d61927ed6195719ad963dab3c87e2b /include
parenta809f406b97cdd699f49a977f031ae9c864fe5c3 (diff)
Makefile: Add option to use toolchain default ABI and ISA string
When PLATFORM_RISCV_ABI and PLATFORM_RISCV_ISA are not specified, we force "-mabi=lp64 -march=rv64gc" for RV64 and force "-mabi=ilp32 -march=rv32gc" for RV32. This can prevent users from using the toolchain default "-mabi" and "-march" options. To allow using toolchain defaults, we add compile-time option PLATFORM_RISCV_TOOLCHAIN_DEFAULT which when enabled forces the top-level makefile to use toolchain default ABI and ISA string. To enable the option, pass "PLATFORM_RISCV_TOOLCHAIN_DEFAULT=1" to top-level make. Reported-by: Alistair Francis <[email protected]> Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Alistair Francis <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions