Changeset 379


Ignore:
Timestamp:
2005-03-16T14:50:00+01:00 (13 years ago)
Author:
wbx
Message:

add all source code from linksys/broadcom which is free, to cvs for better maintainence inside
openwrt. this gives us the ability to better support different hardware models, without changing
any external tar-balls. only et.o and wl.o is missing and is fetched from my webserver.

Location:
trunk/openwrt/package/linux
Files:
93 added
8 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/linux/linux.mk

    r307 r379  
    2121 
    2222LINUX_SITE=http://www.kernel.org/pub/linux/kernel/v2.4 
     23LINUX_BINARY_DRIVER_SITE=http://openwrt.openbsd-geek.de 
    2324LINUX_SOURCE=linux-$(LINUX_VERSION).tar.bz2 
    2425LINUX_KCONFIG=./linux.config 
    2526LINUX_PATCHES=./kernel-patches 
     27LINUX_KERNEL_SOURCE=./kernel-source 
    2628LINUX_BINLOC=arch/$(LINUX_KARCH)/brcm-boards/bcm947xx/compressed/vmlinuz 
    2729# Used by pcmcia-cs and others 
    2830LINUX_SOURCE_DIR=$(LINUX_DIR)-$(LINUX_VERSION) 
    2931 
    30 # kernel stuff extracted from linksys firmware GPL sourcetree 
    31 # WRT54GS_3_37_2_1109_US (shared,include,wl,et) 
    32 LINKSYS_KERNEL_SITE=http://openwrt.openbsd-geek.de 
    33 LINKSYS_KERNEL_TGZ=linksys-kernel.tar.gz 
     32# binary driver extracted from linksys firmware GPL sourcetree WRT54GS_3_37_2_1109_US  
     33LINUX_BINARY_WL_DRIVER=kernel-binary-wl.tar.gz 
     34LINUX_BINARY_ET_DRIVER=kernel-binary-et.tar.gz 
    3435 
    3536TARGET_MODULES_DIR=$(TARGET_DIR)/lib/modules/$(LINUX_VERSION) 
    3637 
    37 $(DL_DIR)/$(LINKSYS_KERNEL_TGZ): 
    38         $(WGET) -P $(DL_DIR) $(LINKSYS_KERNEL_SITE)/$(LINKSYS_KERNEL_TGZ) 
     38$(DL_DIR)/$(LINUX_BINARY_WL_DRIVER): 
     39        $(WGET) -P $(DL_DIR) $(LINUX_BINARY_DRIVER_SITE)/$(LINUX_BINARY_WL_DRIVER) 
    3940 
    40 $(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE) $(DL_DIR)/$(LINKSYS_KERNEL_TGZ) 
     41$(DL_DIR)/$(LINUX_BINARY_ET_DRIVER): 
     42        $(WGET) -P $(DL_DIR) $(LINUX_BINARY_DRIVER_SITE)/$(LINUX_BINARY_ET_DRIVER) 
     43 
     44$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE) $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER) $(DL_DIR)/$(LINUX_BINARY_ET_DRIVER) 
    4145        -mkdir -p $(BUILD_DIR) 
    4246        bzcat $(DL_DIR)/$(LINUX_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - 
    43         # extract linksys binary kernel stuff and include/shared files 
    44         zcat $(DL_DIR)/$(LINKSYS_KERNEL_TGZ) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - 
    4547        ln -sf $(LINUX_DIR)-$(LINUX_VERSION) $(LINUX_DIR) 
     48        # extract wlan and lan binary only driver 
     49        zcat $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - 
     50        zcat $(DL_DIR)/$(LINUX_BINARY_ET_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - 
    4651        touch $(LINUX_DIR)/.unpacked 
    4752 
    4853$(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked 
    4954        $(PATCH) $(LINUX_DIR) $(LINUX_PATCHES) 
     55        # copy kernel source which is maintained in openwrt via cvs 
     56        cp -a $(LINUX_KERNEL_SOURCE)/* $(LINUX_DIR) 
     57        # copy binary drivers 
     58        cp -a $(BUILD_DIR)/wl/*.o $(LINUX_DIR)/drivers/net/wl 
     59        cp -a $(BUILD_DIR)/et/*.o $(LINUX_DIR)/drivers/net/et 
    5060        touch $(LINUX_DIR)/.patched 
    5161 
    5262$(LINUX_DIR)/.configured: $(LINUX_DIR)/.patched 
    5363        -cp $(LINUX_KCONFIG) $(LINUX_DIR)/.config 
    54 #ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS_LZMA),y) 
    55 #       $(SED) "s,rootfstype=jffs2,rootfstype=squashfs," $(LINUX_DIR)/.config 
    56 #endif 
    57 #ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS),y) 
    58 #       $(SED) "s,rootfstype=jffs2,rootfstype=squashfs," $(LINUX_DIR)/.config 
    59 #endif 
    6064        $(SED) "s,^CROSS_COMPILE.*,CROSS_COMPILE=$(KERNEL_CROSS),g;" \ 
    6165          $(LINUX_DIR)/Makefile  \ 
     
    107111        rm -rf $(LINUX_DIR) 
    108112        rm -rf $(BUILD_DIR)/modules 
    109         rm -rf $(BUILD_DIR)/linksys-kernel 
    110113 
Note: See TracChangeset for help on using the changeset viewer.