From 8603b6f2e7782437f3af16778b231ec9c1045f09 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 3 Apr 2014 18:38:18 +0100 Subject: [PATCH] move files around Signed-off-by: John Crispin --- CMakeLists.txt | 17 ++++++++--------- {backend => libfstools}/extroot.c | 0 {lib => libfstools}/find.c | 0 {backend => libfstools}/jffs2.c | 2 +- {lib => libfstools}/mount.c | 0 backend/base.c => libfstools/mount_root.c | 2 +- {driver => libfstools}/mtd.c | 0 {backend => libfstools}/overlay.c | 2 +- {backend => libfstools}/snapshot.c | 2 +- {driver => libfstools}/volume.c | 0 {driver => libfstools}/volume.h | 0 11 files changed, 12 insertions(+), 13 deletions(-) rename {backend => libfstools}/extroot.c (100%) rename {lib => libfstools}/find.c (100%) rename {backend => libfstools}/jffs2.c (99%) rename {lib => libfstools}/mount.c (100%) rename backend/base.c => libfstools/mount_root.c (98%) rename {driver => libfstools}/mtd.c (100%) rename {backend => libfstools}/overlay.c (99%) rename {backend => libfstools}/snapshot.c (99%) rename {driver => libfstools}/volume.c (100%) rename {driver => libfstools}/volume.h (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5266785..b81d66c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,15 +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 - driver/volume.c - driver/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) diff --git a/backend/extroot.c b/libfstools/extroot.c similarity index 100% rename from backend/extroot.c rename to libfstools/extroot.c diff --git a/lib/find.c b/libfstools/find.c similarity index 100% rename from lib/find.c rename to libfstools/find.c diff --git a/backend/jffs2.c b/libfstools/jffs2.c similarity index 99% rename from backend/jffs2.c rename to libfstools/jffs2.c index 09c66cf..9a06ff8 100644 --- a/backend/jffs2.c +++ b/libfstools/jffs2.c @@ -28,7 +28,7 @@ #include #include "../fs-state.h" -#include "../driver/volume.h" +#include "volume.h" #define SWITCH_JFFS2 "/tmp/.switch_jffs2" diff --git a/lib/mount.c b/libfstools/mount.c similarity index 100% rename from lib/mount.c rename to libfstools/mount.c diff --git a/backend/base.c b/libfstools/mount_root.c similarity index 98% rename from backend/base.c rename to libfstools/mount_root.c index 6bb503e..ce20604 100644 --- a/backend/base.c +++ b/libfstools/mount_root.c @@ -17,7 +17,7 @@ #include "../fs-state.h" -#include "../driver/volume.h" +#include "volume.h" int backend_mount(char *name) diff --git a/driver/mtd.c b/libfstools/mtd.c similarity index 100% rename from driver/mtd.c rename to libfstools/mtd.c diff --git a/backend/overlay.c b/libfstools/overlay.c similarity index 99% rename from backend/overlay.c rename to libfstools/overlay.c index 7cd308f..85237e4 100644 --- a/backend/overlay.c +++ b/libfstools/overlay.c @@ -28,7 +28,7 @@ #include #include "../fs-state.h" -#include "../driver/volume.h" +#include "volume.h" #define SWITCH_JFFS2 "/tmp/.switch_jffs2" diff --git a/backend/snapshot.c b/libfstools/snapshot.c similarity index 99% rename from backend/snapshot.c rename to libfstools/snapshot.c index 5873f5c..bcbce94 100644 --- a/backend/snapshot.c +++ b/libfstools/snapshot.c @@ -31,7 +31,7 @@ #include #include "../fs-state.h" -#include "../driver/volume.h" +#include "volume.h" #define PATH_MAX 256 #define OWRT 0x4f575254 diff --git a/driver/volume.c b/libfstools/volume.c similarity index 100% rename from driver/volume.c rename to libfstools/volume.c diff --git a/driver/volume.h b/libfstools/volume.h similarity index 100% rename from driver/volume.h rename to libfstools/volume.h -- 2.25.1