1
0

Makefile 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. BUILD_STYLE:= manual
  62. do-build:
  63. 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. $(MAKE) -C ${WRKBUILD}/
  72. do-install:
  73. ${INSTALL_DIR} ${IDIR_KMOD_MAC80211}/etc/modules.d/
  74. ${INSTALL_DIR} ${IDIR_KMOD_MAC80211}/lib/modules/${KERNEL_VERSION}/
  75. ${CP} ${WRKBUILD}/net/wireless/{cfg80211,lib80211,lib80211*}.ko \
  76. ${IDIR_KMOD_MAC80211}/lib/modules/${KERNEL_VERSION}/
  77. ${CP} ${WRKBUILD}/net/mac80211/mac80211.ko \
  78. ${IDIR_KMOD_MAC80211}/lib/modules/${KERNEL_VERSION}/
  79. echo "lib80211" > ${IDIR_KMOD_MAC80211}/etc/modules.d/20-mac80211
  80. echo "lib80211_crypt_ccmp" >> ${IDIR_KMOD_MAC80211}/etc/modules.d/20-mac80211
  81. echo "cfg80211" >> ${IDIR_KMOD_MAC80211}/etc/modules.d/20-mac80211
  82. echo "mac80211" >> ${IDIR_KMOD_MAC80211}/etc/modules.d/20-mac80211
  83. # driver for ath5k
  84. ${INSTALL_DIR} ${IDIR_KMOD_MAC80211_ATH5K}/etc/modules.d/
  85. ${INSTALL_DIR} ${IDIR_KMOD_MAC80211_ATH5K}/lib/modules/${KERNEL_VERSION}/
  86. ${CP} ${WRKBUILD}/drivers/net/wireless/ath/ath.ko \
  87. ${IDIR_KMOD_MAC80211_ATH5K}/lib/modules/${KERNEL_VERSION}/
  88. ${CP} ${WRKBUILD}/drivers/net/wireless/ath/ath5k/ath5k.ko \
  89. ${IDIR_KMOD_MAC80211_ATH5K}/lib/modules/${KERNEL_VERSION}/
  90. echo "ath" > ${IDIR_KMOD_MAC80211_ATH5K}/etc/modules.d/30-ath5k
  91. echo "ath5k" >> ${IDIR_KMOD_MAC80211_ATH5K}/etc/modules.d/30-ath5k
  92. # driver for rt61
  93. ${INSTALL_DIR} ${IDIR_KMOD_MAC80211_RT61}/etc/modules.d/
  94. ${INSTALL_DIR} ${IDIR_KMOD_MAC80211_RT61}/lib/modules/${KERNEL_VERSION}/
  95. ${CP} ${WRKBUILD}/drivers/misc/eeprom/eeprom_93cx6.ko \
  96. ${IDIR_KMOD_MAC80211_RT61}/lib/modules/${KERNEL_VERSION}/
  97. ${CP} ${WRKBUILD}/drivers/net/wireless/rt2x00/rt2x00*.ko \
  98. ${IDIR_KMOD_MAC80211_RT61}/lib/modules/${KERNEL_VERSION}/
  99. ${CP} ${WRKBUILD}/drivers/net/wireless/rt2x00/rt61pci.ko \
  100. ${IDIR_KMOD_MAC80211_RT61}/lib/modules/${KERNEL_VERSION}/
  101. echo "eeprom_93cx6" > ${IDIR_KMOD_MAC80211_RT61}/etc/modules.d/30-rt61
  102. echo "rt2x00lib" >> ${IDIR_KMOD_MAC80211_RT61}/etc/modules.d/30-rt61
  103. echo "rt2x00pci" >> ${IDIR_KMOD_MAC80211_RT61}/etc/modules.d/30-rt61
  104. echo "rt61pci" >> ${IDIR_KMOD_MAC80211_RT61}/etc/modules.d/30-rt61
  105. include ${TOPDIR}/mk/pkg-bottom.mk