3 include $(TOPDIR
)/rules.mk
7 PKG_VERSION
:=r1358-20051215
9 PKG_MD5SUM
:=0ef00a095359e5af313f52446ebfbbf1
11 PKG_SOURCE_URL
:=http
://snapshots.madwifi.org
/madwifi-ng
12 PKG_SOURCE
:=$(PKG_NAME
)-ng-
$(PKG_VERSION
).
tar.gz
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-ng-
$(PKG_VERSION
)
18 KERNEL_DIR
:=$(LINUX_DIR
)
22 HAL_TARGET
:=mips-be-elf
25 HAL_TARGET
:=mips-le-elf
31 include $(TOPDIR
)/package
/rules.mk
33 $(eval
$(call PKG_template
,KMOD_MADWIFI
,kmod-madwifi
,$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
),$(ARCH
),kernel-
$(LINUX_VERSION
)-$(BOARD
) ($(KERNEL_RELEASE
))))
35 $(PKG_BUILD_DIR
)/.configured
:
38 $(PKG_BUILD_DIR
)/.built
:
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 PATH
="$(TARGET_PATH)" \
41 ARCH
="$(LINUX_KARCH)" \
42 CROSS_COMPILE
="$(TARGET_CROSS)" \
43 TARGET
="$(HAL_TARGET)" \
44 TOOLPREFIX
="$(KERNEL_CROSS)" \
45 KERNELPATH
="$(KERNEL_DIR)" \
50 mkdir
-p
$(IDIR_KMOD_MADWIFI
)/etc
/modules.d
51 mkdir
-p
$(IDIR_KMOD_MADWIFI
)/etc
/init.d
52 mkdir
-p
$(IDIR_KMOD_MADWIFI
)/lib
/modules
/$(LINUX_VERSION
)
53 install -m0644 .
/files
/madwifi.modules
$(IDIR_KMOD_MADWIFI
)/etc
/modules.d
/20-madwifi
54 install -m0755 .
/files
/madwifi.init
$(IDIR_KMOD_MADWIFI
)/etc
/init.d
/S20madwifi
55 cp
-fpR
$(PKG_BUILD_DIR
)/net80211
/wlan
*.
$(LINUX_KMOD_SUFFIX
) \
56 $(PKG_BUILD_DIR
)/ath_hal
/ath_hal.
$(LINUX_KMOD_SUFFIX
) \
57 $(PKG_BUILD_DIR
)/ath
/ath_pci.
$(LINUX_KMOD_SUFFIX
) \
58 $(PKG_BUILD_DIR
)/ath_rate
/sample
/ath_rate_sample.
$(LINUX_KMOD_SUFFIX
) \
59 $(IDIR_KMOD_MADWIFI
)/lib
/modules
/$(LINUX_VERSION
)/
60 $(IPKG_BUILD
) $(IDIR_KMOD_MADWIFI
) $(PACKAGE_DIR
)
62 $(STAGING_DIR
)/usr
/include/madwifi
/net80211
/ieee80211.h
: $(PKG_BUILD_DIR
)/.built
63 mkdir
-p
$(STAGING_DIR
)/usr
/include/madwifi
64 cp
-fpR
$(PKG_BUILD_DIR
)/include $(STAGING_DIR
)/usr
/include/madwifi
/
65 mkdir
-p
$(STAGING_DIR
)/usr
/include/madwifi
/net80211
66 cp
-fpR
$(PKG_BUILD_DIR
)/net80211
/*.h
$(STAGING_DIR
)/usr
/include/madwifi
/net80211
/
69 install-dev
: $(STAGING_DIR
)/usr
/include/madwifi
/net80211
/ieee80211.h
72 rm -rf
$(STAGING_DIR
)/usr
/include/madwifi
74 compile-targets
: install-dev
75 clean-targets
: uninstall-dev