summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Richard <thomas.richard@bootlin.com>2024-09-24 18:27:16 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2024-10-10 21:51:43 +0200
commit51e083426b8b9343a253597baa286b76e9232194 (patch)
tree526d366c03cef0008e96616867e12da180032ea9
parent9b66c7dfa50e31141b22769a9be706e0dc95ab24 (diff)
downloadopenwrt-51e083426b8b9343a253597baa286b76e9232194.tar.gz
openwrt-51e083426b8b9343a253597baa286b76e9232194.tar.bz2
openwrt-51e083426b8b9343a253597baa286b76e9232194.zip
scripts/feeds: force kernel package scan after a target installation
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>
-rwxr-xr-xscripts/feeds5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/feeds b/scripts/feeds
index 7cbe07f58e..d07c28bc50 100755
--- a/scripts/feeds
+++ b/scripts/feeds
@@ -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;
}