wpan.mk 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. KCONFIG:= \
  11. CONFIG_IEEE802154 \
  12. CONFIG_IEEE802154_SOCKET=y \
  13. CONFIG_IEEE802154_NL802154_EXPERIMENTAL=n
  14. FILES:= \
  15. $(LINUX_DIR)/net/ieee802154/ieee802154.ko \
  16. $(LINUX_DIR)/net/ieee802154/[email protected]
  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
  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
  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 +kmod-regmap-spi
  63. KCONFIG:=CONFIG_IEEE802154_AT86RF230 \
  64. CONFIG_IEEE802154_AT86RF230_DEBUGFS=n \
  65. CONFIG_SPI=y \
  66. CONFIG_SPI_MASTER=y
  67. FILES:=$(LINUX_DIR)/drivers/net/ieee802154/at86rf230.ko
  68. endef
  69. $(eval $(call KernelPackage,at86rf230))
  70. define KernelPackage/mrf24j40
  71. SUBMENU:=$(WPAN_MENU)
  72. TITLE:=MRF24J40 transceiver driver
  73. DEPENDS:=+kmod-mac802154 +kmod-regmap-spi
  74. KCONFIG:=CONFIG_IEEE802154_MRF24J40 \
  75. CONFIG_SPI=y \
  76. CONFIG_SPI_MASTER=y
  77. FILES:=$(LINUX_DIR)/drivers/net/ieee802154/mrf24j40.ko
  78. endef
  79. $(eval $(call KernelPackage,mrf24j40))
  80. define KernelPackage/cc2520
  81. SUBMENU:=$(WPAN_MENU)
  82. TITLE:=CC2520 transceiver driver
  83. DEPENDS:=+kmod-mac802154
  84. KCONFIG:=CONFIG_IEEE802154_CC2520 \
  85. CONFIG_SPI=y \
  86. CONFIG_SPI_MASTER=y
  87. FILES:=$(LINUX_DIR)/drivers/net/ieee802154/cc2520.ko
  88. endef
  89. $(eval $(call KernelPackage,cc2520))
  90. define KernelPackage/ieee802154_6lowpan
  91. SUBMENU:=$(WPAN_MENU)
  92. TITLE:= 6LoWPAN support over IEEE-802.15.4
  93. DEPENDS:=+kmod-6lowpan +kmod-ieee802154
  94. KCONFIG:=CONFIG_IEEE802154_6LOWPAN
  95. FILES:= \
  96. $(LINUX_DIR)/net/ieee802154/6lowpan/[email protected] \
  97. $(LINUX_DIR)/net/ieee802154/[email protected]
  98. AUTOLOAD:=$(call AutoLoad,91,ieee802154_6lowpan)
  99. endef
  100. define KernelPackage/ieee802154_6lowpan/description
  101. IPv6 compression over IEEE 802.15.4
  102. endef
  103. $(eval $(call KernelPackage,ieee802154_6lowpan))