summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Samsonov <Anton.V.Samsonov@mcst.ru>2022-08-04 11:48:23 +0300
committerThomas Heijligen <src@posteo.de>2022-08-09 11:38:18 +0000
commitbd72307a461599370694d9bf32ef70ba443366a2 (patch)
treebeae9517ee7d803265d4e1e06fa09935ef9156c0
parentef4eb1714b30afb6d98f1574dbf3316c70d19090 (diff)
downloadflashrom-bd72307a461599370694d9bf32ef70ba443366a2.tar.gz
flashrom-bd72307a461599370694d9bf32ef70ba443366a2.tar.bz2
flashrom-bd72307a461599370694d9bf32ef70ba443366a2.zip
Makefile: Add support for Elbrus (e2k) architecture
Signed-off-by: Anton Samsonov <devel@zxlab.ru> Change-Id: Ifc834e943ae93c59447afc86454b22ca662d3ef6 Reviewed-on: https://review.coreboot.org/c/flashrom/+/66426 Reviewed-by: Thomas Heijligen <src@posteo.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--Makefile2
-rw-r--r--Makefile.d/arch_test.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f73d14401..a16f35127 100644
--- a/Makefile
+++ b/Makefile
@@ -363,7 +363,7 @@ endif
# 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 077aabacf..2b988efde 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