lzo.patch 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. diff -Nur mtd-utils-1.5.orig/compr.c mtd-utils-1.5/compr.c
  2. --- mtd-utils-1.5.orig/compr.c 2013-12-24 10:42:36.000000000 +0100
  3. +++ mtd-utils-1.5/compr.c 2013-12-25 22:18:17.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.orig/Makefile mtd-utils-1.5/Makefile
  23. --- mtd-utils-1.5.orig/Makefile 2013-12-24 10:42:36.000000000 +0100
  24. +++ mtd-utils-1.5/Makefile 2013-12-25 22:22:52.000000000 +0100
  25. @@ -26,18 +26,12 @@
  26. rfddump rfdformat \
  27. serve_image recv_image \
  28. sumtool jffs2reader
  29. -UBI_BINS = \
  30. - ubiupdatevol ubimkvol ubirmvol ubicrc32 ubinfo ubiattach \
  31. - ubidetach ubinize ubiformat ubirename mtdinfo ubirsvol
  32. BINS = $(MTD_BINS)
  33. -BINS += mkfs.ubifs/mkfs.ubifs
  34. -BINS += $(addprefix ubi-utils/,$(UBI_BINS))
  35. SCRIPTS = flash_eraseall
  36. TARGETS = $(BINS)
  37. TARGETS += lib/libmtd.a
  38. -TARGETS += ubi-utils/libubi.a
  39. OBJDEPS = $(BUILDDIR)/include/version.h
  40. @@ -84,12 +78,12 @@
  41. #
  42. # Utils in top level
  43. #
  44. -obj-mkfs.jffs2 = compr_rtime.o compr_zlib.o compr_lzo.o compr.o rbtree.o
  45. -LDFLAGS_mkfs.jffs2 = $(ZLIBLDFLAGS) $(LZOLDFLAGS)
  46. -LDLIBS_mkfs.jffs2 = -lz $(LZOLDLIBS)
  47. +obj-mkfs.jffs2 = compr_rtime.o compr_zlib.o compr.o rbtree.o
  48. +LDFLAGS_mkfs.jffs2 = $(ZLIBLDFLAGS)
  49. +LDLIBS_mkfs.jffs2 = -lz
  50. -LDFLAGS_jffs2reader = $(ZLIBLDFLAGS) $(LZOLDFLAGS)
  51. -LDLIBS_jffs2reader = -lz $(LZOLDLIBS)
  52. +LDFLAGS_jffs2reader = $(ZLIBLDFLAGS)
  53. +LDLIBS_jffs2reader = -lz
  54. $(foreach v,$(MTD_BINS),$(eval $(call mkdep,,$(v))))
  55. @@ -104,8 +98,8 @@
  56. #
  57. obj-mkfs.ubifs = crc16.o lpt.o compr.o devtable.o \
  58. hashtable/hashtable.o hashtable/hashtable_itr.o
  59. -LDFLAGS_mkfs.ubifs = $(ZLIBLDFLAGS) $(LZOLDFLAGS) $(UUIDLDFLAGS)
  60. -LDLIBS_mkfs.ubifs = -lz -llzo2 -lm -luuid
  61. +LDFLAGS_mkfs.ubifs = $(ZLIBLDFLAGS) $(UUIDLDFLAGS)
  62. +LDLIBS_mkfs.ubifs = -lz -lm -luuid
  63. $(call mkdep,mkfs.ubifs/,mkfs.ubifs,,ubi-utils/libubi.a)
  64. #
  65. @@ -119,6 +113,3 @@
  66. obj-mtdinfo = libubigen.a
  67. obj-ubinize = libubigen.a libiniparser.a
  68. obj-ubiformat = libubigen.a libscan.a
  69. -
  70. -$(foreach v,libubi.a libubigen.a libiniparser.a libscan.a,$(eval $(call _mkdep,ubi-utils/,$(v))))
  71. -$(foreach v,$(UBI_BINS),$(eval $(call mkdep,ubi-utils/,$(v),libubi.a ubiutils-common.o)))