]> git.ipfire.org Git - thirdparty/openwrt.git/commit
build: provide virtual self in kmods
authorGeorge Sapkin <george@sapk.in>
Sun, 28 Dec 2025 15:22:41 +0000 (17:22 +0200)
committerRobert Marko <robimarko@gmail.com>
Fri, 2 Jan 2026 17:11:03 +0000 (18:11 +0100)
commitd1b08c2d82a86f1958137b22fc6ec0991ee9df9c
tree6af9b6224b92e16292ef391f386a32173e613c18
parent40baf2f82cb9bdc14916f3588f9710baf8273fc6
build: provide virtual self in kmods

Add an implicit self-provide to kmods. apk can't handle self provides,
be it versioned or virtual, so opt for a prefix and a suffix instead.
Package name without a prefix/suffix is too generic and might conflict
with other packages, e.g. wireguard. This allows several variants to
provide the same virtual package without adding extra provides to the
default one, e.g. r8169 implicitly provides kmod-r8169-any and is marked
as default, so r8125 can explicitly provide @kmod-r8169-any as well.

Signed-off-by: George Sapkin <george@sapk.in>
Link: https://github.com/openwrt/openwrt/pull/21288
(cherry picked from commit 9b37b7185c18855f4e017ac573701cdcd92fbcd1)
Link: https://github.com/openwrt/openwrt/pull/21355
Signed-off-by: Robert Marko <robimarko@gmail.com>
include/kernel.mk
include/package-pack.mk