[PATCH] bootm: add RISC-V image type

Antony Pavlov antonynpavlov at gmail.com
Mon Mar 15 08:28:03 GMT 2021


Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
 include/image.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/image.h b/include/image.h
index fa06476845..b593ae30ef 100644
--- a/include/image.h
+++ b/include/image.h
@@ -129,6 +129,8 @@ enum {
 #define IH_ARCH IH_ARCH_AVR32
 #elif defined(CONFIG_SANDBOX)
 #define IH_ARCH IH_ARCH_SANDBOX
+#elif defined(__riscv)
+#define IH_ARCH IH_ARCH_RISCV
 #else
 #define IH_ARCH IH_ARCH_INVALID
 #endif
-- 
2.30.1




More information about the barebox mailing list