# Copyright (c) 2021-2022 Amlogic, Inc. All rights reserved.

# SPDX-License-Identifier: MIT

choice TOOLCHAIN
	bool "Toolchain selection"
	default TOOLCHAIN_GCC
	help
	  "Select toolchain"

	config TOOLCHAIN_GCC
	bool "GCC"
	help
	  "Select GCC toolchain"
endchoice

if TOOLCHAIN_GCC
config MARCH
	string "Machine architecture"
	default "rv32imc"
	help
	  "Machine architecture option value"

config MABI
	string "Machine application binary interface"
	default "ilp32"
	help
	  "Machine application binary interface"

config MEXTRA
	string "Machine extra flags"
	help
	  "Machine extra flags"

config LTO_OPTIMIZATION
	bool "LTO flag"
	help
	  "Select The link-time optimizations flag"

config STACK_PROTECTOR_STRONG
	bool "stack protecter strong flag"
	help
	  "Select stack protecter string flag"

config M_SAVE_RESTORE
	bool "-msave-restore flag"
	help
	  "Select -msave-restore flag to save risc-v build size"

endif
