summaryrefslogtreecommitdiff
path: root/misc-utils/Makemodule.am
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2018-06-18 11:35:59 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2018-06-18 12:22:26 +0200
commit45c59cf18220485f7999ab988c5b10fad385298d (patch)
tree10a102a4c90e96116bcbd393eb2a8b127b75841b /misc-utils/Makemodule.am
parent4e2d26611d93f522ce399b36f197dc959114b1ee (diff)
Add configure switch to disable compiling/installing lsmtd
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'misc-utils/Makemodule.am')
-rw-r--r--misc-utils/Makemodule.am18
1 files changed, 11 insertions, 7 deletions
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)