summaryrefslogtreecommitdiffstats
path: root/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform.h')
-rw-r--r--platform.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/platform.h b/platform.h
index f57fd12..9cde054 100644
--- a/platform.h
+++ b/platform.h
@@ -45,9 +45,12 @@
defined(__aarch64__)
#define __FLASHROM_ARCH__ "arm"
#define IS_ARM 1
+#elif defined (__sparc__) || defined (__sparc)
+ #define __FLASHROM_ARCH__ "sparc"
+ #define IS_SPARC 1
#endif
-#if !(IS_X86 || IS_MIPS || IS_PPC || IS_ARM)
+#if !(IS_X86 || IS_MIPS || IS_PPC || IS_ARM || IS_SPARC)
#error Unknown architecture
#endif
OpenPOWER on IntegriCloud