diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-26 15:12:26 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-26 16:23:04 +0200 |
commit | 9ba41c4dc891e38c92126bfcc4c366d765841da0 (patch) | |
tree | 5d095e949421d86dc2e2df83245405bbf7c84945 /ubi-utils/Makefile | |
parent | 126341588c5e9d9077e31c4a5f550c83b2e3e93d (diff) |
ubi-utils: add ubiattach and ubidetach
Add 2 new utilities to attach and detach UBI devices.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/Makefile')
-rw-r--r-- | ubi-utils/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ubi-utils/Makefile b/ubi-utils/Makefile index abd5dc4..9fd862d 100644 --- a/ubi-utils/Makefile +++ b/ubi-utils/Makefile @@ -15,7 +15,8 @@ CFLAGS := -I./inc -I./src -I$(KERNELHDR) $(OPTFLAGS) -Werror \ PERLPROGS = mkpfi ubicrc32.pl TARGETS = ubiupdate ubimkvol ubirmvol pfiflash pddcustomize ubimirror \ - bin2nand nand2bin ubigen mkbootenv unubi pfi2bin ubicrc32 ubinfo + bin2nand nand2bin ubigen mkbootenv unubi pfi2bin ubicrc32 ubinfo \ + ubiattach ubidetach vpath %.c ./src @@ -31,11 +32,17 @@ IGNORE=${wildcard .*.c.dep} -include ${IGNORE} clean: - rm -rf *.o $(TARGETS) .*.c.dep + rm -rf *.o $(TARGETS) .*.c.dep libubi.a libubi: libubi.o ar cr libubi.a libubi.o +ubidetach: ubidetach.o common.o libubi.o + $(CC) $(LDFLAGS) -o $@ $^ + +ubiattach: ubiattach.o common.o libubi.o + $(CC) $(LDFLAGS) -o $@ $^ + ubinfo: ubinfo.o common.o libubi.o $(CC) $(LDFLAGS) -o $@ $^ |