3 include $(TOPDIR
)/rules.mk
7 PKG_VERSION
:=2005-09-16
9 PKG_MD5SUM
:=af6959c971ffa1b38ec171833834b845
11 PKG_SOURCE_URL
:=http
://madwifi.otaku42.de
/2005/09/
12 PKG_SOURCE
:=$(PKG_NAME
)-cvs-snapshot-
$(PKG_VERSION
).
tar.bz2
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
18 KERNEL_DIR
:=$(LINUX_DIR
)
22 HAL_TARGET
:=mips-be-elf
25 HAL_TARGET
:=mips-le-elf
37 include $(TOPDIR
)/package
/rules.mk
39 $(eval
$(call PKG_template
,KMOD_MADWIFI
,kmod-madwifi
,$(LINUX_VERSION
)$(BOARD
)+$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
),kernel-
$(LINUX_VERSION
)-$(BOARD
) ($(KERNEL_RELEASE
))))
41 $(PKG_BUILD_DIR
)/.configured
:
44 $(PKG_BUILD_DIR
)/.built
:
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 PATH
="$(TARGET_PATH)" \
47 ARCH
="$(LINUX_KARCH)" \
48 TARGET
="$(HAL_TARGET)" \
49 TOOLPREFIX
="$(KERNEL_CROSS)" \
50 KERNELPATH
="$(KERNEL_DIR)"
54 mkdir
-p
$(IDIR_KMOD_MADWIFI
)/etc
/modules.d
55 mkdir
-p
$(IDIR_KMOD_MADWIFI
)/etc
/init.d
56 mkdir
-p
$(IDIR_KMOD_MADWIFI
)/lib
/modules
/$(LINUX_VERSION
)
57 install -m0644 .
/files
/madwifi.modules
$(IDIR_KMOD_MADWIFI
)/etc
/modules.d
/20-madwifi
58 install -m0755 .
/files
/madwifi.init
$(IDIR_KMOD_MADWIFI
)/etc
/init.d
/S20madwifi
59 cp
-fpR
$(PKG_BUILD_DIR
)/net80211
/wlan
*.
$(MODUL_SUFFIX
) \
60 $(PKG_BUILD_DIR
)/ath_hal
/ath_hal.
$(MODUL_SUFFIX
) \
61 $(PKG_BUILD_DIR
)/ath_rate
/sample
/ath_rate_sample.
$(MODUL_SUFFIX
) \
62 $(PKG_BUILD_DIR
)/ath
/ath_pci.
$(MODUL_SUFFIX
) \
63 $(IDIR_KMOD_MADWIFI
)/lib
/modules
/$(LINUX_VERSION
)/
64 $(IPKG_BUILD
) $(IDIR_KMOD_MADWIFI
) $(PACKAGE_DIR
)
66 $(STAGING_DIR
)/usr
/include/madwifi
/net80211
/ieee80211.h
: $(PKG_BUILD_DIR
)/.built
67 mkdir
-p
$(STAGING_DIR
)/usr
/include/madwifi
68 cp
-fpR
$(PKG_BUILD_DIR
)/include $(STAGING_DIR
)/usr
/include/madwifi
/
69 mkdir
-p
$(STAGING_DIR
)/usr
/include/madwifi
/net80211
70 cp
-fpR
$(PKG_BUILD_DIR
)/net80211
/*.h
$(STAGING_DIR
)/usr
/include/madwifi
/net80211
/
73 install-dev
: $(STAGING_DIR
)/usr
/include/madwifi
/net80211
/ieee80211.h
76 rm -rf
$(STAGING_DIR
)/usr
/include/madwifi
78 compile-targets
: install-dev
79 clean-targets
: uninstall-dev