diff --git a/phase1/master.cfg b/phase1/master.cfg index 4e7cbc1..41eb8da 100644 --- a/phase1/master.cfg +++ b/phase1/master.cfg @@ -1312,6 +1312,31 @@ def prepareFactory(target): ) ) + factory.addStep( + ShellCommand( + name="kmodclean", + description="Removing kmods from target packages", + descriptionDone="Kmods removed", + command=[ + "find", + Interpolate( + "bin/targets/%(kw:target)s/%(kw:subtarget)s%(prop:libc)s/packages/", + target=target, + subtarget=subtarget, + ), + "-name", + "kmod-*.ipk", + "-o", + "-name", + "kmod-*.apk", + "-delete", + "-print", + ], + haltOnFailure=True, + doStepIf=IsKmodArchiveEnabled, + ) + ) + factory.addStep( ShellCommand( name="kmodindex",