Revert "tools/ci: patch for gcc-arm-none-eabi to 11.3.Rel1 August 08, 2022"
revert this change since docker image upload always fails This reverts commit 0f3f5d091ad510f7b5f4556c8d1805b073279e51. Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
53dd0819cf
commit
8150534a2f
@ -176,19 +176,17 @@ function arm-gcc-toolchain {
|
|||||||
local flavor
|
local flavor
|
||||||
case ${os} in
|
case ${os} in
|
||||||
Darwin)
|
Darwin)
|
||||||
flavor=-darwin
|
flavor=mac
|
||||||
;;
|
;;
|
||||||
Linux)
|
Linux)
|
||||||
flavor=
|
flavor=x86_64-linux
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
cd "${prebuilt}"
|
cd "${prebuilt}"
|
||||||
wget --quiet https://developer.arm.com/-/media/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1${flavor}-x86_64-arm-none-eabi.tar.xz
|
wget --quiet https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-${flavor}.tar.bz2
|
||||||
xz -d arm-gnu-toolchain-11.3.rel1${flavor}-x86_64-arm-none-eabi.tar.xz
|
tar jxf gcc-arm-none-eabi-10.3-2021.10-${flavor}.tar.bz2
|
||||||
tar xf arm-gnu-toolchain-11.3.rel1${flavor}-x86_64-arm-none-eabi.tar
|
mv gcc-arm-none-eabi-10.3-2021.10 gcc-arm-none-eabi
|
||||||
mv arm-gnu-toolchain-11.3.rel1${flavor}-x86_64-arm-none-eabi gcc-arm-none-eabi
|
rm gcc-arm-none-eabi-10.3-2021.10-${flavor}.tar.bz2
|
||||||
patch -p0 < ${nuttx}/tools/ci/patch/arm-none-eabi-workaround-for-newlib-version-break.patch
|
|
||||||
rm arm-gnu-toolchain-11.3.rel1${flavor}-x86_64-arm-none-eabi.tar
|
|
||||||
fi
|
fi
|
||||||
arm-none-eabi-gcc --version
|
arm-none-eabi-gcc --version
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,6 @@ FROM ubuntu:20.04 AS builder-base
|
|||||||
# This should only be used for temp build images that artifacts will be copied from
|
# This should only be used for temp build images that artifacts will be copied from
|
||||||
RUN apt-get update -qq && apt-get install -y -qq \
|
RUN apt-get update -qq && apt-get install -y -qq \
|
||||||
curl \
|
curl \
|
||||||
patch \
|
|
||||||
xz-utils
|
xz-utils
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@ -85,10 +84,8 @@ WORKDIR /tools
|
|||||||
FROM nuttx-toolchain-base AS nuttx-toolchain-arm
|
FROM nuttx-toolchain-base AS nuttx-toolchain-arm
|
||||||
# Download the latest ARM GCC toolchain prebuilt by ARM
|
# Download the latest ARM GCC toolchain prebuilt by ARM
|
||||||
RUN mkdir gcc-arm-none-eabi && \
|
RUN mkdir gcc-arm-none-eabi && \
|
||||||
curl -s -L "https://developer.arm.com/-/media/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz" \
|
curl -s -L "https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2" \
|
||||||
| tar -C gcc-arm-none-eabi --strip-components 1 -xJ \
|
| tar -C gcc-arm-none-eabi --strip-components 1 -xj
|
||||||
&& curl -s -L -O "https://raw.githubusercontent.com/apache/incubator-nuttx/master/tools/ci/patch/arm-none-eabi-workaround-for-newlib-version-break.patch" \
|
|
||||||
&& patch -p0 < arm-none-eabi-workaround-for-newlib-version-break.patch
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Build image for tool required by ARM64 builds
|
# Build image for tool required by ARM64 builds
|
||||||
|
@ -1,38 +0,0 @@
|
|||||||
From 819ab4ac433b809fdaca33246e2bffa1426acc0f Mon Sep 17 00:00:00 2001
|
|
||||||
From: chao an <anchao@xiaomi.com>
|
|
||||||
Date: Tue, 11 Oct 2022 15:27:37 +0800
|
|
||||||
Subject: [PATCH] arm-none-eabi: workaround for newlib version break
|
|
||||||
|
|
||||||
Signed-off-by: chao an <anchao@xiaomi.com>
|
|
||||||
---
|
|
||||||
arm-none-eabi/include/_newlib_version.h | 15 ++++-----------
|
|
||||||
1 file changed, 4 insertions(+), 11 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/arm-none-eabi/include/_newlib_version.h gcc-arm-none-eabi/arm-none-eabi/include/_newlib_version.h
|
|
||||||
index 0dbf962e..c5d2be6d 100644
|
|
||||||
--- a/arm-none-eabi/include/_newlib_version.h
|
|
||||||
+++ gcc-arm-none-eabi/arm-none-eabi/include/_newlib_version.h
|
|
||||||
@@ -3,16 +3,9 @@
|
|
||||||
#ifndef _NEWLIB_VERSION_H__
|
|
||||||
#define _NEWLIB_VERSION_H__ 1
|
|
||||||
|
|
||||||
-/* The newlib version in string format. */
|
|
||||||
-#define _NEWLIB_VERSION "@NEWLIB_VERSION@"
|
|
||||||
-
|
|
||||||
-/* The newlib major version number. */
|
|
||||||
-#define __NEWLIB__ @NEWLIB_MAJOR_VERSION@
|
|
||||||
-
|
|
||||||
-/* The newlib minor version number. */
|
|
||||||
-#define __NEWLIB_MINOR__ @NEWLIB_MINOR_VERSION@
|
|
||||||
-
|
|
||||||
-/* The newlib patch level. */
|
|
||||||
-#define __NEWLIB_PATCHLEVEL__ @NEWLIB_PATCHLEVEL_VERSION@
|
|
||||||
+#define _NEWLIB_VERSION "4.2.0"
|
|
||||||
+#define __NEWLIB__ 4
|
|
||||||
+#define __NEWLIB_MINOR__ 2
|
|
||||||
+#define __NEWLIB_PATCHLEVEL__ 0
|
|
||||||
|
|
||||||
#endif /* !_NEWLIB_VERSION_H__ */
|
|
||||||
--
|
|
||||||
2.25.1
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user