cpu/mor1kx: use clang only for linux variant
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 13 Nov 2018 10:09:39 +0000 (11:09 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 13 Nov 2018 10:09:39 +0000 (11:09 +0100)
litex/soc/cores/cpu/mor1kx/core.py

index c53c6e5e58f5c54bd1c1d44417ecbe086aad7619..3b55991b663d65649c94dff472a5a6043f634612 100644 (file)
@@ -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",