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> [fixes]
Signed-off-by: Petr Štetiar <ynezz@true.cz> [apk compat + print]
  • Loading branch information
dangowrt authored and ynezz committed Jun 13, 2024
1 parent 44ed9a3 commit 32142a7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions phase1/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,31 @@ 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="kmodindex",
Expand Down

0 comments on commit 32142a7

Please sign in to comment.