Skip to content

Commit 170cf93

Browse files
committed
netdevices: r8169: rename package name used as provides
This particular case where the kmod- default provider name is in higher order lexicographically that the other non-default variants need to be change. apk will resolve the provider selection logic to the lower name. This could be resolved only assingning a higher priority but the rename gives another benefit which allow selecting the package explicitly(not using the common provider)(if you really need the packages installed side-by-side) *In apk world when two packages provide the same provides if one of these packages also provides other package in the apk world that package will be selected and prefered as it cover more contraints(provides two requested names). (i.e. r8127 will be selected in the case where r8127 and r8169 are added to apk world) Signed-off-by: Mario Andrés Pérez <mapb_@outlook.com>
1 parent 830699f commit 170cf93

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

package/kernel/linux/modules/netdevices.mk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ endef
11981198
$(eval $(call KernelPackage,8139cp))
11991199

12001200

1201-
define KernelPackage/r8169
1201+
define KernelPackage/r8169-default
12021202
SUBMENU:=$(NETWORK_DEVICES_MENU)
12031203
TITLE:=RealTek RTL-8169 PCI Gigabit Ethernet Adapter kernel support
12041204
DEPENDS:=@PCI_SUPPORT +kmod-mii +r8169-firmware +kmod-phy-realtek +kmod-mdio-devres
@@ -1207,13 +1207,14 @@ define KernelPackage/r8169
12071207
CONFIG_R8169_LEDS=y
12081208
FILES:=$(LINUX_DIR)/drivers/net/ethernet/realtek/r8169.ko
12091209
AUTOLOAD:=$(call AutoProbe,r8169,1)
1210+
PROVIDES:=kmod-r8169
12101211
endef
12111212

1212-
define KernelPackage/r8169/description
1213+
define KernelPackage/r8169-default/description
12131214
Kernel modules for RealTek RTL-8169 PCI Gigabit Ethernet adapters
12141215
endef
12151216

1216-
$(eval $(call KernelPackage,r8169))
1217+
$(eval $(call KernelPackage,r8169-default))
12171218

12181219

12191220
define KernelPackage/ne2k-pci

0 commit comments

Comments
 (0)