40 lines
725 B
Plaintext
40 lines
725 B
Plaintext
# 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 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
|