mkimage: sunxi_egon: refactor for multi-architecture support
authorIcenowy Zheng <icenowy@aosc.io>
Fri, 15 Oct 2021 01:53:05 +0000 (20:53 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 4 Apr 2022 22:24:17 +0000 (23:24 +0100)
commit82ae151aeefed596196b6163ac23d97141931b64
tree670c8620014183b019ebd6f80736c0ca110ff293
parentc2d08f01100a13de87f6745250db3a50fc3fbb97
mkimage: sunxi_egon: refactor for multi-architecture support

Refactor some functions in mkimage sunxi_egon type, in order to prepare
for adding support for more CPU architectures (e.g. RISC-V). In
addition, compatibility for operation w/o specified architecture is
kept, in this case the architecture is assumed as ARM.

Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
tools/sunxi_egon.c