[OpenWrt-Devel] Broken packaging of modules (updating them) when using @lt or @gt
Rafał Miłecki
zajec5 at gmail.com
Sun Dec 16 23:58:50 EST 2018
On Sat, 15 Dec 2018 at 08:05, Yousong Zhou <yszhou4tech at gmail.com> wrote:
>
> On Sat, 15 Dec 2018 at 06:00, Rafał Miłecki <zajec5 at 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 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.
>
> 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 at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list