[U-Boot] [PATCH v2 06/29] riscv: set -march and -mabi based on the Kconfig configuration

Bin Meng bmeng.cn at gmail.com
Wed Oct 31 02:13:51 UTC 2018


On Tue, Oct 30, 2018 at 8:57 PM Lukas Auer
<lukas.auer at aisec.fraunhofer.de> wrote:
>
> Use the new Kconfig entries to construct the ISA string for the -march
> compiler flag. The -mabi compiler flag is selected based on the base
> integer instruction set.
>
> With this change, the C (compressed instructions) ISA extension is now
> enabled for all boards with CONFIG_RISCV_ISA_C set. Buildman reports a
> decrease in binary size of 71590 bytes.
>
> Signed-off-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>
> ---
>
> Changes in v2:
> - Change ISA string construction, as suggested by Bin Meng
>
>  arch/riscv/Makefile  | 20 ++++++++++++++++++++
>  arch/riscv/config.mk |  4 ----
>  2 files changed, 20 insertions(+), 4 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list