wpan.mk 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. WPAN_MENU:=Wireless Drivers
  7. define KernelPackage/ieee802154
  8. SUBMENU:=$(WPAN_MENU)
  9. TITLE:=IEEE-802.15.4 support
  10. DEPENDS:=@LINUX_4_0
  11. KCONFIG:= \
  12. CONFIG_IEEE802154 \
  13. CONFIG_IEEE802154_SOCKET=y
  14. FILES:= \
  15. $(LINUX_DIR)/net/ieee802154/ieee802154.ko \
  16. $(LINUX_DIR)/net/ieee802154/ieee802154_socket.ko@ge4.0
  17. AUTOLOAD:=$(call AutoLoad,90,ieee802154 ieee802154_socket)
  18. endef
  19. define KernelPackage/ieee802154/description
  20. IEEE Std 802.15.4 defines a low data rate, low power and low
  21. complexity short range wireless personal area networks. It was
  22. designed to organise networks of sensors, switches, etc automation
  23. devices. Maximum allowed data rate is 250 kb/s and typical personal
  24. operating space around 10m.
  25. endef
  26. $(eval $(call KernelPackage,ieee802154))
  27. define KernelPackage/mac802154
  28. SUBMENU:=$(WPAN_MENU)
  29. TITLE:=MAC-802.15.4 support
  30. DEPENDS:=+kmod-ieee802154 +kmod-crypto-aead +kmod-lib-crc-ccitt @LINUX_4_0
  31. KCONFIG:= \
  32. CONFIG_MAC802154 \
  33. CONFIG_IEEE802154_DRIVERS=y
  34. FILES:=$(LINUX_DIR)/net/mac802154/mac802154.ko
  35. AUTOLOAD:=$(call AutoLoad,91,mac802154)
  36. endef
  37. define KernelPackage/mac802154/description
  38. This option enables the hardware independent IEEE 802.15.4
  39. networking stack for SoftMAC devices (the ones implementing
  40. only PHY level of IEEE 802.15.4 standard).
  41. Note: this implementation is neither certified, nor feature
  42. complete! Compatibility with other implementations hasn't
  43. been tested yet!
  44. endef
  45. $(eval $(call KernelPackage,mac802154))
  46. define KernelPackage/fakelb
  47. SUBMENU:=$(WPAN_MENU)
  48. TITLE:=Fake LR-WPAN driver
  49. DEPENDS:=+kmod-mac802154 @LINUX_4_0
  50. KCONFIG:=CONFIG_IEEE802154_FAKELB
  51. FILES:=$(LINUX_DIR)/drivers/net/ieee802154/fakelb.ko
  52. AUTOLOAD:=$(call AutoLoad,92,fakelb)
  53. endef
  54. define KernelPackage/fakelb/description
  55. Say Y here to enable the fake driver that can emulate a net
  56. of several interconnected radio devices.
  57. endef
  58. $(eval $(call KernelPackage,fakelb))
  59. define KernelPackage/at86rf230
  60. SUBMENU:=$(WPAN_MENU)
  61. TITLE:=AT86RF230 transceiver driver
  62. DEPENDS:=+kmod-mac802154
  63. KCONFIG:=CONFIG_IEEE802154_AT86RF230 \
  64. CONFIG_SPI=y \
  65. CONFIG_SPI_MASTER=y
  66. FILES:=$(LINUX_DIR)/drivers/net/ieee802154/at86rf230.ko
  67. endef
  68. $(eval $(call KernelPackage,at86rf230))
  69. define KernelPackage/mrf24j40
  70. SUBMENU:=$(WPAN_MENU)
  71. TITLE:=MRF24J40 transceiver driver
  72. DEPENDS:=+kmod-mac802154
  73. KCONFIG:=CONFIG_IEEE802154_MRF24J40 \
  74. CONFIG_SPI=y \
  75. CONFIG_SPI_MASTER=y
  76. FILES:=$(LINUX_DIR)/drivers/net/ieee802154/mrf24j40.ko
  77. endef
  78. $(eval $(call KernelPackage,mrf24j40))
  79. define KernelPackage/cc2520
  80. SUBMENU:=$(WPAN_MENU)
  81. TITLE:=CC2520 transceiver driver
  82. DEPENDS:=+kmod-mac802154
  83. KCONFIG:=CONFIG_IEEE802154_CC2520 \
  84. CONFIG_SPI=y \
  85. CONFIG_SPI_MASTER=y
  86. FILES:=$(LINUX_DIR)/drivers/net/ieee802154/cc2520.ko
  87. endef
  88. $(eval $(call KernelPackage,cc2520))
  89. define KernelPackage/ieee802154_6lowpan
  90. SUBMENU:=$(WPAN_MENU)
  91. TITLE:= 6LoWPAN support over IEEE-802.15.4
  92. DEPENDS:=@LINUX_4_0 +kmod-6lowpan
  93. KCONFIG:=CONFIG_IEEE802154_6LOWPAN
  94. FILES:= \
  95. $(LINUX_DIR)/net/ieee802154/6lowpan/ieee802154_6lowpan.ko@ge4.0 \
  96. $(LINUX_DIR)/net/ieee802154/ieee802154_6lowpan.ko@lt4.0
  97. AUTOLOAD:=$(call AutoLoad,91,ieee802154_6lowpan)
  98. endef
  99. define KernelPackage/ieee802154_6lowpan/description
  100. IPv6 compression over IEEE 802.15.4
  101. endef
  102. $(eval $(call KernelPackage,ieee802154_6lowpan))