From 32252f2b902d88f2991d260f2982b10b2016c33b Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Sun, 26 Apr 2009 09:01:12 +0300 Subject: ubi-utils: add sysfs interface support and new tool This large commit makes several things. 1. Switches libmtd to use the new sysfs interface 2. Implements new handy 'mtdinfo' utility 3. Does minore amendmends in libubi and some ubi-tools. Signed-off-by: Artem Bityutskiy --- ubi-utils/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'ubi-utils/Makefile') diff --git a/ubi-utils/Makefile b/ubi-utils/Makefile index dcff7e3..b5388ec 100644 --- a/ubi-utils/Makefile +++ b/ubi-utils/Makefile @@ -6,12 +6,12 @@ KERNELHDR := ../include SUBDIRS = old-utils -#CFLAGS += -Werror +# CFLAGS += -Werror CPPFLAGS += -Iinclude -Isrc -I$(KERNELHDR) LIBS = libubi libmtd libubigen libiniparser libscan TARGETS = ubiupdatevol ubimkvol ubirmvol ubicrc32 ubinfo ubiattach \ - ubidetach ubinize ubiformat ubirename + ubidetach ubinize ubiformat ubirename mtdinfo VPATH = src @@ -30,13 +30,17 @@ $(BUILDDIR)/ubinize: $(addprefix $(BUILDDIR)/,\ ubinize.o common.o crc32.o libiniparser.a libubigen.a) # $(CC) $(CFLAGS) $(filter %.o, $^) -L. -liniparser -lubigen -o $@ +$(BUILDDIR)/mtdinfo: $(addprefix $(BUILDDIR)/,\ + libmtd.a libubigen.a crc32.o common.o) +# $(CC) $(CFLAGS) $(filter %.o, $^) -L. -lmtd -lubigen -o $@ + $(BUILDDIR)/ubiformat: $(addprefix $(BUILDDIR)/,\ ubiformat.o common.o crc32.o libmtd.a libscan.a libubi.a libubigen.a) # $(CC) $(CFLAGS) $(filter %.o, $^) -L. -lmtd -lscan -lubi -lubigen -o $@ $(BUILDDIR)/libubi.a: $(BUILDDIR)/libubi.o -$(BUILDDIR)/libmtd.a: $(BUILDDIR)/libmtd.o +$(BUILDDIR)/libmtd.a: $(BUILDDIR)/libmtd.o $(BUILDDIR)/libmtd_legacy.o $(BUILDDIR)/libubigen.a: $(BUILDDIR)/libubigen.o -- cgit v1.2.3