lzo.patch 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. diff -Nur mtd-utils-1.5.0.orig/compr.c mtd-utils-1.5.0/compr.c
  2. --- mtd-utils-1.5.0.orig/compr.c 2012-05-07 09:19:39.000000000 +0200
  3. +++ mtd-utils-1.5.0/compr.c 2014-02-25 21:05:20.000000000 +0100
  4. @@ -517,9 +517,6 @@
  5. #ifdef CONFIG_JFFS2_RTIME
  6. jffs2_rtime_init();
  7. #endif
  8. -#ifdef CONFIG_JFFS2_LZO
  9. - jffs2_lzo_init();
  10. -#endif
  11. return 0;
  12. }
  13. @@ -531,8 +528,5 @@
  14. #ifdef CONFIG_JFFS2_ZLIB
  15. jffs2_zlib_exit();
  16. #endif
  17. -#ifdef CONFIG_JFFS2_LZO
  18. - jffs2_lzo_exit();
  19. -#endif
  20. return 0;
  21. }
  22. diff -Nur mtd-utils-1.5.0.orig/Makefile mtd-utils-1.5.0/Makefile
  23. --- mtd-utils-1.5.0.orig/Makefile 2012-05-07 09:19:39.000000000 +0200
  24. +++ mtd-utils-1.5.0/Makefile 2014-02-25 21:13:03.000000000 +0100
  25. @@ -16,27 +16,13 @@
  26. TESTS = tests
  27. -MTD_BINS = \
  28. - ftl_format flash_erase nanddump doc_loadbios \
  29. - ftl_check mkfs.jffs2 flash_lock flash_unlock \
  30. - flash_otp_info flash_otp_dump mtd_debug flashcp nandwrite nandtest \
  31. - jffs2dump \
  32. - nftldump nftl_format docfdisk \
  33. - rfddump rfdformat \
  34. - serve_image recv_image \
  35. - sumtool jffs2reader
  36. -UBI_BINS = \
  37. - ubiupdatevol ubimkvol ubirmvol ubicrc32 ubinfo ubiattach \
  38. - ubidetach ubinize ubiformat ubirename mtdinfo ubirsvol
  39. +MTD_BINS = mkfs.jffs2
  40. BINS = $(MTD_BINS)
  41. -BINS += mkfs.ubifs/mkfs.ubifs
  42. -BINS += $(addprefix ubi-utils/,$(UBI_BINS))
  43. SCRIPTS = flash_eraseall
  44. TARGETS = $(BINS)
  45. TARGETS += lib/libmtd.a
  46. -TARGETS += ubi-utils/libubi.a
  47. OBJDEPS = $(BUILDDIR)/include/version.h
  48. @@ -83,12 +69,12 @@
  49. #
  50. # Utils in top level
  51. #
  52. -obj-mkfs.jffs2 = compr_rtime.o compr_zlib.o compr_lzo.o compr.o rbtree.o
  53. -LDFLAGS_mkfs.jffs2 = $(ZLIBLDFLAGS) $(LZOLDFLAGS)
  54. -LDLIBS_mkfs.jffs2 = -lz $(LZOLDLIBS)
  55. +obj-mkfs.jffs2 = compr_rtime.o compr_zlib.o compr.o rbtree.o
  56. +LDFLAGS_mkfs.jffs2 = $(ZLIBLDFLAGS)
  57. +LDLIBS_mkfs.jffs2 = -lz
  58. -LDFLAGS_jffs2reader = $(ZLIBLDFLAGS) $(LZOLDFLAGS)
  59. -LDLIBS_jffs2reader = -lz $(LZOLDLIBS)
  60. +LDFLAGS_jffs2reader = $(ZLIBLDFLAGS)
  61. +LDLIBS_jffs2reader = -lz
  62. $(foreach v,$(MTD_BINS),$(eval $(call mkdep,,$(v))))
  63. @@ -103,7 +89,7 @@
  64. #
  65. obj-mkfs.ubifs = crc16.o lpt.o compr.o devtable.o \
  66. hashtable/hashtable.o hashtable/hashtable_itr.o
  67. -LDLIBS_mkfs.ubifs = -lz -llzo2 -lm -luuid
  68. +LDLIBS_mkfs.ubifs = -lz -lm -luuid
  69. $(call mkdep,mkfs.ubifs/,mkfs.ubifs,,ubi-utils/libubi.a)
  70. #
  71. @@ -117,6 +103,3 @@
  72. obj-mtdinfo = libubigen.a
  73. obj-ubinize = libubigen.a libiniparser.a
  74. obj-ubiformat = libubigen.a libscan.a
  75. -
  76. -$(foreach v,libubi.a libubigen.a libiniparser.a libscan.a,$(eval $(call _mkdep,ubi-utils/,$(v))))
  77. -$(foreach v,$(UBI_BINS),$(eval $(call mkdep,ubi-utils/,$(v),libubi.a ubiutils-common.o)))