On Sat, 15 Dec 2018 at 08:05, Yousong Zhou <yszhou4t...@gmail.com> wrote:
>
> On Sat, 15 Dec 2018 at 06:00, Rafał Miłecki <zaj...@gmail.com> wrote:
> >
> > 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@lt4.13 \
> > $(LINUX_DIR)/drivers/phy/broadcom/phy-bcm-ns-usb2.ko@gt4.13
> >
> > If I drop old kernel compatibility and simply use:
> > $(LINUX_DIR)/drivers/phy/broadcom/phy-bcm-ns-usb2.ko
> > the problem disappears.
>
> Probably because kmod .ipk was not rebuilt.  How about also applying
> version_filter $(FILES) in the following line [1]
>
>     $$(IPKG_kmod-$(1)): $$(wildcard $$(FILES))
>
> [1] 
> https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=include/kernel.mk;h=38613756c71d8d5511a72849354bf818f57043ea;hb=HEAD#l262

Can you provide a diff or at least a complete line I should replace
above one with, please?

-- 
Rafał

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

Reply via email to