From d39ea7019cb204420c53a203ff9ccbb4cab0d4b3 Mon Sep 17 00:00:00 2001 From: Richard Weinberger Date: Tue, 26 Apr 2016 22:09:08 +0200 Subject: Change build system to autotools This patch is largely based on Richards original RFC. The major differences to the RFC patch are: - Add missing sumtools & mtdpart targets - Fix name of mkfs.jffs2 target - Add missing subdir-objects option for non-recursive make - Move all automake options to configure.ac - Add manpages to install target - Make XATTR & LZO support configurable - Install binaries to sbin directory like in the old build system - Install flash_erase wrapper script - Add files missing from distribution target Signed-off-by: David Oberhollenzer Signed-off-by: Richard Weinberger --- misc-utils/Makemodule.am | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 misc-utils/Makemodule.am (limited to 'misc-utils') diff --git a/misc-utils/Makemodule.am b/misc-utils/Makemodule.am new file mode 100644 index 0000000..ce1c385 --- /dev/null +++ b/misc-utils/Makemodule.am @@ -0,0 +1,54 @@ +ftl_format_SOURCES = misc-utils/ftl_format.c + +doc_loadbios_SOURCES = misc-utils/doc_loadbios.c + +ftl_check_SOURCES = misc-utils/ftl_check.c + +mtd_debug_SOURCES = misc-utils/mtd_debug.c + +mtdpart_SOURCES = misc-utils/mtdpart.c + +docfdisk_SOURCES = misc-utils/docfdisk.c + +serve_image_SOURCES = misc-utils/serve_image.c +serve_image_LDADD = libmtd.a + +recv_image_SOURCES = misc-utils/recv_image.c +recv_image_LDADD = libmtd.a + +flash_lock_SOURCES = misc-utils/flash_lock.c + +flash_unlock_SOURCES = misc-utils/flash_unlock.c + +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_write_SOURCES = misc-utils/flash_otp_write.c + +flashcp_SOURCES = misc-utils/flashcp.c + +flash_erase_SOURCES = misc-utils/flash_erase.c +flash_erase_LDADD = libmtd.a + +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 + +MISC_SH = \ + misc-utils/flash_eraseall + +MISC_EXTRA = \ + misc-utils/MAKEDEV + +MISC_HEADER = \ + misc-utils/mcast_image.h + +EXTRA_DIST += $(MISC_HEADER) $(MISC_EXTRA) $(MISC_SH) + +sbin_PROGRAMS += $(MISC_BINS) +sbin_SCRIPTS += $(MISC_SH) -- cgit v1.2.3