config: Root function
authorTimo Savola <tsavola@movial.fi>
Wed, 11 Jun 2008 12:09:10 +0000 (15:09 +0300)
committerTimo Savola <tsavola@movial.fi>
Wed, 11 Jun 2008 12:09:10 +0000 (15:09 +0300)
matrix/config.py

index c9df472..70b497a 100644 (file)
@@ -43,6 +43,9 @@ def config_dir(path=None, url=None, branch='master'):
 
        config.config_dirs.append(path)
 
+def root(url, branch='master'):
+       config.roots.append((url, branch))
+
 class Board(object):
        def __init__(self, name, arch, gcc_march,
                     gcc_mcpu=None,
@@ -142,6 +145,7 @@ class Config(object):
 
 actions = dict(
        ConfigDir = config_dir,
+       Root = root,
        Board = Board,
        Component = component,
        ProvideComponent = provide_component,