usign_comment = ini.get("usign", "comment")
enable_kmod_archive = False
-embed_kmod_repository = False
if ini.has_option("phase1", "kmod_archive"):
enable_kmod_archive = ini.getboolean("phase1", "kmod_archive")
-if ini.has_option("phase1", "kmod_repository"):
- embed_kmod_repository = ini.getboolean("phase1", "kmod_repository")
-
# find targets
targets = [ ]
haltOnFailure = True
))
- if enable_kmod_archive and embed_kmod_repository:
- # embed kmod repository. Must happen before 'images'
-
- # find rootfs staging directory
- factory.addStep(SetPropertyFromCommand(
- name = "stageroot",
- property = "stageroot",
- description = "Finding the rootfs staging directory",
- command=["make", "--no-print-directory", "val.STAGING_DIR_ROOT"],
- env = { 'TOPDIR': Interpolate("%(kw:cwd)s/build", cwd=GetCwd) },
- want_stderr = False
- ))
-
- factory.addStep(ShellCommand(
- name = "filesdir",
- description = "Creating file overlay directory",
- command=["mkdir", "-p", "files/etc/opkg"],
- haltOnFailure = True
- ))
-
- factory.addStep(ShellCommand(
- name = "kmodconfig",
- description = "Embedding kmod repository configuration",
- command=Interpolate("sed -e 's#^\\(src/gz .*\\)_core \\(.*\\)/packages$#&\\n\\1_kmods \\2/kmods/%(prop:kernelversion)s#' " +
- "%(prop:stageroot)s/etc/opkg/distfeeds.conf > files/etc/opkg/distfeeds.conf"),
- haltOnFailure = True
- ))
-
#factory.addStep(IfBuiltinShellCommand(
factory.addStep(ShellCommand(
name = "images",