From 5c332c2a4625519a2b6065b9d9fc724e84c9b6d6 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 29 Apr 2020 22:02:23 -0700
Subject: [PATCH] Add support for riscv32 CPU

Upstream-Status: Inappropriate [not a debian architecture]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 data/cputable                 | 1 +
 scripts/Dpkg/Vendor/Debian.pm | 1 +
 2 files changed, 2 insertions(+)

diff --git a/data/cputable b/data/cputable
index 575c008e3..7a801a03a 100644
--- a/data/cputable
+++ b/data/cputable
@@ -43,6 +43,7 @@ powerpc		powerpc		(powerpc|ppc)		32	big
 powerpcel	powerpcle	powerpcle		32	little
 ppc64		powerpc64	(powerpc|ppc)64		64	big
 ppc64el		powerpc64le	powerpc64le		64	little
+riscv32		riscv32		riscv32			32	little
 riscv64		riscv64		riscv64			64	little
 s390		s390		s390			32	big
 s390x		s390x		s390x			64	big
diff --git a/scripts/Dpkg/Vendor/Debian.pm b/scripts/Dpkg/Vendor/Debian.pm
index edf94bc19..d76f97494 100644
--- a/scripts/Dpkg/Vendor/Debian.pm
+++ b/scripts/Dpkg/Vendor/Debian.pm
@@ -216,6 +216,7 @@ sub set_build_features {
         powerpc
         ppc64
         ppc64el
+        riscv32
         riscv64
         s390x
         sparc
