[U-Boot] [PATCH v2 14/18] tools: kwbimage: Factor out add_binary_header_v1