tools: mtk_image: split the code of generating NAND header into a new file
authorWeijie Gao <weijie.gao@mediatek.com>
Fri, 9 Sep 2022 12:00:21 +0000 (20:00 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 23 Sep 2022 19:09:16 +0000 (15:09 -0400)
commitcadb1a858d071e4ec6afdacc9ad5c7057cae699d
tree923911ac82276a2369c0d3b5d19112b7f24b09cf
parent687e10ec49eb0231c9b2b59ee86bbefc0b86e6e1
tools: mtk_image: split the code of generating NAND header into a new file

The predefined NAND headers take too much spaces in the mtk_image.c.
Moving them into a new file can significantly improve the readability of
both mtk_image.c and the new mtk_nand_headers.c.

This is a preparation for adding more NAND headers.

Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
tools/Makefile
tools/mtk_image.c
tools/mtk_image.h
tools/mtk_nand_headers.c [new file with mode: 0644]
tools/mtk_nand_headers.h [new file with mode: 0644]