From 2d1e23ce1162c15941a213393def72cc06ae457e Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 21 Dec 2016 15:42:12 +0100 Subject: mtd-utils: Add configure switches to disable jffsX or ubifs tools For some applications, like building a root filesystem for an embedded device, it may be desireable to only build and install a subset of the mtd-utils. This can be done throught the targets of the generated Makefile and hand picking executables, however the jffsX and ubifs utilities have external build dependencies that may not be needed. This patch adds configure switches to disable building the jffsX and ubifs utilities. Their respective build dependencies (zlib, lzo, uuid) are only requested if the tools are being built. Signed-off-by: David Oberhollenzer Reviewed-by: Richard Weinberger --- Makefile.am | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 23c1940..31b21bc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,11 +36,17 @@ EXTRA_DIST += $(GLOBAL_HEADER) $(GLOBAL_EXTRA) include lib/Makemodule.am include ubi-utils/Makemodule.am -include ubifs-utils/Makemodule.am include misc-utils/Makemodule.am include nand-utils/Makemodule.am include nor-utils/Makemodule.am + +if BUILD_UBIFS +include ubifs-utils/Makemodule.am +endif + +if BUILD_JFFSX include jffsX-utils/Makemodule.am +endif if BUILD_TESTS include tests/ubi-tests/Makemodule.am -- cgit v1.2.3