OpenWrt not resolving dependencies correctly?

I am trying to get OpenWrt supported on the NanoPi R1S, which has one directly connected GbE interface, as well as a USB ethernet interface using the RTL8152 driver. @jayanta525 has been working on this, and created a branch adding the relevant Makefile and device tree changes.
One thing I noticed, though, is that because the target/linux/sunxi/image/cortex-a7.mk file doesn't explicitly define kmod-usb-net as a requirement, this is not included in the final image:

define Device/friendlyarm_nanopi-r1
  DEVICE_VENDOR := FriendlyARM
  DEVICE_MODEL := NanoPi R1
  DEVICE_PACKAGES := kmod-rtc-sunxi kmod-usb2 kmod-usb-net-rtl8152 \
        kmod-brcmfmac kmod-leds-gpio kmod-ledtrig-heartbeat wpad-basic \
        brcmfmac-firmware-43430-sdio
  SOC := sun8i-h3
endef
TARGET_DEVICES += friendlyarm_nanopi-r1

results in:

$ grep -i kmod-usb .config | egrep -v "^#" 
CONFIG_DEFAULT_kmod-usb-net-rtl8152=y
CONFIG_DEFAULT_kmod-usb2=y
CONFIG_PACKAGE_kmod-usb-core=y
CONFIG_PACKAGE_kmod-usb-ehci=y
CONFIG_PACKAGE_kmod-usb2=y

From package/kernel/linux/modules/usb.mk:

define KernelPackage/usb-net-rtl8152
  TITLE:=Kernel module for USB-to-Ethernet Realtek convertors
  KCONFIG:=CONFIG_USB_RTL8152
  FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/r8152.ko
  AUTOLOAD:=$(call AutoProbe,r8152)
  $(call AddDepends/usb-net)
endef

So I would expect that dependency to be reflected in the packages built and included in the final image.

Am I doing something wrong?

1 Like