summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/C/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools/Source/C/GNUmakefile')
-rw-r--r--BaseTools/Source/C/GNUmakefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/BaseTools/Source/C/GNUmakefile b/BaseTools/Source/C/GNUmakefile
index df4eb64ea9..464f432774 100644
--- a/BaseTools/Source/C/GNUmakefile
+++ b/BaseTools/Source/C/GNUmakefile
@@ -26,6 +26,9 @@ ifndef HOST_ARCH
else ifneq (,$(findstring arm,$(uname_m)))
HOST_ARCH=ARM
endif
+ ifneq (,$(findstring riscv64,$(uname_m)))
+ HOST_ARCH=RISCV64
+ endif
ifndef HOST_ARCH
$(info Could not detected HOST_ARCH from uname results)
$(error HOST_ARCH is not defined!)