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