2
0

lib.mk 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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 AutoLoad,20,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 AutoLoad,20,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 AutoLoad,20,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. DEPENDS:= @!(LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39||LINUX_3_0)
  45. KCONFIG:=CONFIG_CRC8
  46. FILES:=$(LINUX_DIR)/lib/crc8.ko
  47. AUTOLOAD:=$(call AutoLoad,20,crc8)
  48. endef
  49. define KernelPackage/lib-crc8/description
  50. Kernel module for CRC8 support
  51. endef
  52. $(eval $(call KernelPackage,lib-crc8))
  53. define KernelPackage/lib-crc16
  54. SUBMENU:=$(LIB_MENU)
  55. TITLE:=CRC16 support
  56. KCONFIG:=CONFIG_CRC16
  57. FILES:=$(LINUX_DIR)/lib/crc16.ko
  58. AUTOLOAD:=$(call AutoLoad,20,crc16,1)
  59. endef
  60. define KernelPackage/lib-crc16/description
  61. Kernel module for CRC16 support
  62. endef
  63. $(eval $(call KernelPackage,lib-crc16))
  64. define KernelPackage/lib-crc32c
  65. SUBMENU:=$(LIB_MENU)
  66. TITLE:=CRC32 support
  67. KCONFIG:=CONFIG_LIBCRC32C
  68. DEPENDS:=+kmod-crypto-crc32c
  69. FILES:=$(LINUX_DIR)/lib/libcrc32c.ko
  70. AUTOLOAD:=$(call AutoLoad,20,libcrc32c,1)
  71. endef
  72. define KernelPackage/lib-crc32c/description
  73. Kernel module for CRC32 support
  74. endef
  75. $(eval $(call KernelPackage,lib-crc32c))
  76. define KernelPackage/lib-lzo
  77. SUBMENU:=$(LIB_MENU)
  78. TITLE:=LZO support
  79. KCONFIG:= \
  80. CONFIG_LZO_COMPRESS \
  81. CONFIG_LZO_DECOMPRESS
  82. FILES:= \
  83. $(LINUX_DIR)/lib/lzo/lzo_compress.ko \
  84. $(LINUX_DIR)/lib/lzo/lzo_decompress.ko
  85. AUTOLOAD:=$(call AutoLoad,20, lzo_compress lzo_decompress,1)
  86. endef
  87. define KernelPackage/lib-lzo/description
  88. Kernel module for LZO compression/decompression support
  89. endef
  90. $(eval $(call KernelPackage,lib-lzo))
  91. define KernelPackage/lib-textsearch
  92. SUBMENU:=$(LIB_MENU)
  93. TITLE:=Textsearch support
  94. KCONFIG:= \
  95. CONFIG_TEXTSEARCH=y \
  96. CONFIG_TEXTSEARCH_KMP \
  97. CONFIG_TEXTSEARCH_BM \
  98. CONFIG_TEXTSEARCH_FSM
  99. FILES:= \
  100. $(LINUX_DIR)/lib/ts_kmp.ko \
  101. $(LINUX_DIR)/lib/ts_bm.ko \
  102. $(LINUX_DIR)/lib/ts_fsm.ko
  103. AUTOLOAD:=$(call AutoLoad,20,ts_kmp ts_bm ts_fsm)
  104. endef
  105. $(eval $(call KernelPackage,lib-textsearch))
  106. define KernelPackage/lib-zlib
  107. SUBMENU:=$(LIB_MENU)
  108. TITLE:=Zlib support
  109. KCONFIG:=CONFIG_ZLIB_DEFLATE
  110. FILES:=$(LINUX_DIR)/lib/zlib_deflate/zlib_deflate.ko
  111. AUTOLOAD:=$(call AutoLoad,08,zlib_deflate,1)
  112. endef
  113. $(eval $(call KernelPackage,lib-zlib))
  114. define KernelPackage/lib-cordic
  115. SUBMENU:=$(LIB_MENU)
  116. TITLE:=Cordic function support
  117. DEPENDS:= @!(LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39||LINUX_3_0)
  118. KCONFIG:=CONFIG_CORDIC
  119. FILES:=$(LINUX_DIR)/lib/cordic.ko
  120. AUTOLOAD:=$(call AutoLoad,20,cordic)
  121. endef
  122. define KernelPackage/lib-cordic/description
  123. Kernel module for Cordic function support
  124. endef
  125. $(eval $(call KernelPackage,lib-cordic))