Makefile: Add support for Elbrus (e2k) architecture

Signed-off-by: Anton Samsonov <devel@zxlab.ru>
Change-Id: Ifc834e943ae93c59447afc86454b22ca662d3ef6
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/66426
Original-Reviewed-by: Thomas Heijligen <src@posteo.de>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/72342
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/Makefile b/Makefile
index 631a192..77ffd21 100644
--- a/Makefile
+++ b/Makefile
@@ -367,7 +367,7 @@
 # Additionally disable all drivers needing raw access (memory, PCI, port I/O)
 # on architectures with unknown raw access properties.
 # Right now those architectures are alpha hppa m68k sh s390
-ifneq ($(ARCH), $(filter $(ARCH), x86 mips ppc arm sparc arc))
+ifneq ($(ARCH), $(filter $(ARCH), x86 mips ppc arm sparc arc e2k))
 $(call mark_unsupported,$(DEPENDS_ON_RAW_MEM_ACCESS))
 endif
 
diff --git a/Makefile.d/arch_test.h b/Makefile.d/arch_test.h
index 8ec4d41..99f84d0 100644
--- a/Makefile.d/arch_test.h
+++ b/Makefile.d/arch_test.h
@@ -45,6 +45,8 @@
 	#define __FLASHROM_ARCH__ "s390"
 #elif defined(__arc__)
 	#define __FLASHROM_ARCH__ "arc"
+#elif defined(__e2k__)
+	#define __FLASHROM_ARCH__ "e2k"
 #else
 	#define __FLASHROM_ARCH__ "unknown"
 #endif