From 45c59cf18220485f7999ab988c5b10fad385298d Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 18 Jun 2018 11:35:59 +0200 Subject: Add configure switch to disable compiling/installing lsmtd Signed-off-by: David Oberhollenzer --- misc-utils/Makemodule.am | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'misc-utils') diff --git a/misc-utils/Makemodule.am b/misc-utils/Makemodule.am index 5e70f7c..2289252 100644 --- a/misc-utils/Makemodule.am +++ b/misc-utils/Makemodule.am @@ -33,15 +33,11 @@ flashcp_SOURCES = misc-utils/flashcp.c flash_erase_SOURCES = misc-utils/flash_erase.c flash_erase_LDADD = libmtd.a -lsmtd_SOURCES = misc-utils/lsmtd.c misc-utils/lsmtd_scan.c -lsmtd_LDADD = libmtd.a libubi.a -lsmtd_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/misc-utils - MISC_BINS = \ ftl_format doc_loadbios ftl_check mtd_debug docfdisk \ serve_image recv_image flash_erase flash_lock \ flash_unlock flash_otp_info flash_otp_dump flash_otp_lock \ - flash_otp_write flashcp mtdpart lsmtd + flash_otp_write flashcp mtdpart MISC_SH = \ misc-utils/flash_eraseall @@ -53,8 +49,16 @@ MISC_HEADER = \ misc-utils/mcast_image.h \ misc-utils/lsmtd.h -MISC_MAN = \ - misc-utils/lsmtd.8 +MISC_MAN = + +if BUILD_LSMTD +lsmtd_SOURCES = misc-utils/lsmtd.c misc-utils/lsmtd_scan.c +lsmtd_LDADD = libmtd.a libubi.a +lsmtd_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/misc-utils + +MISC_BINS += lsmtd +MISC_MAN += misc-utils/lsmtd.8 +endif EXTRA_DIST += $(MISC_HEADER) $(MISC_EXTRA) $(MISC_SH) -- cgit v1.2.3