targets/toolchain_makefile.py
branchpython3
changeset 3750 f62625418bff
parent 2463 8742337a9fe3
--- a/targets/toolchain_makefile.py	Mon Mar 27 10:19:14 2023 +0200
+++ b/targets/toolchain_makefile.py	Fri Oct 28 12:39:15 2022 +0800
@@ -23,7 +23,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 
-from __future__ import absolute_import
+
 import os
 import re
 import operator
@@ -83,7 +83,7 @@
                     deps.append(depfn)
         # recurse through deps
         # TODO detect cicular deps.
-        return reduce(operator.concat, map(self.concat_deps, deps), src)
+        return reduce(operator.concat, list(map(self.concat_deps, deps)), src)
 
     def build(self):
         srcfiles = []