def __init__(self, spec, addlargs): self.valid_values = [ "netboot/kernel/sources", "netboot/kernel/config", "netboot/kernel/prebuilt", "netboot/busybox_config", "netboot/extra_files", "netboot/packages" ] self.required_values = [] try: # XXX: This code does nothing because the for loop below is disabled. if "netboot/packages" in addlargs: if isinstance(addlargs['netboot/packages'], str): _loopy = [addlargs["netboot/packages"]] else: _loopy = addlargs["netboot/packages"] # for x in loopy: # self.required_values.append("netboot/packages/"+x+"/files") except: raise CatalystError("configuration error in netboot/packages.") StageBase.__init__(self, spec, addlargs) if "netboot/busybox_config" in addlargs: file_locate(self.settings, ["netboot/busybox_config"]) # Custom Kernel Tarball --- use that instead ... # unless the user wants specific CFLAGS/CXXFLAGS, let's use -Os for envvar in "CFLAGS", "CXXFLAGS": if envvar not in os.environ and envvar not in addlargs: self.settings[envvar] = "-Os -pipe"
def __init__(self,spec,addlargs): self.required_values=[ "boot/kernel" ] self.valid_values=self.required_values[:] self.valid_values.extend([ "netboot2/packages", "netboot2/use", "netboot2/extra_files", "netboot2/overlay", "netboot2/busybox_config", "netboot2/root_overlay", "netboot2/linuxrc" ]) try: if "netboot2/packages" in addlargs: if isinstance(addlargs['netboot2/packages'], str): loopy=[addlargs["netboot2/packages"]] else: loopy=addlargs["netboot2/packages"] for x in loopy: self.valid_values.append("netboot2/packages/"+x+"/files") except: raise CatalystError("configuration error in netboot2/packages.") StageBase.__init__(self,spec,addlargs) self.settings["merge_path"]=normpath("/tmp/image/")
def __init__(self, spec, addlargs): self.valid_values = [ "netboot/kernel/sources", "netboot/kernel/config", "netboot/kernel/prebuilt", "netboot/busybox_config", "netboot/extra_files", "netboot/packages" ] self.required_values = [] try: if "netboot/packages" in addlargs: if type(addlargs["netboot/packages"]) == types.StringType: loopy = [addlargs["netboot/packages"]] else: loopy = addlargs["netboot/packages"] # for x in loopy: # self.required_values.append("netboot/packages/"+x+"/files") except: raise CatalystError("configuration error in netboot/packages.") StageBase.__init__(self, spec, addlargs) self.set_build_kernel_vars(addlargs) if "netboot/busybox_config" in addlargs: file_locate(self.settings, ["netboot/busybox_config"]) # Custom Kernel Tarball --- use that instead ... # unless the user wants specific CFLAGS/CXXFLAGS, let's use -Os for envvar in "CFLAGS", "CXXFLAGS": if envvar not in os.environ and envvar not in addlargs: self.settings[envvar] = "-Os -pipe"
def __init__(self,spec,addlargs): self.required_values=["stage4/packages"] self.valid_values=self.required_values[:] self.valid_values.extend(["stage4/use", "boot/kernel", "stage4/root_overlay", "stage4/fsscript", "stage4/gk_mainargs", "splash_theme", "portage_overlay", "stage4/rcadd", "stage4/rcdel", "stage4/linuxrc", "stage4/unmerge", "stage4/rm", "stage4/empty"]) StageBase.__init__(self,spec,addlargs)
def __init__(self,spec,addlargs): self.required_values=["stage4/packages"] self.valid_values=self.required_values[:] self.valid_values.extend(["stage4/use","boot/kernel",\ "stage4/root_overlay","stage4/fsscript",\ "stage4/gk_mainargs","splash_theme",\ "portage_overlay","stage4/rcadd","stage4/rcdel",\ "stage4/linuxrc","stage4/unmerge","stage4/rm","stage4/empty"]) StageBase.__init__(self,spec,addlargs)
def __init__(self,spec,addlargs): self.required_values=[] self.valid_values=[] self.valid_values.extend(["embedded/empty","embedded/rm","embedded/unmerge","embedded/fs-prepare","embedded/fs-finish","embedded/mergeroot","embedded/packages","embedded/fs-type","embedded/runscript","boot/kernel","embedded/linuxrc"]) self.valid_values.extend(["embedded/use"]) if "embedded/fs-type" in addlargs: self.valid_values.append("embedded/fs-ops") StageBase.__init__(self,spec,addlargs)
def __init__(self, spec, addlargs): if "netboot/packages" in addlargs: if isinstance(addlargs['netboot/packages'], str): loopy = [addlargs["netboot/packages"]] else: loopy = addlargs["netboot/packages"] for x in loopy: self.valid_values |= {"netboot/packages/" + x + "/files"} StageBase.__init__(self, spec, addlargs) self.settings["merge_path"] = normpath("/tmp/image/")
def __init__(self, spec, addlargs): self.required_values = [] self.valid_values = [] self.valid_values.extend([ "embedded/empty", "embedded/rm", "embedded/unmerge", "embedded/fs-prepare", "embedded/fs-finish", "embedded/mergeroot", "embedded/packages", "embedded/fs-type", "embedded/runscript", "boot/kernel", "embedded/linuxrc" ]) self.valid_values.extend(["embedded/use"]) if "embedded/fs-type" in addlargs: self.valid_values.append("embedded/fs-ops") StageBase.__init__(self, spec, addlargs)
def __init__(self, spec, addlargs): try: if "netboot/packages" in addlargs: if isinstance(addlargs['netboot/packages'], str): loopy = [addlargs["netboot/packages"]] else: loopy = addlargs["netboot/packages"] for x in loopy: self.valid_values |= {"netboot/packages/" + x + "/files"} except: raise CatalystError("configuration error in netboot/packages.") StageBase.__init__(self, spec, addlargs) self.settings["merge_path"] = normpath("/tmp/image/")
def __init__(self,spec,addlargs): self.required_values=["boot/kernel"] self.valid_values=[] self.valid_values.extend(self.required_values) self.valid_values.extend(["livecd/cdtar","livecd/empty","livecd/rm",\ "livecd/unmerge","livecd/iso","livecd/gk_mainargs","livecd/type",\ "livecd/readme","livecd/motd","livecd/overlay",\ "livecd/modblacklist","livecd/splash_theme","livecd/rcadd",\ "livecd/rcdel","livecd/fsscript","livecd/xinitrc",\ "livecd/root_overlay","livecd/users","portage_overlay",\ "livecd/fstype","livecd/fsops","livecd/linuxrc","livecd/bootargs",\ "gamecd/conf","livecd/xdm","livecd/xsession","livecd/volid","livecd/verify"]) StageBase.__init__(self,spec,addlargs) if "livecd/type" not in self.settings: self.settings["livecd/type"] = "generic-livecd" file_locate(self.settings, ["cdtar","controller_file"])
def __init__(self,spec,addlargs): self.required_values=["boot/kernel"] self.valid_values=[] self.valid_values.extend(self.required_values) self.valid_values.extend(["livecd/cdtar","livecd/empty","livecd/rm",\ "livecd/unmerge","livecd/iso","livecd/gk_mainargs","livecd/type",\ "livecd/readme","livecd/motd","livecd/overlay",\ "livecd/modblacklist","livecd/splash_theme","livecd/rcadd",\ "livecd/rcdel","livecd/fsscript","livecd/xinitrc",\ "livecd/root_overlay","livecd/users","portage_overlay",\ "livecd/fstype","livecd/fsops","livecd/linuxrc","livecd/bootargs",\ "gamecd/conf","livecd/xdm","livecd/xsession","livecd/volid","livecd/verify"]) StageBase.__init__(self,spec,addlargs) if "livecd/type" not in self.settings: self.settings["livecd/type"] = "generic-livecd" file_locate(self.settings, ["cdtar","controller_file"])
def __init__(self,spec,addlargs): self.required_values=["version_stamp","target","subarch",\ "rel_type","profile","snapshot","source_subpath"] self.valid_values=self.required_values[:] self.valid_values.extend(["grp/use"]) if "grp" not in addlargs: raise CatalystError("Required value \"grp\" not specified in spec.") self.required_values.extend(["grp"]) if isinstance(addlargs['grp'], str): addlargs["grp"]=[addlargs["grp"]] if "grp/use" in addlargs: if isinstance(addlargs['grp/use'], str): addlargs["grp/use"]=[addlargs["grp/use"]] for x in addlargs["grp"]: self.required_values.append("grp/"+x+"/packages") self.required_values.append("grp/"+x+"/type") StageBase.__init__(self,spec,addlargs)
def __init__(self, spec, addlargs): self.required_values=["version_stamp","target","subarch",\ "rel_type","profile","snapshot","source_subpath"] self.valid_values = self.required_values[:] self.valid_values.extend(["grp/use"]) if "grp" not in addlargs: raise CatalystError( "Required value \"grp\" not specified in spec.") self.required_values.extend(["grp"]) if type(addlargs["grp"]) == types.StringType: addlargs["grp"] = [addlargs["grp"]] if "grp/use" in addlargs: if type(addlargs["grp/use"]) == types.StringType: addlargs["grp/use"] = [addlargs["grp/use"]] for x in addlargs["grp"]: self.required_values.append("grp/" + x + "/packages") self.required_values.append("grp/" + x + "/type") StageBase.__init__(self, spec, addlargs)
def __init__(self,spec,addlargs): self.valid_values = [ "netboot/kernel/sources", "netboot/kernel/config", "netboot/kernel/prebuilt", "netboot/busybox_config", "netboot/extra_files", "netboot/packages" ] self.required_values=[] try: # XXX: This code does nothing because the for loop below is disabled. if "netboot/packages" in addlargs: if isinstance(addlargs['netboot/packages'], str): _loopy = [addlargs["netboot/packages"]] else: _loopy = addlargs["netboot/packages"] # for x in loopy: # self.required_values.append("netboot/packages/"+x+"/files") except: raise CatalystError("configuration error in netboot/packages.") StageBase.__init__(self,spec,addlargs) if "netboot/busybox_config" in addlargs: file_locate(self.settings, ["netboot/busybox_config"]) # Custom Kernel Tarball --- use that instead ... # unless the user wants specific CFLAGS/CXXFLAGS, let's use -Os for envvar in "CFLAGS", "CXXFLAGS": if envvar not in os.environ and envvar not in addlargs: self.settings[envvar] = "-Os -pipe"
def __init__(self, spec, addlargs): StageBase.__init__(self, spec, addlargs) if "livecd/type" not in self.settings: self.settings["livecd/type"] = "generic-livecd" file_locate(self.settings, ["cdtar", "controller_file"])
def __init__(self, spec, addlargs): self.required_values = ["tinderbox/packages"] self.valid_values = self.required_values[:] self.valid_values.extend(["tinderbox/use"]) StageBase.__init__(self, spec, addlargs)
def __init__(self,spec,addlargs): self.required_values=[] self.valid_values=["chost"] StageBase.__init__(self,spec,addlargs)
def __init__(self, spec, addlargs): StageBase.__init__(self, spec, addlargs)
def __init__(self,spec,addlargs): self.required_values=["tinderbox/packages"] self.valid_values=self.required_values[:] self.valid_values.extend(["tinderbox/use"]) StageBase.__init__(self,spec,addlargs)
def __init__(self, spec, addlargs): self.required_values = [] self.valid_values = ["chost"] self.valid_values.extend(["update_seed", "update_seed_command"]) StageBase.__init__(self, spec, addlargs)
def __init__(self,spec,addlargs): self.required_values=[] self.valid_values=["chost"] self.valid_values.extend(["update_seed","update_seed_command"]) StageBase.__init__(self,spec,addlargs)
def __init__(self,spec,addlargs): self.required_values=[] self.valid_values=[] StageBase.__init__(self,spec,addlargs)