X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8afe76304a4a092f6100c0f75df0e58bb2821833..6e37e1ce8f87c1bcf08b845c335f294949a5ecfd:/package/broadcom-wl/src/kmod/Makefile diff --git a/package/broadcom-wl/src/kmod/Makefile b/package/broadcom-wl/src/kmod/Makefile index 672384035..450700f5c 100644 --- a/package/broadcom-wl/src/kmod/Makefile +++ b/package/broadcom-wl/src/kmod/Makefile @@ -13,20 +13,19 @@ EXTRA_CFLAGS += -I$(TOPDIR)/arch/mips/bcm947xx/include -DBCMDRIVER -O_TARGET := wl_link.o +O_TARGET := wl$(MOD_NAME).o -obj-y := wl_mod.o +obj-y := wl_mod$(MOD_NAME).o obj-y += bcmutils.o hnddma.o linux_osl.o obj-m := $(O_TARGET) -wl_mod.o: wl_apsta.o - sed -e 's,eth%d,wl%d\x00,g' < $< > $@ +wl_mod$(MOD_NAME).o: wl_apsta$(MOD_NAME).o + perl -ne 's,eth%d,wl%d\x00,g,print' < $< > $@ -wl.o: wl_link.o - $(OBJDUMP) -d $< | perl patchtable.pl > patchtable.bin - cat wl_link.o patchtable.bin > $@ +wl$(MOD_NAME).o.patch: wl$(MOD_NAME).o + $(OBJDUMP) -d $< | perl patchtable.pl > $@ -modules: wl.o +modules: wl$(MOD_NAME).o.patch include $(TOPDIR)/Rules.make