lib.mk 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. #
  2. # Copyright (C) 2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. LIB_MENU:=Libraries
  8. define KernelPackage/lib-crc-ccitt
  9. SUBMENU:=$(LIB_MENU)
  10. TITLE:=CRC-CCITT support
  11. KCONFIG:=CONFIG_CRC_CCITT
  12. FILES:=$(LINUX_DIR)/lib/crc-ccitt.ko
  13. AUTOLOAD:=$(call AutoProbe,crc-ccitt)
  14. endef
  15. define KernelPackage/lib-crc-ccitt/description
  16. Kernel module for CRC-CCITT support
  17. endef
  18. $(eval $(call KernelPackage,lib-crc-ccitt))
  19. define KernelPackage/lib-crc-itu-t
  20. SUBMENU:=$(LIB_MENU)
  21. TITLE:=CRC ITU-T V.41 support
  22. KCONFIG:=CONFIG_CRC_ITU_T
  23. FILES:=$(LINUX_DIR)/lib/crc-itu-t.ko
  24. AUTOLOAD:=$(call AutoProbe,crc-itu-t)
  25. endef
  26. define KernelPackage/lib-crc-itu-t/description
  27. Kernel module for CRC ITU-T V.41 support
  28. endef
  29. $(eval $(call KernelPackage,lib-crc-itu-t))
  30. define KernelPackage/lib-crc7
  31. SUBMENU:=$(LIB_MENU)
  32. TITLE:=CRC7 support
  33. KCONFIG:=CONFIG_CRC7
  34. FILES:=$(LINUX_DIR)/lib/crc7.ko
  35. AUTOLOAD:=$(call AutoProbe,crc7)
  36. endef
  37. define KernelPackage/lib-crc7/description
  38. Kernel module for CRC7 support
  39. endef
  40. $(eval $(call KernelPackage,lib-crc7))
  41. define KernelPackage/lib-crc8
  42. SUBMENU:=$(LIB_MENU)
  43. TITLE:=CRC8 support
  44. KCONFIG:=CONFIG_CRC8
  45. FILES:=$(LINUX_DIR)/lib/crc8.ko
  46. AUTOLOAD:=$(call AutoProbe,crc8)
  47. endef
  48. define KernelPackage/lib-crc8/description
  49. Kernel module for CRC8 support
  50. endef
  51. $(eval $(call KernelPackage,lib-crc8))
  52. define KernelPackage/lib-crc16
  53. SUBMENU:=$(LIB_MENU)
  54. TITLE:=CRC16 support
  55. KCONFIG:=CONFIG_CRC16
  56. FILES:=$(LINUX_DIR)/lib/crc16.ko
  57. AUTOLOAD:=$(call AutoProbe,crc16)
  58. endef
  59. define KernelPackage/lib-crc16/description
  60. Kernel module for CRC16 support
  61. endef
  62. $(eval $(call KernelPackage,lib-crc16))
  63. define KernelPackage/lib-crc32c
  64. SUBMENU:=$(LIB_MENU)
  65. TITLE:=CRC32 support
  66. KCONFIG:=CONFIG_LIBCRC32C
  67. DEPENDS:=+kmod-crypto-crc32c
  68. FILES:=$(LINUX_DIR)/lib/libcrc32c.ko
  69. AUTOLOAD:=$(call AutoProbe,libcrc32c)
  70. endef
  71. define KernelPackage/lib-crc32c/description
  72. Kernel module for CRC32 support
  73. endef
  74. $(eval $(call KernelPackage,lib-crc32c))
  75. define KernelPackage/lib-lzo
  76. SUBMENU:=$(LIB_MENU)
  77. TITLE:=LZO support
  78. KCONFIG:= \
  79. CONFIG_LZO_COMPRESS \
  80. CONFIG_LZO_DECOMPRESS
  81. FILES:= \
  82. $(LINUX_DIR)/lib/lzo/lzo_compress.ko \
  83. $(LINUX_DIR)/lib/lzo/lzo_decompress.ko
  84. AUTOLOAD:=$(call AutoProbe,lzo_compress lzo_decompress)
  85. endef
  86. define KernelPackage/lib-lzo/description
  87. Kernel module for LZO compression/decompression support
  88. endef
  89. $(eval $(call KernelPackage,lib-lzo))
  90. define KernelPackage/lib-raid6
  91. SUBMENU:=$(LIB_MENU)
  92. TITLE:=RAID6 algorithm support
  93. HIDDEN:=1
  94. KCONFIG:=CONFIG_RAID6_PQ
  95. FILES:=$(LINUX_DIR)/lib/raid6/raid6_pq.ko
  96. AUTOLOAD:=$(call AutoProbe,raid6_pq)
  97. endef
  98. define KernelPackage/lib-raid6/description
  99. Kernel module for RAID6 algorithms
  100. endef
  101. $(eval $(call KernelPackage,lib-raid6))
  102. define KernelPackage/lib-xor
  103. SUBMENU:=$(LIB_MENU)
  104. TITLE:=XOR blocks algorithm support
  105. HIDDEN:=1
  106. KCONFIG:=CONFIG_XOR_BLOCKS
  107. ifneq ($(wildcard $(LINUX_DIR)/arch/arm/lib/xor-neon.ko),)
  108. FILES:= \
  109. $(LINUX_DIR)/crypto/xor.ko \
  110. $(LINUX_DIR)/arch/arm/lib/xor-neon.ko
  111. AUTOLOAD:=$(call AutoProbe,xor-neon xor)
  112. else
  113. FILES:=$(LINUX_DIR)/crypto/xor.ko
  114. AUTOLOAD:=$(call AutoProbe,xor)
  115. endif
  116. endef
  117. define KernelPackage/lib-xor/description
  118. Kernel module for XOR blocks algorithms
  119. endef
  120. $(eval $(call KernelPackage,lib-xor))
  121. define KernelPackage/lib-textsearch
  122. SUBMENU:=$(LIB_MENU)
  123. TITLE:=Textsearch support
  124. KCONFIG:= \
  125. CONFIG_TEXTSEARCH=y \
  126. CONFIG_TEXTSEARCH_KMP \
  127. CONFIG_TEXTSEARCH_BM \
  128. CONFIG_TEXTSEARCH_FSM
  129. FILES:= \
  130. $(LINUX_DIR)/lib/ts_kmp.ko \
  131. $(LINUX_DIR)/lib/ts_bm.ko \
  132. $(LINUX_DIR)/lib/ts_fsm.ko
  133. AUTOLOAD:=$(call AutoProbe,ts_kmp ts_bm ts_fsm)
  134. endef
  135. $(eval $(call KernelPackage,lib-textsearch))
  136. define KernelPackage/lib-zlib
  137. SUBMENU:=$(LIB_MENU)
  138. TITLE:=Zlib support
  139. KCONFIG:= \
  140. CONFIG_ZLIB_DEFLATE \
  141. CONFIG_ZLIB_INFLATE
  142. FILES:= \
  143. $(LINUX_DIR)/lib/zlib_deflate/zlib_deflate.ko \
  144. $(LINUX_DIR)/lib/zlib_inflate/zlib_inflate.ko
  145. AUTOLOAD:=$(call AutoProbe,zlib_deflate zlib_inflate)
  146. endef
  147. $(eval $(call KernelPackage,lib-zlib))
  148. define KernelPackage/lib-cordic
  149. SUBMENU:=$(LIB_MENU)
  150. TITLE:=Cordic function support
  151. KCONFIG:=CONFIG_CORDIC
  152. FILES:=$(LINUX_DIR)/lib/cordic.ko
  153. AUTOLOAD:=$(call AutoProbe,cordic)
  154. endef
  155. define KernelPackage/lib-cordic/description
  156. Kernel module for Cordic function support
  157. endef
  158. $(eval $(call KernelPackage,lib-cordic))