Changeset 4004


Ignore:
Timestamp:
2006-06-19T02:18:32+02:00 (10 years ago)
Author:
nico
Message:

move source file to src/ and let the kernel tree build the modules.

Location:
branches/buildroot-ng/openwrt/package/wlcompat
Files:
1 added
1 edited
1 moved

Legend:

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

    r4002 r4004  
    22 
    33include $(TOPDIR)/rules.mk 
     4include $(TOPDIR)/package/kernel.mk 
    45 
    56PKG_NAME:=kmod-wlcompat 
     
    910 
    1011include $(TOPDIR)/package/rules.mk 
    11  
    12 WLCOMPAT_FLAGS:=$(TARGET_CFLAGS) -D__KERNEL__ -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 \ 
    13                 -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 \ 
    14                 -Wa,-mips32 -Wa,--trap -DMODULE -mlong-calls -fno-common -I. -I linux-2.4 -funsigned-char -nostdinc \ 
    15                 -iwithprefix include -I$(LINUX_DIR)/include -I$(LINUX_DIR)/include/asm/gcc -I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(STAGING_DIR)/usr/include -I./src/include 
    1612 
    1713define Package/kmod-wlcompat 
     
    3430endef 
    3531 
     32define Build/Prepare 
     33        mkdir -p $(PKG_BUILD_DIR) 
     34        $(CP) ./src/* $(PKG_BUILD_DIR)/ 
     35endef 
     36 
    3637define Build/Compile 
    37         $(TARGET_CC) -c -o $(PKG_BUILD_DIR)/wlcompat.o $(WLCOMPAT_FLAGS) wlcompat.c 
    38         $(TARGET_CC) -c -o $(PKG_BUILD_DIR)/wlcompat-debug.o $(WLCOMPAT_FLAGS) -DDEBUG wlcompat.c 
     38        $(MAKE) -C "$(LINUX_DIR)" \ 
     39                CROSS_COMPILE="$(TARGET_CROSS)" \ 
     40                ARCH="$(LINUX_KARCH)" \ 
     41                PATH="$(TARGET_PATH)" \ 
     42                SUBDIRS="$(PKG_BUILD_DIR)" \ 
     43                EXTRA_CFLAGS="-DDEBUG -I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \ 
     44                modules 
     45        mv $(PKG_BUILD_DIR)/wlcompat.o $(PKG_BUILD_DIR)/wlcompat-debug.o 
     46        $(MAKE) -C "$(LINUX_DIR)" \ 
     47                CROSS_COMPILE="$(TARGET_CROSS)" \ 
     48                ARCH="$(LINUX_KARCH)" \ 
     49                PATH="$(TARGET_PATH)" \ 
     50                SUBDIRS="$(PKG_BUILD_DIR)" \ 
     51                EXTRA_CFLAGS="-I$(LINUX_DIR)/arch/mips/bcm947xx/include -I$(PKG_BUILD_DIR)/include" \ 
     52                modules 
    3953endef 
    4054 
Note: See TracChangeset for help on using the changeset viewer.