aboutsummaryrefslogtreecommitdiff
path: root/ubi-utils/Makefile
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-04-26 09:01:12 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-11 12:05:50 +0300
commit32252f2b902d88f2991d260f2982b10b2016c33b (patch)
tree3081ae785d80c563837815a5b053747f0c9d1f34 /ubi-utils/Makefile
parente7454c3c3928ee7af7e76c0521f477881c9bf60f (diff)
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 <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/Makefile')
-rw-r--r--ubi-utils/Makefile10
1 files changed, 7 insertions, 3 deletions
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