patch-Makefile 786 B

1234567891011121314151617181920212223242526272829303132
  1. - allow disabling ubifs tools
  2. - drop the tests
  3. --- mtd-utils-ca39eb1.orig/Makefile 2012-05-07 09:19:39.000000000 +0200
  4. +++ mtd-utils-ca39eb1/Makefile 2014-06-02 23:39:37.857504666 +0200
  5. @@ -14,7 +14,7 @@ else
  6. LZOLDLIBS = -llzo2
  7. endif
  8. -TESTS = tests
  9. +#TESTS = tests
  10. MTD_BINS = \
  11. ftl_format flash_erase nanddump doc_loadbios \
  12. @@ -30,13 +30,16 @@ UBI_BINS = \
  13. ubidetach ubinize ubiformat ubirename mtdinfo ubirsvol
  14. BINS = $(MTD_BINS)
  15. -BINS += mkfs.ubifs/mkfs.ubifs
  16. -BINS += $(addprefix ubi-utils/,$(UBI_BINS))
  17. SCRIPTS = flash_eraseall
  18. TARGETS = $(BINS)
  19. TARGETS += lib/libmtd.a
  20. +
  21. +ifneq ($(WITHOUT_UBI), 1)
  22. +BINS += mkfs.ubifs/mkfs.ubifs
  23. +BINS += $(addprefix ubi-utils/,$(UBI_BINS))
  24. TARGETS += ubi-utils/libubi.a
  25. +endif
  26. OBJDEPS = $(BUILDDIR)/include/version.h