Makefile 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= mac80211
  7. PKG_VERSION:= 2009-05-01
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= abc949ec3f7cc57302cca814d9b9c6cd
  10. PKG_DESCR:= Linux wireless framework (SoftMAC)
  11. PKG_SECTION:= kernel
  12. PKG_URL:= http://wireless.kernel.org
  13. PKG_SITES:= http://www.orbit-lab.org/kernel/compat-wireless-2.6/2009/05/ \
  14. http://wireless.kernel.org/download/compat-wireless-2.6/
  15. PKG_DESCR_1:= ath5k driver
  16. PKG_DESCR_2:= rt61/rt2x00 driver
  17. DISTFILES:= compat-wireless-${PKG_VERSION}.tar.bz2
  18. WRKDIST= ${WRKDIR}/compat-wireless-${PKG_VERSION}
  19. include ${TOPDIR}/mk/package.mk
  20. $(eval $(call PKG_template,KMOD_MAC80211,kmod-mac80211,${KERNEL_VERSION}+${PKG_VERSION}-${DEVICE}-${PKG_RELEASE},kernel ${KERNEL_VERSION}-${DEVICE}-${KERNEL_RELEASE},${PKG_DESCR},{PKG_SECTION}))
  21. $(eval $(call PKG_template,KMOD_MAC80211_ATH5K,kmod-mac80211-ath5k,${KERNEL_VERSION}+${PKG_VERSION}-${DEVICE}-${PKG_RELEASE},kernel ${KERNEL_VERSION}-${DEVICE}-${KERNEL_RELEASE},${PKG_DESCR},{PKG_SECTION}))
  22. $(eval $(call PKG_template,KMOD_MAC80211_RT61,kmod-mac80211-rt61,${KERNEL_VERSION}+${PKG_VERSION}-${DEVICE}-${PKG_RELEASE},kernel ${KERNEL_VERSION}-${DEVICE}-${KERNEL_RELEASE},${PKG_DESCR},{PKG_SECTION}))
  23. BUILD_STYLE:= auto
  24. INSTALL_STYLE:= manual
  25. # remove entry to enable driver compilation
  26. DISABLED_DRIVERS:= CONFIG_AR9170_USB=n \
  27. CONFIG_MAC80211_HWSIM=n \
  28. CONFIG_ATH9K=n \
  29. CONFIG_IWLWIFI=n \
  30. CONFIG_IWLAGN=n \
  31. CONFIG_IWL4965=n \
  32. CONFIG_IWL5000=n \
  33. CONFIG_IWL3945=n \
  34. CONFIG_B43=n \
  35. CONFIG_B43LEGACY=n \
  36. CONFIG_LIBIPW=n \
  37. CONFIG_IPW2100=n \
  38. CONFIG_IPW2200=n \
  39. CONFIG_P54_PCI=n \
  40. CONFIG_B44=n \
  41. CONFIG_RTL8180=n \
  42. CONFIG_ADM8211=n \
  43. CONFIG_RT2800PCI=n \
  44. CONFIG_ATMEL=n \
  45. CONFIG_PCI_ATMEL=n \
  46. CONFIG_ZD1211RW=n \
  47. CONFIG_P54_USB=n \
  48. CONFIG_RTL8187=n \
  49. CONFIG_AT76C50X_USB=n \
  50. CONFIG_RT2500USB=n \
  51. CONFIG_RT2800USB=n \
  52. CONFIG_RT2X00_LIB_USB=n \
  53. CONFIG_RT73USB=n \
  54. CONFIG_P54_COMMON=n \
  55. CONFIG_SSB=n \
  56. CONFIG_LIBERTAS_USB=n \
  57. CONFIG_LIBERTAS_CS=n \
  58. CONFIG_LIBERTAS=n \
  59. CONFIG_MWL8K=n \
  60. CONFIG_USB_NET_CDCETHER=n \
  61. CONFIG_USB_NET_RNDIS_HOST=n \
  62. CONFIG_USB_NET_RNDIS_WLAN=n
  63. XAKE_FLAGS:= ARCH="${ARCH}" \
  64. CROSS_COMPILE="${TARGET_CROSS}" \
  65. KLIB_BUILD="$(LINUX_DIR)" \
  66. KLIB="${WRKINST}/lib/modules/${KERNEL_VERSION}" \
  67. MODPROBE=: \
  68. LDFLAGS="" \
  69. ${DISABLED_DRIVERS} \
  70. V=1
  71. do-install:
  72. ${INSTALL_DIR} ${IDIR_KMOD_MAC80211}/etc/modules.d/
  73. ${INSTALL_DIR} ${IDIR_KMOD_MAC80211}/lib/modules/${KERNEL_VERSION}/
  74. ${CP} ${WRKBUILD}/net/wireless/{cfg80211,lib80211,lib80211*}.ko \
  75. ${IDIR_KMOD_MAC80211}/lib/modules/${KERNEL_VERSION}/
  76. ${CP} ${WRKBUILD}/net/mac80211/mac80211.ko \
  77. ${IDIR_KMOD_MAC80211}/lib/modules/${KERNEL_VERSION}/
  78. echo "lib80211" > ${IDIR_KMOD_MAC80211}/etc/modules.d/20-mac80211
  79. echo "lib80211_crypt_ccmp" >> ${IDIR_KMOD_MAC80211}/etc/modules.d/20-mac80211
  80. echo "cfg80211" >> ${IDIR_KMOD_MAC80211}/etc/modules.d/20-mac80211
  81. echo "mac80211" >> ${IDIR_KMOD_MAC80211}/etc/modules.d/20-mac80211
  82. # driver for ath5k
  83. ${INSTALL_DIR} ${IDIR_KMOD_MAC80211_ATH5K}/etc/modules.d/
  84. ${INSTALL_DIR} ${IDIR_KMOD_MAC80211_ATH5K}/lib/modules/${KERNEL_VERSION}/
  85. ${CP} ${WRKBUILD}/drivers/net/wireless/ath/ath.ko \
  86. ${IDIR_KMOD_MAC80211_ATH5K}/lib/modules/${KERNEL_VERSION}/
  87. ${CP} ${WRKBUILD}/drivers/net/wireless/ath/ath5k/ath5k.ko \
  88. ${IDIR_KMOD_MAC80211_ATH5K}/lib/modules/${KERNEL_VERSION}/
  89. echo "ath" > ${IDIR_KMOD_MAC80211_ATH5K}/etc/modules.d/30-ath5k
  90. echo "ath5k" >> ${IDIR_KMOD_MAC80211_ATH5K}/etc/modules.d/30-ath5k
  91. # driver for rt61
  92. ${INSTALL_DIR} ${IDIR_KMOD_MAC80211_RT61}/etc/modules.d/
  93. ${INSTALL_DIR} ${IDIR_KMOD_MAC80211_RT61}/lib/modules/${KERNEL_VERSION}/
  94. ${CP} ${WRKBUILD}/drivers/misc/eeprom/eeprom_93cx6.ko \
  95. ${IDIR_KMOD_MAC80211_RT61}/lib/modules/${KERNEL_VERSION}/
  96. ${CP} ${WRKBUILD}/drivers/net/wireless/rt2x00/rt2x00*.ko \
  97. ${IDIR_KMOD_MAC80211_RT61}/lib/modules/${KERNEL_VERSION}/
  98. ${CP} ${WRKBUILD}/drivers/net/wireless/rt2x00/rt61pci.ko \
  99. ${IDIR_KMOD_MAC80211_RT61}/lib/modules/${KERNEL_VERSION}/
  100. echo "eeprom_93cx6" > ${IDIR_KMOD_MAC80211_RT61}/etc/modules.d/30-rt61
  101. echo "rt2x00lib" >> ${IDIR_KMOD_MAC80211_RT61}/etc/modules.d/30-rt61
  102. echo "rt2x00pci" >> ${IDIR_KMOD_MAC80211_RT61}/etc/modules.d/30-rt61
  103. echo "rt61pci" >> ${IDIR_KMOD_MAC80211_RT61}/etc/modules.d/30-rt61
  104. include ${TOPDIR}/mk/pkg-bottom.mk