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]>
  • Loading branch information
dangowrt committed May 31, 2024
1 parent efbddc9 commit b21b488
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 b21b488

Please sign in to comment.