Skip to content

Commit

Permalink
update archutil/Dockerfile images from bullseye to trixie
Browse files Browse the repository at this point in the history
Signed-off-by: yzewei <[email protected]>
  • Loading branch information
yzewei committed Dec 21, 2023
1 parent 78554a6 commit 1c50377
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
4 changes: 1 addition & 3 deletions util/archutil/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ RUN apt-get update && apt-get --no-install-recommends install -y \
binutils-powerpc64le-linux-gnu \
binutils-mips64el-linux-gnuabi64 \
binutils-mips64-linux-gnuabi64 \
binutils-loongarch64-linux-gnu \
wget xz-utils
RUN wget http://ftp.loongnix.cn/toolchain/gcc/release/loongarch/gcc8/loongson-gnu-toolchain-8.3-x86_64-loongarch64-linux-gnu-rc1.2.tar.xz \
&& tar -C /usr/local -xf loongson-gnu-toolchain-8.3-x86_64-loongarch64-linux-gnu-rc1.2.tar.xz && rm loongson-gnu-toolchain-8.3-x86_64-loongarch64-linux-gnu-rc1.2.tar.xz
ENV PATH=/usr/local/loongson-gnu-toolchain-8.3-x86_64-loongarch64-linux-gnu-rc1.2/bin:$PATH
WORKDIR /src


Expand Down
16 changes: 8 additions & 8 deletions util/archutil/detect.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ func SupportedPlatforms(noCache bool) []ocispecs.Platform {
}
}
if p := "loong64"; def.Architecture != p {
if _, err := loong64Supported(); err == nil {
arr = append(arr, linux(p))
}
}
if _, err := loong64Supported(); err == nil {
arr = append(arr, linux(p))
}
}
if p := "arm"; def.Architecture != p {
if _, err := armSupported(); err == nil {
p := linux("arm")
Expand Down Expand Up @@ -150,10 +150,10 @@ func WarnIfUnsupported(pfs []ocispecs.Platform) {
}
}
if p.Architecture == "loong64" {
if _, err := loong64Supported(); err != nil {
printPlatformWarning(p, err)
}
}
if _, err := loong64Supported(); err != nil {
printPlatformWarning(p, err)
}
}
if p.Architecture == "arm" {
if _, err := armSupported(); err != nil {
printPlatformWarning(p, err)
Expand Down

0 comments on commit 1c50377

Please sign in to comment.