From e0fb8616d9b666d7ee4c947921ddf2e91ac47258 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Fri, 31 May 2024 02:32:07 +0100 Subject: [PATCH] phase1: remove kmods in target packages if archive is enabled OPKG gets confused if kmod packages are present in both, target packages as well as kernel version specific folder. Remove them from target packages to make opkg pick the kmods from kmod archive folder only. Signed-off-by: Daniel Golle Signed-off-by: Christian Marangi --- phase1/master.cfg | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/phase1/master.cfg b/phase1/master.cfg index 4e7cbc1..28dac94 100644 --- a/phase1/master.cfg +++ b/phase1/master.cfg @@ -1312,6 +1312,27 @@ def prepareFactory(target): ) ) + factory.addStep( + ShellCommand( + name="kmodclean", + description="Removing kmods from target packages", + descriptionDone="Kmods removed", + command=[ + "find", + "-name", + "kmod-*.ipk", + "-delete", + Interpolate( + "bin/targets/%(kw:target)s/%(kw:subtarget)s%(prop:libc)s/packages/", + target=target, + subtarget=subtarget, + ), + ], + haltOnFailure=True, + doStepIf=IsKmodArchiveEnabled, + ) + ) + factory.addStep( ShellCommand( name="kmodindex",