Skip to content

Commit

Permalink
[api][backend] Add support for riscv64
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-schwab committed Jan 31, 2018
1 parent 5b92984 commit 039147c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/api/api/obs.rng
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
<value>ppc64p7</value>
<value>ppc64le</value>

<value>riscv64</value>

<value>s390</value>
<value>s390x</value>

Expand Down
9 changes: 9 additions & 0 deletions src/api/db/data/20180131174510_add_riscv64.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class AddRiscv64 < ActiveRecord::Migration[5.1]
def self.up
Architecture.where(name: 'riscv64').first_or_create
end

def self.down
Architecture.find_by_name('riscv64').destroy
end
end
2 changes: 1 addition & 1 deletion src/api/db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# but kept for compatibility reasons. armv7hl is in for compatibility (soft/hard).
['aarch64', 'aarch64_ilp32', 'armv4l', 'armv5l', 'armv6l', 'armv7l', 'armv5el', 'armv6el', 'armv7el',
'armv7hl', 'armv8el', 'hppa', 'i586', 'i686', 'ia64', 'k1om', 'local', 'm68k', 'mips', 'mips32',
'mips64', 'ppc', 'ppc64', 'ppc64p7', 'ppc64le', 's390', 's390x', 'sparc', 'sparc64', 'sparc64v',
'mips64', 'ppc', 'ppc64', 'ppc64p7', 'ppc64le', 'riscv64', 's390', 's390x', 'sparc', 'sparc64', 'sparc64v',
'sparcv8', 'sparcv9', 'sparcv9v', 'x86_64'].each do |arch_name|

Architecture.where(name: arch_name).first_or_create
Expand Down
2 changes: 2 additions & 0 deletions src/backend/BSCando.pm
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ our %cando = (

'ia64' => [ 'ia64' ],

'riscv64' => [ 'riscv64' ],

's390' => [ 's390' ],
's390x' => [ 's390x', 's390:linux32' ],

Expand Down
1 change: 1 addition & 0 deletions src/backend/bs_publish
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ ARCH.ppc64p7 ppc64p7 noarch
ARCH.ppc64 ppc64 ppc noarch
ARCH.ppc64le ppc64le noarch
ARCH.ppc ppc noarch
ARCH.riscv64 riscv64 noarch
ARCH.sh4 sh4 noarch
ARCH.m68k m68k noarch
ARCH.aarch64 aarch64 aarch64_ilp32 noarch
Expand Down

0 comments on commit 039147c

Please sign in to comment.