integration/builder: Add LiteX define to generated variables (to distinguish MiSoC...
authorWilliam D. Jones <thor0505@comcast.net>
Mon, 24 Sep 2018 15:04:57 +0000 (11:04 -0400)
committerWilliam D. Jones <thor0505@comcast.net>
Mon, 24 Sep 2018 15:04:57 +0000 (11:04 -0400)
litex/soc/integration/builder.py [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index dab50d0..ddeccfa
@@ -70,6 +70,8 @@ class Builder:
             variables_contents.append("{}={}\n".format(k, _makefile_escape(v)))
         for k, v in cpu_interface.get_cpu_mak(self.soc.cpu):
             define(k, v)
+        # Distinguish between LiteX and MiSoC.
+        define("LITEX", "1")
         # Distinguish between applications running from main RAM and
         # flash for user-provided software packages.
         if "main_ram" in (m[0] for m in memory_regions):