summaryrefslogtreecommitdiff
path: root/ubi-utils/new-utils/Makefile
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-04-20 12:35:32 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-04-20 18:16:01 +0300
commit66b4b7c89ae3cbaffbb075ab9eacb6434cf0c8ed (patch)
tree31c7dde7b9926fc0d3852783ca6d09c313fa133c /ubi-utils/new-utils/Makefile
parentd6f8470e777092ce5052ed7f53cae7bac85c0fcb (diff)
ubi-utils: add ubiformat
A new utility to erase MTD devices and flash UBI images, while preserving erase counters Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/new-utils/Makefile')
-rw-r--r--ubi-utils/new-utils/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/ubi-utils/new-utils/Makefile b/ubi-utils/new-utils/Makefile
index 175187e..ba4c20f 100644
--- a/ubi-utils/new-utils/Makefile
+++ b/ubi-utils/new-utils/Makefile
@@ -12,9 +12,9 @@ INCLUDEDIR=/usr/include
CC := $(CROSS)gcc
CFLAGS := -Iinclude -Isrc -I$(KERNELHDR) $(OPTFLAGS) -Werror -Wall
-LIBS = libubi libubigen libiniparser
+LIBS = libubi libmtd libubigen libiniparser libscan
UTILS = ubiupdatevol ubimkvol ubirmvol ubicrc32 ubinfo ubiattach \
- ubidetach ubinize
+ ubidetach ubinize ubiformat
vpath %.c src
@@ -38,10 +38,17 @@ ubicrc32: ubicrc32.o crc32.o
ubinize: ubinize.o common.o crc32.o libiniparser.a libubigen.a
$(CC) $(CFLAGS) $(filter %.o, $^) -L. -liniparser -lubigen -o $@
+ubiformat: ubiformat.o common.o crc32.o libmtd.a libscan.a libubi.a libubigen.a
+ $(CC) $(CFLAGS) $(filter %.o, $^) -L. -lmtd -lscan -lubi -lubigen -o $@
+
libubi.a: libubi.o
$(AR) crv $@ $^
ranlib $@
+libmtd.a: libmtd.o
+ $(AR) crv $@ $^
+ ranlib $@
+
libubigen.a: libubigen.o
$(AR) crv $@ $^
ranlib $@
@@ -50,6 +57,10 @@ libiniparser.a: libiniparser.o dictionary.o
$(AR) crv $@ $^
ranlib $@
+libscan.a: libscan.o crc32.o
+ $(AR) crv $@ $^
+ ranlib $@
+
clean:
rm -rf *.o $(addsuffix .a, $(LIBS)) $(UTILS) .*.c.dep