cpu_interface: fix select_triple when only one specified
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 8 Oct 2018 15:01:04 +0000 (17:01 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 8 Oct 2018 15:01:04 +0000 (17:01 +0200)
litex/soc/integration/cpu_interface.py

index fb8c1017fe92e4fc01e2f210388a1d43f740f296..147d65e8b21cacf04f50884e8d0f0bdc8c4165d7 100644 (file)
@@ -33,7 +33,7 @@ def get_cpu_mak(cpu):
     def select_triple(triple):
         r = None
         if not isinstance(triple, tuple):
-            triple = (triple)
+            triple = (triple,)
         for i in range(len(triple)):
             t = triple[i]
             if which(t+"-gcc"):