Changeset 2779


Ignore:
Timestamp:
2005-12-25T16:15:32+01:00 (12 years ago)
Author:
nbd
Message:

fix switch driver makefiles for 2.4

Location:
trunk/openwrt/target/linux/package/switch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/target/linux/package/switch/Makefile

    r2778 r2779  
    2626 
    2727$(PKG_BUILD_DIR)/.built: 
    28         $(MAKE) -C $(PKG_BUILD_DIR) \ 
     28        $(MAKE) -C "$(LINUX_DIR)" \ 
     29                CROSS_COMPILE="$(TARGET_CROSS)" \ 
     30                ARCH="$(LINUX_KARCH)" \ 
    2931                PATH="$(TARGET_PATH)" \ 
    30                 ARCH="$(LINUX_KARCH)" \ 
    31                 CROSS_COMPILE="$(TARGET_CROSS)" \ 
    32                 KERNEL_VERSION="$(KERNEL_VERSION)" \ 
    33                 KERNEL_DIR="$(KERNEL_DIR)" \ 
     32                SUBDIRS="$(PKG_BUILD_DIR)" \ 
    3433                EXTRA_CFLAGS="-DBCMGPIO2" \ 
    35                 all 
     34                modules 
    3635        touch $@ 
    3736         
  • trunk/openwrt/target/linux/package/switch/src/Makefile

    r2776 r2779  
    1111# 
    1212 
    13 KERNEL_VERSION = $(shell uname -r | cut -d. -f1,2) 
     13obj-m   := switch-core.o switch-adm.o switch-robo.o 
     14export-objs := switch-core.o 
    1415 
    15 obj-m   := switch-core.o switch-adm.o switch-robo.o 
    16  
    17 ifeq ($(KERNEL_VERSION),2.4) 
    18  
    19 O_TARGET := $(obj-m) 
    20  
     16ifeq ($(MAKING_MODULES),1) 
    2117-include $(TOPDIR)/Rules.make 
    22  
    2318endif 
    24  
    25 all: modules 
    26  
    27 modules: 
    28         $(MAKE) -C $(KERNEL_DIR) SUBDIRS=$(shell pwd) TOPDIR="$(KERNEL_DIR)" modules 
Note: See TracChangeset for help on using the changeset viewer.