aboutsummaryrefslogtreecommitdiff
path: root/misc-utils/Makemodule.am
blob: 1ce1a68efd68a3dc7b9502de8d2946605238036b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
ftl_format_SOURCES = misc-utils/ftl_format.c include/mtd_swab.h
ftl_format_SOURCES += include/mtd/ftl-user.h

doc_loadbios_SOURCES = misc-utils/doc_loadbios.c

ftl_check_SOURCES = misc-utils/ftl_check.c include/mtd_swab.h
ftl_check_SOURCES += include/mtd/ftl-user.h

mtd_debug_SOURCES = misc-utils/mtd_debug.c
mtd_debug_LDADD = libmtd.a

mtdpart_SOURCES = misc-utils/mtdpart.c
mtdpart_LDADD = libmtd.a

docfdisk_SOURCES = misc-utils/docfdisk.c include/mtd_swab.h
docfdisk_SOURCES += include/mtd/inftl-user.h include/mtd/ftl-user.h

serve_image_SOURCES = misc-utils/serve_image.c misc-utils/mcast_image.h
serve_image_LDADD = libmtd.a

recv_image_SOURCES = misc-utils/recv_image.c misc-utils/mcast_image.h
recv_image_LDADD = libmtd.a

fectest_SOURCES = misc-utils/fectest.c misc-utils/mcast_image.h
fectest_LDADD = libmtd.a

flash_lock_SOURCES = misc-utils/flash_lock.c
flash_lock_LDADD = libmtd.a

flash_unlock_SOURCES = misc-utils/flash_unlock.c
flash_unlock_LDADD = libmtd.a

flash_otp_info_SOURCES = misc-utils/flash_otp_info.c

flash_otp_dump_SOURCES = misc-utils/flash_otp_dump.c

flash_otp_lock_SOURCES = misc-utils/flash_otp_lock.c

flash_otp_erase_SOURCES = misc-utils/flash_otp_erase.c

flash_otp_write_SOURCES = misc-utils/flash_otp_write.c

flashcp_SOURCES = misc-utils/flashcp.c
flashcp_LDADD = libmtd.a

flash_erase_SOURCES = misc-utils/flash_erase.c
flash_erase_LDADD = libmtd.a

sbin_PROGRAMS += \
	ftl_format doc_loadbios ftl_check mtd_debug docfdisk \
	serve_image recv_image fectest flash_erase flash_lock \
	flash_unlock flash_otp_info flash_otp_dump flash_otp_lock \
	flash_otp_erase flash_otp_write flashcp mtdpart

MISC_SH = \
	misc-utils/flash_eraseall

if BUILD_LSMTD
lsmtd_SOURCES = misc-utils/lsmtd.c misc-utils/lsmtd_scan.c misc-utils/lsmtd.h
lsmtd_LDADD = libmtd.a libubi.a
lsmtd_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/misc-utils

sbin_PROGRAMS += lsmtd
dist_man8_MANS += misc-utils/lsmtd.8
endif

EXTRA_DIST += misc-utils/MAKEDEV $(MISC_SH)

sbin_SCRIPTS += $(MISC_SH)