osbuiler: fixing USE_DOCKER for ppc64le

For building rootfs with docker, glibc based rust target should be installed on ppc64le.
Additionally, protobuf-compiler would be required on ppc64le as it is not present by default.

Fixes: #1417

Signed-off-by: Amulya Meka <amulmek1@in.ibm.com>
This commit is contained in:
Amulya Meka 2021-02-18 05:33:51 +00:00
parent e2c8c7e603
commit 5096103e7e
2 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,7 @@ RUN dnf -y update && dnf install -y \
libseccomp-devel \
libstdc++-devel \
libstdc++-static \
protobuf-compiler \
m4 \
make \
pkgconfig \

View File

@ -244,6 +244,7 @@ generate_dockerfile()
goarch=ppc64le
rustarch=powerpc64le
muslarch=powerpc64
libc=gnu
;;
"aarch64")
@ -337,7 +338,7 @@ RUN ln -sf /usr/bin/g++ /bin/musl-g++
-e "s|@OS_VERSION@|${OS_VERSION:-}|g" \
-e "s|@INSTALL_MUSL@||g" \
-e "s|@INSTALL_GO@|${install_go//$'\n'/\\n}|g" \
-e "s|@INSTALL_RUST@||g" \
-e "s|@INSTALL_RUST@|${install_rust//$'\n'/\\n}|g" \
-e "s|@SET_PROXY@|${set_proxy:-}|g" \
"${dockerfile_template}" > Dockerfile
# no musl target on s390x, will use GNU