lib.mk 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. endef
  14. define KernelPackage/lib-crc-ccitt/description
  15. Kernel module for CRC-CCITT support
  16. endef
  17. $(eval $(call KernelPackage,lib-crc-ccitt))
  18. define KernelPackage/lib-crc-itu-t
  19. SUBMENU:=$(LIB_MENU)
  20. TITLE:=CRC ITU-T V.41 support
  21. KCONFIG:=CONFIG_CRC_ITU_T
  22. FILES:=$(LINUX_DIR)/lib/crc-itu-t.ko
  23. endef
  24. define KernelPackage/lib-crc-itu-t/description
  25. Kernel module for CRC ITU-T V.41 support
  26. endef
  27. $(eval $(call KernelPackage,lib-crc-itu-t))
  28. define KernelPackage/lib-crc7
  29. SUBMENU:=$(LIB_MENU)
  30. TITLE:=CRC7 support
  31. KCONFIG:=CONFIG_CRC7
  32. FILES:=$(LINUX_DIR)/lib/crc7.ko
  33. endef
  34. define KernelPackage/lib-crc7/description
  35. Kernel module for CRC7 support
  36. endef
  37. $(eval $(call KernelPackage,lib-crc7))
  38. define KernelPackage/lib-crc8
  39. SUBMENU:=$(LIB_MENU)
  40. TITLE:=CRC8 support
  41. KCONFIG:=CONFIG_CRC8
  42. FILES:=$(LINUX_DIR)/lib/crc8.ko
  43. endef
  44. define KernelPackage/lib-crc8/description
  45. Kernel module for CRC8 support
  46. endef
  47. $(eval $(call KernelPackage,lib-crc8))
  48. define KernelPackage/lib-crc16
  49. SUBMENU:=$(LIB_MENU)
  50. TITLE:=CRC16 support
  51. KCONFIG:=CONFIG_CRC16
  52. FILES:=$(LINUX_DIR)/lib/crc16.ko
  53. endef
  54. define KernelPackage/lib-crc16/description
  55. Kernel module for CRC16 support
  56. endef
  57. $(eval $(call KernelPackage,lib-crc16))
  58. define KernelPackage/lib-crc32c
  59. SUBMENU:=$(LIB_MENU)
  60. TITLE:=CRC32 support
  61. KCONFIG:=CONFIG_LIBCRC32C
  62. DEPENDS:=+kmod-crypto-crc32c
  63. FILES:=$(LINUX_DIR)/lib/libcrc32c.ko
  64. endef
  65. define KernelPackage/lib-crc32c/description
  66. Kernel module for CRC32 support
  67. endef
  68. $(eval $(call KernelPackage,lib-crc32c))
  69. define KernelPackage/lib-lzo
  70. SUBMENU:=$(LIB_MENU)
  71. TITLE:=LZO support
  72. KCONFIG:= \
  73. CONFIG_LZO_COMPRESS \
  74. CONFIG_LZO_DECOMPRESS
  75. FILES:= \
  76. $(LINUX_DIR)/lib/lzo/lzo_compress.ko \
  77. $(LINUX_DIR)/lib/lzo/lzo_decompress.ko
  78. endef
  79. define KernelPackage/lib-lzo/description
  80. Kernel module for LZO compression/decompression support
  81. endef
  82. $(eval $(call KernelPackage,lib-lzo))
  83. define KernelPackage/lib-raid6
  84. SUBMENU:=$(LIB_MENU)
  85. TITLE:=RAID6 algorithm support
  86. HIDDEN:=1
  87. KCONFIG:=CONFIG_RAID6_PQ
  88. FILES:=$(LINUX_DIR)/lib/raid6/raid6_pq.ko
  89. endef
  90. define KernelPackage/lib-raid6/description
  91. Kernel module for RAID6 algorithms
  92. endef
  93. $(eval $(call KernelPackage,lib-raid6))
  94. define KernelPackage/lib-xor
  95. SUBMENU:=$(LIB_MENU)
  96. TITLE:=XOR blocks algorithm support
  97. HIDDEN:=1
  98. KCONFIG:=CONFIG_XOR_BLOCKS
  99. FILES:=$(LINUX_DIR)/crypto/xor.ko
  100. endef
  101. define KernelPackage/lib-xor/description
  102. Kernel module for XOR blocks algorithms
  103. endef
  104. $(eval $(call KernelPackage,lib-xor))
  105. define KernelPackage/lib-textsearch
  106. SUBMENU:=$(LIB_MENU)
  107. TITLE:=Textsearch support
  108. KCONFIG:= \
  109. CONFIG_TEXTSEARCH=y \
  110. CONFIG_TEXTSEARCH_KMP \
  111. CONFIG_TEXTSEARCH_BM \
  112. CONFIG_TEXTSEARCH_FSM
  113. FILES:= \
  114. $(LINUX_DIR)/lib/ts_kmp.ko \
  115. $(LINUX_DIR)/lib/ts_bm.ko \
  116. $(LINUX_DIR)/lib/ts_fsm.ko
  117. endef
  118. $(eval $(call KernelPackage,lib-textsearch))
  119. define KernelPackage/lib-zlib
  120. SUBMENU:=$(LIB_MENU)
  121. TITLE:=Zlib support
  122. KCONFIG:= \
  123. CONFIG_ZLIB_DEFLATE \
  124. CONFIG_ZLIB_INFLATE
  125. FILES:= \
  126. $(LINUX_DIR)/lib/zlib_deflate/zlib_deflate.ko \
  127. $(LINUX_DIR)/lib/zlib_inflate/zlib_inflate.ko
  128. endef
  129. $(eval $(call KernelPackage,lib-zlib))
  130. define KernelPackage/lib-cordic
  131. SUBMENU:=$(LIB_MENU)
  132. TITLE:=Cordic function support
  133. KCONFIG:=CONFIG_CORDIC
  134. FILES:=$(LINUX_DIR)/lib/cordic.ko
  135. endef
  136. define KernelPackage/lib-cordic/description
  137. Kernel module for Cordic function support
  138. endef
  139. $(eval $(call KernelPackage,lib-cordic))