add ubi flashing tool
[project/fstools.git] / CMakeLists.txt
index f371263..4845954 100644 (file)
@@ -6,14 +6,14 @@ ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations)
 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
 
 ADD_EXECUTABLE(fs-state fs-state.c
-               backend/base.c
-               backend/snapshot.c
-               backend/extroot.c
-               backend/jffs2.c
-                       lib/mtd.c
-               lib/mount.c
-               lib/find.c)
-
+               libfstools/mount_root.c
+               libfstools/snapshot.c
+               libfstools/extroot.c
+               libfstools/jffs2.c
+               libfstools/volume.c
+               libfstools/mtd.c
+               libfstools/mount.c
+               libfstools/find.c)
 TARGET_LINK_LIBRARIES(fs-state ubox)
 INSTALL(TARGETS fs-state RUNTIME DESTINATION sbin)
 
@@ -23,7 +23,16 @@ ADD_EXECUTABLE(block block.c
                libblkid-tiny/ext.c
                libblkid-tiny/jffs2.c
                libblkid-tiny/vfat.c
+               libblkid-tiny/hfs.c
                libblkid-tiny/swap.c
+               libblkid-tiny/ubifs.c
                libblkid-tiny/squashfs.c)
 TARGET_LINK_LIBRARIES(block uci ubox blobmsg_json)
 INSTALL(TARGETS block RUNTIME DESTINATION sbin)
+
+ADD_EXECUTABLE(ubi ubi.c
+               libubi/libubi.c
+               libubi/libubi-tiny.c
+               libubi/ubiutils-common.c)
+
+INSTALL(TARGETS ubi RUNTIME DESTINATION sbin)