aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-08-01 09:46:36 -0600
committerTom Rini <trini@konsulko.com>2019-08-11 16:43:41 -0400
commit0c670fc1481d2296f1f5837ea5c15cfbdaed710c (patch)
tree8ef8e9be714983218248ee61ea2d33ccc828a146 /lib
parent0d6c7c60ea17c2323c1f78dbc71343d537dd33e3 (diff)
downloadu-boot-0c670fc1481d2296f1f5837ea5c15cfbdaed710c.zip
u-boot-0c670fc1481d2296f1f5837ea5c15cfbdaed710c.tar.gz
u-boot-0c670fc1481d2296f1f5837ea5c15cfbdaed710c.tar.bz2
common: Move gzip functions into a new gzip header
As part of the effort to remove things from common.h, create a new header for the gzip functions. Move the function declarations to it and add missing documentation. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/fdtdec.c1
-rw-r--r--lib/gunzip.c5
-rw-r--r--lib/gzip.c1
3 files changed, 5 insertions, 2 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 3ee786b..464de5b 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -11,6 +11,7 @@
#include <errno.h>
#include <fdtdec.h>
#include <fdt_support.h>
+#include <gzip.h>
#include <mapmem.h>
#include <linux/libfdt.h>
#include <serial.h>
diff --git a/lib/gunzip.c b/lib/gunzip.c
index 15c7b2c..1d65616 100644
--- a/lib/gunzip.c
+++ b/lib/gunzip.c
@@ -5,14 +5,15 @@
*/
#include <common.h>
-#include <watchdog.h>
#include <command.h>
#include <console.h>
+#include <div64.h>
+#include <gzip.h>
#include <image.h>
#include <malloc.h>
#include <memalign.h>
+#include <watchdog.h>
#include <u-boot/zlib.h>
-#include <div64.h>
#define HEADER0 '\x1f'
#define HEADER1 '\x8b'
diff --git a/lib/gzip.c b/lib/gzip.c
index 674d732..c6c0ec8 100644
--- a/lib/gzip.c
+++ b/lib/gzip.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <watchdog.h>
#include <command.h>
+#include <gzip.h>
#include <image.h>
#include <malloc.h>
#include <memalign.h>