Skip to content

Commit be4d58e

Browse files
chazapisbrandond
authored andcommitted
Add config for supporting RISC-V
Signed-off-by: Antony Chazapis <[email protected]>
1 parent 2515217 commit be4d58e

File tree

3 files changed

+88
-1
lines changed

3 files changed

+88
-1
lines changed

.drone.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,4 +257,51 @@ volumes:
257257
host:
258258
path: /var/run/docker.sock
259259

260+
---
261+
kind: pipeline
262+
type: docker
263+
name: k3s-root-linux-riscv64
264+
265+
platform:
266+
os: linux
267+
arch: amd64
268+
269+
steps:
270+
- name: build-riscv64
271+
image: rancher/dapper:v0.5.0
272+
commands:
273+
- dapper ci
274+
environment:
275+
BUILDARCH: riscv64
276+
VERBOSE: "0"
277+
volumes:
278+
- name: docker
279+
path: /var/run/docker.sock
280+
281+
- name: github-riscv64-binary-release
282+
image: plugins/github-release
283+
settings:
284+
api_key:
285+
from_secret: github_token
286+
checksum:
287+
- sha256
288+
checksum_file: CHECKSUMsum-riscv64.txt
289+
checksum_flatten: true
290+
files:
291+
- dist/k3s-*riscv64.tar
292+
prerelease: true
293+
when:
294+
event:
295+
- tag
296+
instance:
297+
- drone-publish.k3s.io
298+
ref:
299+
- refs/head/master
300+
- refs/tags/*
301+
302+
volumes:
303+
- name: docker
304+
host:
305+
path: /var/run/docker.sock
306+
260307
...

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARCH ?= amd64
2-
ALL_ARCH = amd64 arm64 arm ppc64le s390x
2+
ALL_ARCH = amd64 arm64 arm ppc64le s390x riscv64
33

44
export BUILDARCH = $(ARCH)
55
export VERBOSE ?= 1

buildroot/riscv64config

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#
2+
# Target options
3+
#
4+
BR2_ARCH_IS_64=y
5+
BR2_USE_MMU=y
6+
# BR2_arcle is not set
7+
# BR2_arceb is not set
8+
# BR2_arm is not set
9+
# BR2_armeb is not set
10+
# BR2_aarch64 is not set
11+
# BR2_aarch64_be is not set
12+
# BR2_i386 is not set
13+
# BR2_m68k is not set
14+
# BR2_microblazeel is not set
15+
# BR2_microblazebe is not set
16+
# BR2_mips is not set
17+
# BR2_mipsel is not set
18+
# BR2_mips64 is not set
19+
# BR2_mips64el is not set
20+
# BR2_nios2 is not set
21+
# BR2_or1k is not set
22+
# BR2_powerpc is not set
23+
# BR2_powerpc64 is not set
24+
# BR2_powerpc64le is not set
25+
BR2_riscv=y
26+
# BR2_s390 is not set
27+
# BR2_sh is not set
28+
# BR2_sparc is not set
29+
# BR2_sparc64 is not set
30+
# BR2_x86_64 is not set
31+
# BR2_xtensa is not set
32+
BR2_ARCH_HAS_TOOLCHAIN_BUILDROOT=y
33+
BR2_ARCH="riscv64"
34+
BR2_NORMALIZED_ARCH="riscv"
35+
BR2_ENDIAN="LITTLE"
36+
BR2_GCC_TARGET_ARCH="riscv64"
37+
BR2_BINFMT_SUPPORTS_SHARED=y
38+
BR2_READELF_ARCH_NAME="RISC-V"
39+
BR2_BINFMT_ELF=y
40+
BR2_RISCV_64=y

0 commit comments

Comments
 (0)