From e435dbd35e1bc6ae0ec7c348ae7f66ef7bc2eb88 Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Sat, 13 Oct 2018 16:18:06 +0100 Subject: [PATCH] Update makefile and buildsh templates for riscv64 (#9351) --- tools/niminst/buildsh.tmpl | 2 ++ tools/niminst/makefile.tmpl | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tools/niminst/buildsh.tmpl b/tools/niminst/buildsh.tmpl index f0f72888a5..acd58bda28 100644 --- a/tools/niminst/buildsh.tmpl +++ b/tools/niminst/buildsh.tmpl @@ -168,6 +168,8 @@ case $ucpu in mycpu="arm" ;; *aarch64* ) mycpu="arm64" ;; + *riscv64* ) + mycpu="riscv64" ;; *) echo 2>&1 "Error: unknown processor: $ucpu" exit 1 diff --git a/tools/niminst/makefile.tmpl b/tools/niminst/makefile.tmpl index 8913332510..aadd0e94d4 100644 --- a/tools/niminst/makefile.tmpl +++ b/tools/niminst/makefile.tmpl @@ -144,6 +144,9 @@ endif ifeq ($(ucpu),aarch64) mycpu = arm64 endif +ifeq ($(ucpu),riscv64) + mycpu = riscv64 +endif ifndef mycpu $(error unknown processor: $(ucpu)) endif