Example #1
0
    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"
Example #2
0
    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"
Example #3
0
	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"])
Example #4
0
	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"])
Example #5
0
	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"
Example #6
0
    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"])