Requested by Marek during upstream review.

Signed-off-by: Ian Campbell <i...@hellion.org.uk>
---
 tools/mksunxiboot.c | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/tools/mksunxiboot.c b/tools/mksunxiboot.c
index 0de591b..00349d9 100644
--- a/tools/mksunxiboot.c
+++ b/tools/mksunxiboot.c
@@ -22,20 +22,13 @@ struct boot_file_head {
        uint8_t magic[8];       /* ="eGON.BT0" or "eGON.BT1", not C-style str */
        uint32_t check_sum;     /* generated by PC */
        uint32_t length;        /* generated by PC */
-#if 1
-       /* We use a simplified header, only filling in what is needed by the
-        * boot ROM. To be compatible with Allwinner tools the larger header
-        * below should be used, followed by a custom header if desired. */
+       /*
+        * We use a simplified header, only filling in what is needed
+        * by the boot ROM. To be compatible with Allwinner tools we
+        * would need to implement the proper fields here instead of
+        * padding.
+        */
        uint8_t pad[12];                /* align to 32 bytes */
-#else
-       uint32_t pub_head_size;         /* the size of boot_file_head */
-       uint8_t pub_head_vsn[4];        /* the version of boot_file_head */
-       uint8_t file_head_vsn[4];       /* the version of boot0_file_head or
-                                          boot1_file_head */
-       uint8_t Boot_vsn[4];            /* Boot version */
-       uint8_t eGON_vsn[4];            /* eGON version */
-       uint8_t platform[8];            /* platform information */
-#endif
 };
 
 #define BOOT0_MAGIC                     "eGON.BT0"
-- 
1.9.0

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to