[U-Boot] [PATCH v3 6/9] gzip: add a function to parse the header