diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-02-08 12:47:01 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-02-12 15:55:15 +0530 |
commit | c5467fce469f0a5da868f1c9f90f9e4e549cb660 (patch) | |
tree | 12c4f51bc71fa844d55bfda460ea0692094337ef /platform/kendryte | |
parent | 84169e2e691183594d0ba3b2acd85024c65b7370 (diff) |
Makefile: Set ABI, ISA and Code Model in top-level make
This patch introduces following optional PLATFORM options:
PLATFORM_RISCV_XLEN -> RISC-V register width
PLATFORM_RISCV_ABI -> RISC-V GCC ABI
PLATFORM_RISCV_ISA -> RISC-V GCC ISA string
PLATFORM_RISCV_CODE_MODEL -> RISC-V GCC Code Model
If the above options are not provided by platform config.mk
or by command-line parameters then:
1. PLATFORM_RISCV_XLEN will be determined using toolchain
capability
2. PLATFORM_RISCV_ABI, PLATFORM_RISCV_ISA, and
PLATFORM_RISCV_CODE_MODEL is set to value best suited for
generic libsbi.a
As a result of these optional PLATFORM options, the
platform-cflags-y and platform-asflags-y is further
simplified for platform config.mk.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'platform/kendryte')
-rw-r--r-- | platform/kendryte/k210/config.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/kendryte/k210/config.mk b/platform/kendryte/k210/config.mk index 3bc4931..2aa3b13 100644 --- a/platform/kendryte/k210/config.mk +++ b/platform/kendryte/k210/config.mk @@ -9,8 +9,8 @@ # Compiler flags platform-cppflags-y = -platform-cflags-y =-mabi=lp64 -march=rv64imafdc -mcmodel=medany -platform-asflags-y =-mabi=lp64 -march=rv64imafdc -mcmodel=medany +platform-cflags-y = +platform-asflags-y = platform-ldflags-y = # Common drivers to enable |