From 66b4b7c89ae3cbaffbb075ab9eacb6434cf0c8ed Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Sun, 20 Apr 2008 12:35:32 +0300 Subject: ubi-utils: add ubiformat A new utility to erase MTD devices and flash UBI images, while preserving erase counters Signed-off-by: Artem Bityutskiy --- ubi-utils/new-utils/Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'ubi-utils/new-utils/Makefile') 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 -- cgit v1.2.3