Changeset 4247


Ignore:
Timestamp:
2006-07-24T09:10:13+02:00 (12 years ago)
Author:
nbd
Message:

fix broadcom-wl patchtable

Location:
branches/buildroot-ng/openwrt/package/broadcom-wl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/buildroot-ng/openwrt/package/broadcom-wl/Makefile

    r4197 r4247  
    9797        echo "wl$(2)" > $(1)/etc/modules.d/20-wl$(2) 
    9898        install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION) 
    99         install -m0644 $(PKG_BUILD_DIR)/kmod/wl$(2).o $(1)/lib/modules/$(LINUX_VERSION)/ 
     99        install -m0644 $(PKG_BUILD_DIR)/kmod/wl$(2).o $(PKG_BUILD_DIR)/kmod/wl$(2).o.patch $(1)/lib/modules/$(LINUX_VERSION)/ 
    100100endef 
    101101 
  • branches/buildroot-ng/openwrt/package/broadcom-wl/src/kmod/Makefile

    r4013 r4247  
    1414EXTRA_CFLAGS += -I$(TOPDIR)/arch/mips/bcm947xx/include -DBCMDRIVER 
    1515 
    16 O_TARGET        := wl_link$(MOD_NAME).o 
     16O_TARGET        := wl$(MOD_NAME).o 
    1717 
    1818obj-y           := wl_mod$(MOD_NAME).o 
     
    2424        sed -e 's,eth%d,wl%d\x00,g' < $< > $@ 
    2525 
    26 wl$(MOD_NAME).o: wl_link$(MOD_NAME).o 
    27         $(OBJDUMP) -d $< | perl patchtable.pl > patchtable.bin 
    28         cat wl_link$(MOD_NAME).o patchtable.bin > $@ 
     26wl$(MOD_NAME).o.patch: wl$(MOD_NAME).o 
     27        $(OBJDUMP) -d $< | perl patchtable.pl > $@ 
    2928 
    30 modules: wl$(MOD_NAME).o 
     29modules: wl$(MOD_NAME).o.patch 
    3130 
    3231include $(TOPDIR)/Rules.make 
  • branches/buildroot-ng/openwrt/package/broadcom-wl/src/wlc/wlc.c

    r3992 r4247  
    129129                return 0; 
    130130         
    131         glob("/lib/modules/2.4.*/wl.o", 0, NULL, &globbuf); 
     131        glob("/lib/modules/2.4.*/wl.o.patch", 0, NULL, &globbuf); 
    132132         
    133133        if (globbuf.gl_pathv[0] == NULL) 
     
    140140                goto failed; 
    141141 
    142         if (statbuf.st_size <= 512) 
     142        if (statbuf.st_size < 512) 
    143143                goto failed; 
    144          
    145         if (lseek(fd, statbuf.st_size - 512, SEEK_SET) < 0) { 
    146                 perror("lseek"); 
    147                 goto failed; 
    148         } 
    149144 
    150145        if (read(fd, ptable, 512) < 512) 
Note: See TracChangeset for help on using the changeset viewer.