From 2d12f3026f5f4f004437419954b8e6d362272799 Mon Sep 17 00:00:00 2001 From: Yann MAGNIN Date: Sat, 30 Jul 2022 22:27:22 +0200 Subject: [PATCH] sh-elf-vhex - v1.1.0 : Bump binutils and GCC version @update <> Makefile | use GCC version 11.3.0 and binutils 2.38 | add vxSDK security @fix <> vxsdk.toml | remove useless path modification | remove the version information <> Makefile | use the new exposed environment variables set by the vxSDK <> scripts/utils | display error string in stderr stream | remove the giteapc support <> script/[gcc|binutils]/configure | fix version listing | fix version selection --- .gitignore | 1 + Makefile | 4 ++-- patchs/binutils/2.38 | 1 + patchs/gcc/11.3.0 | 1 + scripts/binutils/configure.sh | 10 ++++++++-- scripts/gcc/configure.sh | 10 ++++++++-- 6 files changed, 21 insertions(+), 6 deletions(-) create mode 120000 patchs/binutils/2.38 create mode 120000 patchs/gcc/11.3.0 diff --git a/.gitignore b/.gitignore index e16282a..7162f0d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ build cache commit.txt +.vxsdk diff --git a/Makefile b/Makefile index 12ed10e..052b320 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -VERSION_BINUTILS := 2.37 -VERSION_GCC := 11.2.0 +VERSION_BINUTILS := 2.38 +VERSION_GCC := 11.3.0 ifeq ($(VXSDK_PREFIX_INSTALL),) $(error you need to use the vxSDK to compile this package) diff --git a/patchs/binutils/2.38 b/patchs/binutils/2.38 new file mode 120000 index 0000000..217e4eb --- /dev/null +++ b/patchs/binutils/2.38 @@ -0,0 +1 @@ +2.37 \ No newline at end of file diff --git a/patchs/gcc/11.3.0 b/patchs/gcc/11.3.0 new file mode 120000 index 0000000..db500e3 --- /dev/null +++ b/patchs/gcc/11.3.0 @@ -0,0 +1 @@ +11.2.0 \ No newline at end of file diff --git a/scripts/binutils/configure.sh b/scripts/binutils/configure.sh index af3669e..15764d1 100755 --- a/scripts/binutils/configure.sh +++ b/scripts/binutils/configure.sh @@ -50,9 +50,15 @@ esac; done # check version -list_version=$(basename $(ls -d ../../patchs/binutils/*)) +list_version='' +for tmp in $(ls -d ../../patchs/binutils/*); do + list_version="$list_version $(basename $tmp)" +done if [[ "$version" == '?' ]]; then - echo "$list_version" + echo "Binutils available versions:" + for ver in $list_version; do + echo " $ver" + done exit 0 fi if [[ ! $list_version =~ (^|[[:space:]])$version($|[[:space:]]) ]]; then diff --git a/scripts/gcc/configure.sh b/scripts/gcc/configure.sh index eb239ea..4df9b07 100755 --- a/scripts/gcc/configure.sh +++ b/scripts/gcc/configure.sh @@ -49,9 +49,15 @@ esac; done # check version -list_version=$(basename $(ls -d ../../patchs/gcc/*)) +list_version='' +for tmp in $(ls -d ../../patchs/gcc/*); do + list_version="$list_version $(basename $tmp)" +done if [[ "$version" == '?' ]]; then - echo "$list_version" + echo "GCC available versions:" + for ver in $list_version; do + echo " $ver" + done exit 0 fi if [[ ! $list_version =~ (^|[[:space:]])$version($|[[:space:]]) ]]; then