diff --git a/phase1/master.cfg b/phase1/master.cfg index 4e7cbc1..dacf0ce 100644 --- a/phase1/master.cfg +++ b/phase1/master.cfg @@ -1257,6 +1257,33 @@ 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="checksums",