mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
ci: add workflow for riscv64
Signed-off-by: Haorong Lu <ancientmodern4@gmail.com>
This commit is contained in:
parent
bb29067de9
commit
da6b1807ef
7 changed files with 117 additions and 2 deletions
5
scripts/build/Dockerfile.riscv64-stable-cross.hdr
Normal file
5
scripts/build/Dockerfile.riscv64-stable-cross.hdr
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
FROM ubuntu:jammy
|
||||
|
||||
ENV ARCH=riscv64
|
||||
ENV DEBIAN_ARCH=riscv64
|
||||
ENV CROSS_TRIPLET=riscv64-linux-gnu
|
||||
57
scripts/build/Dockerfile.riscv64-stable-cross.tmpl
Normal file
57
scripts/build/Dockerfile.riscv64-stable-cross.tmpl
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
COPY scripts/ci/apt-install /bin/apt-install
|
||||
|
||||
# Add the cross compiler sources
|
||||
RUN apt-get clean -y && apt-get update -y && apt-get install -y --no-install-recommends gnupg2
|
||||
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C 8D69674688B6CB36 B523E5F3FC4E5F2C
|
||||
|
||||
COPY scripts/ci/riscv64-cross/amd64-sources.list /etc/apt/sources.list
|
||||
|
||||
COPY scripts/ci/riscv64-cross/riscv64-sources.list /etc/apt/sources.list.d/
|
||||
|
||||
RUN dpkg --add-architecture ${DEBIAN_ARCH} && \
|
||||
apt-get update -y
|
||||
|
||||
# Install required packages
|
||||
RUN apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
pkg-config \
|
||||
git \
|
||||
crossbuild-essential-${DEBIAN_ARCH} \
|
||||
libc6-dev-${DEBIAN_ARCH}-cross \
|
||||
libc6-${DEBIAN_ARCH}-cross \
|
||||
libbz2-dev:${DEBIAN_ARCH} \
|
||||
libexpat1-dev:${DEBIAN_ARCH} \
|
||||
ncurses-dev:${DEBIAN_ARCH} \
|
||||
libssl-dev:${DEBIAN_ARCH} \
|
||||
protobuf-c-compiler \
|
||||
protobuf-compiler \
|
||||
python3-protobuf \
|
||||
libnl-3-dev:${DEBIAN_ARCH} \
|
||||
libprotobuf-dev:${DEBIAN_ARCH} \
|
||||
libnet-dev:${DEBIAN_ARCH} \
|
||||
libprotobuf-c-dev:${DEBIAN_ARCH} \
|
||||
libcap-dev:${DEBIAN_ARCH} \
|
||||
libaio-dev:${DEBIAN_ARCH} \
|
||||
libnl-route-3-dev:${DEBIAN_ARCH} \
|
||||
libnftables-dev:${DEBIAN_ARCH} \
|
||||
libgnutls28-dev:${DEBIAN_ARCH} \
|
||||
iproute2:${DEBIAN_ARCH}
|
||||
|
||||
ENV CROSS_COMPILE=${CROSS_TRIPLET}- \
|
||||
CROSS_ROOT=/usr/${CROSS_TRIPLET} \
|
||||
AS=/usr/bin/${CROSS_TRIPLET}-as \
|
||||
AR=/usr/bin/${CROSS_TRIPLET}-ar \
|
||||
CC=/usr/bin/${CROSS_TRIPLET}-gcc \
|
||||
CPP=/usr/bin/${CROSS_TRIPLET}-cpp \
|
||||
CXX=/usr/bin/${CROSS_TRIPLET}-g++ \
|
||||
LD=/usr/bin/${CROSS_TRIPLET}-ld \
|
||||
FC=/usr/bin/${CROSS_TRIPLET}-gfortran
|
||||
|
||||
ENV PATH="${PATH}:${CROSS_ROOT}/bin" \
|
||||
PKG_CONFIG_PATH=/usr/lib/${CROSS_TRIPLET}/pkgconfig
|
||||
|
||||
COPY . /criu
|
||||
WORKDIR /criu
|
||||
|
||||
RUN make mrproper && date && make -j $(nproc) zdtm && date
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
ARCHES := x86_64 fedora-asan fedora-rawhide armv7hf centos8
|
||||
STABLE_CROSS_ARCHES := armv7-stable-cross aarch64-stable-cross ppc64-stable-cross mips64el-stable-cross
|
||||
STABLE_CROSS_ARCHES := armv7-stable-cross aarch64-stable-cross ppc64-stable-cross mips64el-stable-cross riscv64-stable-cross
|
||||
UNSTABLE_CROSS_ARCHES := armv7-unstable-cross aarch64-unstable-cross ppc64-unstable-cross mips64el-unstable-cross
|
||||
NON_CLANG := $(UNSTABLE_CROSS_ARCHES) $(STABLE_CROSS_ARCHES)
|
||||
CREATE_DOCKERFILES := $(ARCHES) $(NON_CLANG)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue