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 HAL_TARGET
:=mips-be-elf
21 HAL_TARGET
:=mips-le-elf
27 ifneq ($(BR2_LINUX_2_4_AR531X
),)
35 include $(TOPDIR
)/package
/rules.mk
37 $(eval
$(call PKG_template
,KMOD_MADWIFI
,kmod-madwifi
,$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
),$(ARCH
),kernel-
$(LINUX_VERSION
)-$(BOARD
) ($(LINUX_RELEASE
))))
39 $(PKG_BUILD_DIR
)/.configured
:
42 $(PKG_BUILD_DIR
)/.built
:
43 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
44 PATH
="$(TARGET_PATH)" \
45 ARCH
="$(LINUX_KARCH)" \
46 CROSS_COMPILE
="$(TARGET_CROSS)" \
47 TARGET
="$(HAL_TARGET)" \
48 TOOLPREFIX
="$(KERNEL_CROSS)" \
49 TOOLPATH
="$(KERNEL_CROSS)" \
50 KERNELPATH
="$(LINUX_DIR)" \
56 mkdir
-p
$(IDIR_KMOD_MADWIFI
)/etc
/modules.d
57 mkdir
-p
$(IDIR_KMOD_MADWIFI
)/etc
/init.d
58 mkdir
-p
$(IDIR_KMOD_MADWIFI
)/lib
/modules
/$(LINUX_VERSION
)
59 install -m0644 .
/files
/madwifi.modules
$(IDIR_KMOD_MADWIFI
)/etc
/modules.d
/20-madwifi
60 install -m0755 .
/files
/madwifi.init
$(IDIR_KMOD_MADWIFI
)/etc
/init.d
/S20madwifi
61 cp
-fpR
$(PKG_BUILD_DIR
)/net80211
/wlan
*.
$(LINUX_KMOD_SUFFIX
) \
62 $(PKG_BUILD_DIR
)/ath_hal
/ath_hal.
$(LINUX_KMOD_SUFFIX
) \
63 $(PKG_BUILD_DIR
)/ath
/ath_
$(bus
).
$(LINUX_KMOD_SUFFIX
) \
64 $(PKG_BUILD_DIR
)/ath_rate
/sample
/ath_rate_sample.
$(LINUX_KMOD_SUFFIX
) \
65 $(PKG_BUILD_DIR
)/net80211
/*.
$(LINUX_KMOD_SUFFIX
) \
66 $(IDIR_KMOD_MADWIFI
)/lib
/modules
/$(LINUX_VERSION
)/
67 $(IPKG_BUILD
) $(IDIR_KMOD_MADWIFI
) $(PACKAGE_DIR
)
69 $(STAGING_DIR
)/usr
/include/madwifi
/net80211
/ieee80211.h
: $(PKG_BUILD_DIR
)/.built
70 mkdir
-p
$(STAGING_DIR
)/usr
/include/madwifi
71 cp
-fpR
$(PKG_BUILD_DIR
)/include $(STAGING_DIR
)/usr
/include/madwifi
/
72 mkdir
-p
$(STAGING_DIR
)/usr
/include/madwifi
/net80211
73 cp
-fpR
$(PKG_BUILD_DIR
)/net80211
/*.h
$(STAGING_DIR
)/usr
/include/madwifi
/net80211
/
76 install-dev
: $(STAGING_DIR
)/usr
/include/madwifi
/net80211
/ieee80211.h
79 rm -rf
$(STAGING_DIR
)/usr
/include/madwifi
81 compile-targets
: install-dev
82 clean-targets
: uninstall-dev