wpan.mk 3.6 KB

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