matrix-rootfs: add jffs2_extra_args
[matrix.git] / matrix / config.py
index 954fc38..2b926fa 100644 (file)
@@ -1,6 +1,7 @@
-# Copyright (C) 2007-2008 Movial Creative Technologies Inc.
-# Authors: Timo Savola <tsavola@movial.fi>
-#          Kalle Vahlman <kalle.vahlman@movial.fi>
+# Copyright (C) 2007-2009 Movial Creative Technologies Inc.
+# Authors: Timo Savola
+#          Kalle Vahlman <kalle.vahlman@movial.com>
+#          Daniel Bainton <daniel.bainton@movial.com>
 
 import re
 from glob import glob
@@ -71,7 +72,10 @@ 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,
+                    cleanmarkers="unknown",
+                    jffs2_extra_args="",
+                    flags=[]):
 
                self.name = name
                self.arch = arch
@@ -87,6 +91,9 @@ 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.cleanmarkers = cleanmarkers
+               self.jffs2_extra_args = jffs2_extra_args
+               self.flags = flags
 
                config.boards[name] = self
 
@@ -225,6 +232,7 @@ class Config(object):
                self.flags = set()
                self.verbose = False
                self.debug = False
+               self.protocol = False
                self.force = False
                self.keep_going = False
                self.pull_config_dirs = False