matrix-rootfs: add jffs2_extra_args
[matrix.git] / matrix / config.py
index ad1eca6..2b926fa 100644 (file)
@@ -72,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
@@ -88,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
 
@@ -116,8 +122,6 @@ def parse(pattern, require=True):
        found = False
 
        for dir in dirs:
-               if (dir != "" and not exists(dir)):
-                       raise Error("ConfigDir '" + dir + "' not found")
                for path in glob(join(dir, pattern)):
                        if exclude.match(basename(path)):
                                continue
@@ -228,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