Makefile 4.4 KB

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