Skip to contentSkip to conversation

tools: mksunxiboot: Use sunxi_image header directly

PATCH In review Samuel Holland 2 participants 3 messages Oct 13, 2021 – Oct 15, 2021 Arm/Allwinner sunXi SoC support

lore
Share & tools
lore

Samuel Holland

author maintainer
#0 lore raw

PATCH 1/1 tools: mksunxiboot: Use sunxi_image header directly

When adding eGON support to mkimage, the struct boot_file_head definition was moved to its own header. This is the only thing mksunxiboot needed out of asm/arch/spl.h. Clean up the relative include by switching to new header.

---
We switched from using mksunxiboot to mkimage in January, so maybe it is about time to consider dropping this tool?

 tools/mksunxiboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/mksunxiboot.c +1 -1
index a18c9d98bc..becc36565b 100644
@@ -12,10 +12,10 @@
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
+#include <sunxi_image.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include "imagetool.h"
-#include "../arch/arm/include/asm/arch-sunxi/spl.h"
 
 #define STAMP_VALUE                     0x5F0A6C39
 
Signature · 1 line
2.32.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · On Tue, 12 Oct 2021 19:35:41 -0500 Samuel Holland <[email protected]> wrote:

When adding eGON support to mkimage, the struct boot_file_head definition was moved to its own header. This is the only thing mksunxiboot needed out of asm/arch/spl.h. Clean up the relative include by switching to new header.

Quoted 3 lines

---
We switched from using mksunxiboot to mkimage in January, so maybe it is about time to consider dropping this tool?

Well, is there a reason to remove it? Otherwise I don't see a problem to keep it around for a while, 9 months is not a terribly long time for some people.

Cheers,
Andre.

Quoted 20 lines
 tools/mksunxiboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/mksunxiboot.c +1 -1
index a18c9d98bc..becc36565b 100644
@@ -12,10 +12,10 @@
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
+#include <sunxi_image.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include "imagetool.h"
-#include "../arch/arm/include/asm/arch-sunxi/spl.h"
 
 #define STAMP_VALUE                     0x5F0A6C39
 
author maintainer
#2 lore raw
Quoted 12 lines · Andre Przywara
Quoted 6 lines · On Tue, 12 Oct 2021 19:35:41 -0500 Samuel Holland <[email protected]> wrote:

When adding eGON support to mkimage, the struct boot_file_head definition was moved to its own header. This is the only thing mksunxiboot needed out of asm/arch/spl.h. Clean up the relative include by switching to new header.

Quoted 7 lines
Quoted 3 lines

---
We switched from using mksunxiboot to mkimage in January, so maybe it is about time to consider dropping this tool?

Well, is there a reason to remove it? Otherwise I don't see a problem to keep it around for a while, 9 months is not a terribly long time for some people.

No, there's not a particular reason. I was reminded that this file still exists because I tried refactoring some things to isolate SPL code, and I broke it. Now that it's fixed, leaving it is not too much trouble.

Regards,
Samuel