[OpenWrt-Devel] Broken packaging of modules (updating them) when using @lt or @gt

Rafał Miłecki zajec5 at gmail.com
Fri Dec 14 16:59:56 EST 2018


I've noticed a problem with kmod-phy-bcm-ns-usb2 defined in the
target/linux/bcm53xx/modules.mk

Steps to reproduce:
1) Setup .config with:
CONFIG_TARGET_bcm53xx
CONFIG_TARGET_MULTI_PROFILE
TARGET_ALL_PROFILES
CONFIG_TARGET_PER_DEVICE_ROOTFS
2) make V=s
3) vim build_dir/target-*/linux-*/linux-*/drivers/phy/broadcom/phy-bcm-ns-usb2.c
4) make V=s

That will result in rebuilding:
build_dir/target-*/linux-*/linux-*/drivers/phy/broadcom/phy-bcm-ns-usb2.ko
(expected).

However it won't update:
build_dir/target-*/linux-*/target-dir-*/lib/modules/4.14.88/phy-bcm-ns-usb2.ko

I've bisected/notices it's caused by using:
$(LINUX_DIR)/drivers/phy/phy-bcm-ns-usb2.ko at lt4.13 \
$(LINUX_DIR)/drivers/phy/broadcom/phy-bcm-ns-usb2.ko at gt4.13

If I drop old kernel compatibility and simply use:
$(LINUX_DIR)/drivers/phy/broadcom/phy-bcm-ns-usb2.ko
the problem disappears.

Is there any Makefile guru around who could fix this?

-- 
Rafał

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list