Nico Huber has submitted this change and it was merged. ( https://review.coreboot.org/25260 )
Change subject: platform: Add riscv to known platforms ......................................................................
platform: Add riscv to known platforms
Change-Id: I724a99e2493fcbf71c2fc2d9f6a1ad607c737087 Signed-off-by: Khem Raj raj.khem@gmail.com Reviewed-on: https://review.coreboot.org/25260 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Paul Menzel paulepanter@users.sourceforge.net Reviewed-by: David Hendricks david.hendricks@gmail.com --- M platform.h 1 file changed, 4 insertions(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified David Hendricks: Looks good to me, approved Paul Menzel: Looks good to me, but someone else must approve
diff --git a/platform.h b/platform.h index e3b7674..65fe858 100644 --- a/platform.h +++ b/platform.h @@ -69,6 +69,9 @@ #elif defined (__m68k__) #define __FLASHROM_ARCH__ "m68k" #define IS_M68K 1 +#elif defined (__riscv) + #define __FLASHROM_ARCH__ "riscv" + #define IS_RISCV 1 #elif defined (__sh__) #define __FLASHROM_ARCH__ "sh" #define IS_SH 1 @@ -77,7 +80,7 @@ #define IS_S390 1 #endif
-#if !(IS_X86 || IS_MIPS || IS_PPC || IS_ARM || IS_SPARC || IS_ALPHA || IS_HPPA || IS_M68K || IS_SH || IS_S390) +#if !(IS_X86 || IS_MIPS || IS_PPC || IS_ARM || IS_SPARC || IS_ALPHA || IS_HPPA || IS_M68K || IS_RISCV || IS_SH || IS_S390) #error Unknown architecture #endif