Add the ability to set board-specific flags
authorKalle Vahlman <kalle.vahlman@movial.com>
Mon, 11 Jan 2010 18:24:45 +0000 (20:24 +0200)
committerKalle Vahlman <kalle.vahlman@movial.com>
Mon, 11 Jan 2010 18:24:45 +0000 (20:24 +0200)
matrix/build.py
matrix/config.py

index 9df152e..90bab91 100644 (file)
@@ -297,6 +297,9 @@ def spawn(c, action):
        for flag in config.flags:
                env[flag] = '1'
 
+       for flag in board.flags:
+               env[flag] = '1'
+
        if config.verbose:
                env['MATRIX_VERBOSE'] = '1'
 
index 070e51c..18c9e92 100644 (file)
@@ -72,7 +72,8 @@ class Board(object):
                     ubifs_leb_size=0,
                     ubifs_max_leb_count=0,
                     ubifs_min_io_size=0,
-                    ubinize_config_vol_size=0):
+                    ubinize_config_vol_size=0,
+                    flags=[]):
 
                self.name = name
                self.arch = arch
@@ -88,6 +89,7 @@ class Board(object):
                self.ubifs_max_leb_count = ubifs_max_leb_count
                self.ubifs_min_io_size = ubifs_min_io_size
                self.ubinize_config_vol_size = ubinize_config_vol_size
+               self.flags = flags
 
                config.boards[name] = self