Changeset 4002


Ignore:
Timestamp:
2006-06-18T22:44:34+02:00 (10 years ago)
Author:
nico
Message:

move wlcompat from target/linux/package/ to package/.

Location:
branches/buildroot-ng/openwrt/package/wlcompat
Files:
1 added
2 deleted
3 copied
1 moved

Legend:

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

    r3998 r4002  
    33include $(TOPDIR)/rules.mk 
    44 
    5 PKG_NAME := kmod-wlcompat 
    6 PKG_RELEASE := 3 
    7 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) 
     5PKG_NAME:=kmod-wlcompat 
     6PKG_RELEASE:=3 
     7 
     8PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) 
    89 
    910include $(TOPDIR)/package/rules.mk 
    10  
    11 $(eval $(call PKG_template,KMOD_WLCOMPAT,$(PKG_NAME),$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)))) 
    12 $(eval $(call PKG_template,KMOD_WLCOMPAT_DEBUG,$(PKG_NAME)-debug,$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)))) 
    1311 
    1412WLCOMPAT_FLAGS:=$(TARGET_CFLAGS) -D__KERNEL__ -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 \ 
    1513                -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 \ 
    1614                -Wa,-mips32 -Wa,--trap -DMODULE -mlong-calls -fno-common -I. -I linux-2.4 -funsigned-char -nostdinc \ 
    17                 -iwithprefix include -I$(LINUX_DIR)/include -I$(LINUX_DIR)/include/asm/gcc -I$(STAGING_DIR)/usr/include -c 
     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 
    1816 
    19 $(PKG_BUILD_DIR)/.prepared: 
    20         mkdir -p $(PKG_BUILD_DIR) 
    21         touch $@ 
     17define Package/kmod-wlcompat 
     18SECTION:=drivers 
     19CATEGORY:=Drivers 
     20DEPENDS:= 
     21TITLE:=Wrapper providing Wireless Extensions for Broadcom wl module 
     22DESCRIPTION:= \\\ 
     23A wrapper module, that provides Wireless Extension support for the \\\ 
     24proprietary Broadcom wl module. 
     25VERSION:=$(LINUX_VERSION)+$(BOARD)-$(PKG_RELEASE) 
     26endef 
    2227 
    23 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/wlcompat.o $(PKG_BUILD_DIR)/wlcompat-debug.o 
    24         touch $@ 
    25          
    26 $(PKG_BUILD_DIR)/wlcompat.o: $(PKG_BUILD_DIR)/.prepared 
    27         $(TARGET_CC) $(WLCOMPAT_FLAGS) -o $@ wlcompat.c 
     28define Package/kmod-wlcompat-debug 
     29$(call Package/kmod-wlcompat) 
     30TITLE:=Wrapper providing Wireless Extensions for Broadcom wl module (debug) 
     31DESCRIPTION:= \\\ 
     32A wrapper module, that provides Wireless Extension support for the \\\ 
     33proprietary Broadcom wl module. 
     34endef 
    2835 
    29 $(PKG_BUILD_DIR)/wlcompat-debug.o: $(PKG_BUILD_DIR)/.prepared 
    30         $(TARGET_CC) -DDEBUG $(WLCOMPAT_FLAGS) -o $@ wlcompat.c 
     36define 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 
     39endef 
    3140 
    32 $(IPKG_KMOD_WLCOMPAT): $(PKG_BUILD_DIR)/wlcompat.o 
    33         mkdir -p $(IDIR_KMOD_WLCOMPAT)/etc/modules.d 
    34         echo "wlcompat" > $(IDIR_KMOD_WLCOMPAT)/etc/modules.d/30-wlcompat 
    35         mkdir -p $(IDIR_KMOD_WLCOMPAT)/lib/modules/$(LINUX_VERSION) 
    36         $(CP) $(PKG_BUILD_DIR)/wlcompat.o $(IDIR_KMOD_WLCOMPAT)/lib/modules/$(LINUX_VERSION)/ 
    37         $(IPKG_BUILD) $(IDIR_KMOD_WLCOMPAT) $(PACKAGE_DIR) 
     41define Package/kmod-wlcompat/install 
     42        install -d -m0755 $(1)/etc/modules.d 
     43        echo "wlcompat" > $(1)/etc/modules.d/30-wlcompat 
     44        install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION) 
     45        $(CP) $(PKG_BUILD_DIR)/wlcompat.o $(1)/lib/modules/$(LINUX_VERSION)/ 
     46endef 
    3847 
    39 $(IPKG_KMOD_WLCOMPAT_DEBUG): $(PKG_BUILD_DIR)/wlcompat-debug.o 
    40         mkdir -p $(IDIR_KMOD_WLCOMPAT_DEBUG)/lib/modules/$(LINUX_VERSION) 
    41         $(CP) $(PKG_BUILD_DIR)/wlcompat-debug.o $(IDIR_KMOD_WLCOMPAT_DEBUG)/lib/modules/$(LINUX_VERSION)/ 
    42         $(IPKG_BUILD) $(IDIR_KMOD_WLCOMPAT_DEBUG) $(PACKAGE_DIR) 
     48define Package/kmod-wlcompat-debug/install 
     49        install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION) 
     50        $(CP) $(PKG_BUILD_DIR)/wlcompat-debug.o $(1)/lib/modules/$(LINUX_VERSION)/ 
     51endef 
    4352 
     53$(eval $(call BuildPackage,kmod-wlcompat)) 
     54$(eval $(call BuildPackage,kmod-wlcompat-debug)) 
Note: See TracChangeset for help on using the changeset viewer.