From: Florent Kermarrec Date: Tue, 13 Nov 2018 10:09:39 +0000 (+0100) Subject: cpu/mor1kx: use clang only for linux variant X-Git-Tag: 24jan2021_ls180~1497 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af950285745d1745fce3f26a861e69edab391e5c;p=litex.git cpu/mor1kx: use clang only for linux variant --- diff --git a/litex/soc/cores/cpu/mor1kx/core.py b/litex/soc/cores/cpu/mor1kx/core.py index c53c6e5e..3b55991b 100644 --- a/litex/soc/cores/cpu/mor1kx/core.py +++ b/litex/soc/cores/cpu/mor1kx/core.py @@ -10,8 +10,6 @@ class MOR1KX(Module): endianness = "big" gcc_triple = "or1k-elf" gcc_flags = "-mhard-mul -mhard-div -mror" - clang_triple = "or1k-linux" - clang_flags = "-mhard-mul -mhard-div -mror -mffl1 -maddc" linker_output_format = "elf32-or1k" def __init__(self, platform, reset_pc, variant=None): @@ -53,6 +51,8 @@ class MOR1KX(Module): # Use the default configuration pass elif variant == "linux": + self.clang_triple = "or1k-linux" + self.clang_flags = "-mhard-mul -mhard-div -mror -mffl1 -maddc" cpu_args.update(dict( # Linux needs the memory management units. p_FEATURE_IMMU="ENABLED",