lib.mk 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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-crc16
  42. SUBMENU:=$(LIB_MENU)
  43. TITLE:=CRC16 support
  44. KCONFIG:=CONFIG_CRC16
  45. FILES:=$(LINUX_DIR)/lib/crc16.ko
  46. AUTOLOAD:=$(call AutoLoad,20,crc16,1)
  47. endef
  48. define KernelPackage/lib-crc16/description
  49. Kernel module for CRC16 support
  50. endef
  51. $(eval $(call KernelPackage,lib-crc16))
  52. define KernelPackage/lib-crc32c
  53. SUBMENU:=$(LIB_MENU)
  54. TITLE:=CRC32 support
  55. KCONFIG:=CONFIG_LIBCRC32C
  56. DEPENDS:=+kmod-crypto-crc32c
  57. FILES:=$(LINUX_DIR)/lib/libcrc32c.ko
  58. AUTOLOAD:=$(call AutoLoad,20,libcrc32c,1)
  59. endef
  60. define KernelPackage/lib-crc32c/description
  61. Kernel module for CRC32 support
  62. endef
  63. $(eval $(call KernelPackage,lib-crc32c))
  64. define KernelPackage/lib-lzo
  65. SUBMENU:=$(LIB_MENU)
  66. TITLE:=LZO support
  67. KCONFIG:= \
  68. CONFIG_LZO_COMPRESS \
  69. CONFIG_LZO_DECOMPRESS
  70. FILES:= \
  71. $(LINUX_DIR)/lib/lzo/lzo_compress.ko \
  72. $(LINUX_DIR)/lib/lzo/lzo_decompress.ko
  73. AUTOLOAD:=$(call AutoLoad,20, lzo_compress lzo_decompress,1)
  74. endef
  75. define KernelPackage/lib-lzo/description
  76. Kernel module for LZO compression/decompression support
  77. endef
  78. $(eval $(call KernelPackage,lib-lzo))
  79. define KernelPackage/lib-textsearch
  80. SUBMENU:=$(LIB_MENU)
  81. TITLE:=Textsearch support
  82. KCONFIG:= \
  83. CONFIG_TEXTSEARCH=y \
  84. CONFIG_TEXTSEARCH_KMP \
  85. CONFIG_TEXTSEARCH_BM \
  86. CONFIG_TEXTSEARCH_FSM
  87. FILES:= \
  88. $(LINUX_DIR)/lib/ts_kmp.ko \
  89. $(LINUX_DIR)/lib/ts_bm.ko \
  90. $(LINUX_DIR)/lib/ts_fsm.ko
  91. AUTOLOAD:=$(call AutoLoad,20,ts_kmp ts_bm ts_fsm)
  92. endef
  93. $(eval $(call KernelPackage,lib-textsearch))
  94. define KernelPackage/lib-zlib
  95. SUBMENU:=$(LIB_MENU)
  96. TITLE:=Zlib support
  97. KCONFIG:=CONFIG_ZLIB_DEFLATE
  98. FILES:=$(LINUX_DIR)/lib/zlib_deflate/zlib_deflate.ko
  99. AUTOLOAD:=$(call AutoLoad,08,zlib_deflate,1)
  100. endef
  101. $(eval $(call KernelPackage,lib-zlib))