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 <daniel@makrotopia.org>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
  • Loading branch information
dangowrt authored and Ansuel committed Jun 12, 2024
1 parent 44ed9a3 commit e0fb861
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",
"-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",
Expand Down

0 comments on commit e0fb861

Please sign in to comment.