lib.mk 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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/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/crc-ccitt/description
  16. Kernel module for CRC-CCITT support
  17. endef
  18. $(eval $(call KernelPackage,crc-ccitt))
  19. define KernelPackage/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/crc-itu-t/description
  27. Kernel module for CRC ITU-T V.41 support
  28. endef
  29. $(eval $(call KernelPackage,crc-itu-t))
  30. define KernelPackage/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/crc7/description
  38. Kernel module for CRC7 support
  39. endef
  40. $(eval $(call KernelPackage,crc7))
  41. define KernelPackage/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. $(call SetDepends/crc16)
  48. endef
  49. define KernelPackage/crc16/description
  50. Kernel module for CRC16 support
  51. endef
  52. $(eval $(call KernelPackage,crc16))
  53. define KernelPackage/libcrc32c
  54. SUBMENU:=$(LIB_MENU)
  55. TITLE:=CRC32 library support
  56. KCONFIG:=CONFIG_LIBCRC32C
  57. DEPENDS:=+kmod-crypto-core +kmod-crypto-misc
  58. FILES:=$(LINUX_DIR)/lib/libcrc32c.ko
  59. AUTOLOAD:=$(call AutoLoad,20,crc32c libcrc32c,1)
  60. endef
  61. define KernelPackage/libcrc32c/description
  62. Kernel module for CRC32 support
  63. endef
  64. $(eval $(call KernelPackage,libcrc32c))
  65. define KernelPackage/textsearch
  66. SUBMENU:=$(LIB_MENU)
  67. TITLE:=Textsearch support is selected if needed
  68. KCONFIG:= \
  69. CONFIG_TEXTSEARCH=y \
  70. CONFIG_TEXTSEARCH_KMP \
  71. CONFIG_TEXTSEARCH_BM \
  72. CONFIG_TEXTSEARCH_FSM
  73. FILES:= \
  74. $(LINUX_DIR)/lib/ts_kmp.ko \
  75. $(LINUX_DIR)/lib/ts_bm.ko \
  76. $(LINUX_DIR)/lib/ts_fsm.ko
  77. AUTOLOAD:=$(call AutoLoad,20,ts_kmp ts_bm ts_fsm)
  78. endef
  79. $(eval $(call KernelPackage,textsearch))
  80. define KernelPackage/zlib
  81. SUBMENU:=$(LIB_MENU)
  82. TITLE:=zlib support is selected if needed
  83. KCONFIG:=CONFIG_ZLIB_DEFLATE
  84. FILES:=$(LINUX_DIR)/lib/zlib_deflate/zlib_deflate.ko
  85. AUTOLOAD:=$(call AutoLoad,08,zlib_deflate,1)
  86. endef
  87. $(eval $(call KernelPackage,zlib))