Skip to content

Commit

Permalink
scripts/feeds: force kernel package scan after a target installation
Browse files Browse the repository at this point in the history
When a target is installed from a feed, the linux kernel package is scanned
before the installation of this target.
If some kernel module packages are defined in this feeds at the target
level, there were not parsed during the scan of linux kernel package, as
the target didn't exist yet. So these kernel module packages don't exist.

Once the target is installed, clean the linux kernel packageinfo to force
the scan of the linux kernel package next time this script (or the make
command) is called.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/mailman.117548.1727195440.1280.openwrt-devel@lists.openwrt.org/
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
  • Loading branch information
thom24 authored and hauke committed Oct 10, 2024
1 parent 9b66c7d commit 51e0834
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/feeds
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,11 @@ sub do_install_target($) {
return 1;
}

# Clean packageinfo of linux kernel to force the scan.
# Otherwise kernel modules defined at target level are not scanned, as the
# linux kernel package was scanned before the installation of the target.
unlink "tmp/info/.packageinfo-kernel_linux";

return 0;
}

Expand Down

0 comments on commit 51e0834

Please sign in to comment.