sparse: Rename the file and header
The Android sparse image format is currently supported through a file
called aboot, which isn't really such a great name, since the sparse image
format is only used for transferring data with fastboot.
Rename the file and header to a file called "sparse", which also makes it
consistent with the header defining the image structures.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
diff --git a/common/Makefile b/common/Makefile
index 4c1b2f0..d8dc892 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -277,7 +277,7 @@
# This option is not just y/n - it can have a numeric value
ifdef CONFIG_FASTBOOT_FLASH
-obj-y += aboot.o
+obj-y += image-sparse.o
ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
obj-y += fb_mmc.o
endif
diff --git a/common/fb_mmc.c b/common/fb_mmc.c
index c698966..e4fbd8d 100644
--- a/common/fb_mmc.c
+++ b/common/fb_mmc.c
@@ -9,8 +9,8 @@
#include <errno.h>
#include <fastboot.h>
#include <fb_mmc.h>
+#include <image-sparse.h>
#include <part.h>
-#include <aboot.h>
#include <sparse_format.h>
#include <mmc.h>
diff --git a/common/fb_nand.c b/common/fb_nand.c
index 57cbde0..9ca8602 100644
--- a/common/fb_nand.c
+++ b/common/fb_nand.c
@@ -8,8 +8,8 @@
#include <config.h>
#include <common.h>
-#include <aboot.h>
#include <fastboot.h>
+#include <image-sparse.h>
#include <sparse_format.h>
#include <linux/mtd/mtd.h>
diff --git a/common/aboot.c b/common/image-sparse.c
similarity index 99%
rename from common/aboot.c
rename to common/image-sparse.c
index 6d76c1e..dffe844 100644
--- a/common/aboot.c
+++ b/common/image-sparse.c
@@ -36,9 +36,9 @@
#include <config.h>
#include <common.h>
-#include <aboot.h>
#include <div64.h>
#include <errno.h>
+#include <image-sparse.h>
#include <malloc.h>
#include <part.h>
#include <sparse_format.h>