mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +00:00
ci: enable cross compile testing for amdgpu-plugin
Skip cross-compilation on armv7 because, among many other errors, it fails with the following: In file included from ../../include/common/lock.h:9, from ../../criu/include/files.h:9, from amdgpu_plugin.c:30: ../../include/common/asm/atomic.h:60:2: error: #error ARM architecture version (CONFIG_ARMV*) not set or unsupported. 60 | #error ARM architecture version (CONFIG_ARMV*) not set or unsupported. | ^~~~~ ../../include/common/asm/atomic.h: In function 'atomic_add_return': ../../include/common/asm/atomic.h:81:9: error: implicit declaration of function 'smp_mb' [-Werror=implicit-function-declaration] 81 | smp_mb(); | ^~~~~~ Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
2ee5844411
commit
d68205e919
@ -21,7 +21,8 @@ RUN apt-install \
|
||||
libprotobuf-c-dev:${DEBIAN_ARCH} \
|
||||
libcap-dev:${DEBIAN_ARCH} \
|
||||
libaio-dev:${DEBIAN_ARCH} \
|
||||
libnl-route-3-dev:${DEBIAN_ARCH}
|
||||
libnl-route-3-dev:${DEBIAN_ARCH} \
|
||||
libdrm-dev:${DEBIAN_ARCH}
|
||||
|
||||
ENV CROSS_COMPILE=${CROSS_TRIPLET}- \
|
||||
CROSS_ROOT=/usr/${CROSS_TRIPLET} \
|
||||
@ -39,4 +40,10 @@ ENV PATH="${PATH}:${CROSS_ROOT}/bin" \
|
||||
COPY . /criu
|
||||
WORKDIR /criu
|
||||
|
||||
RUN make mrproper && date && make -j $(nproc) zdtm && date
|
||||
# amdgpu_plugin with armv7 is not supported
|
||||
RUN make mrproper && date && \
|
||||
make -j $(nproc) && \
|
||||
if [ "$SUBARCH" != "armv7" ]; then \
|
||||
make -j $(nproc) amdgpu_plugin; \
|
||||
fi && \
|
||||
make -j $(nproc) zdtm && date
|
||||
|
Loading…
x
Reference in New Issue
Block a user