Skip to content

Commit

Permalink
phase1: remove kmods in target packages if archive is enabled
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Christian Marangi <[email protected]>
  • Loading branch information
dangowrt authored and Ansuel committed Jun 12, 2024
1 parent 44ed9a3 commit 8139175
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions phase1/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,27 @@ 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",
"-delete",
],
haltOnFailure=True,
doStepIf=IsKmodArchiveEnabled,
)
)

factory.addStep(
ShellCommand(
name="kmodindex",
Expand Down

0 comments on commit 8139175

Please sign in to comment.