Skip to content

Commit

Permalink
Release GNU Tools for STM32 12.3.rel1.20240107-1100
Browse files Browse the repository at this point in the history
Signed-off-by: Yvan ROUX <[email protected]>
  • Loading branch information
yroux committed Jan 25, 2024
1 parent 955c925 commit e9fbe12
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
25 changes: 23 additions & 2 deletions build-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ if [ "x$skip_native_build" != "xyes" ] ; then
--enable-interwork \
--enable-plugins \
--with-sysroot=$INSTALLDIR_NATIVE/arm-none-eabi \
--with-zstd=no \
"--with-pkgversion=$PKGVERSION"

make -j$JOBS
Expand Down Expand Up @@ -311,6 +312,7 @@ if [ "x$skip_native_build" != "xyes" ] ; then
--with-gnu-ld \
--with-python-dir=share/gcc-arm-none-eabi \
--with-sysroot=$INSTALLDIR_NATIVE/arm-none-eabi \
--with-zstd=no \
${GCC_CONFIG_OPTS} \
"${GCC_CONFIG_OPTS_LCPP}" \
"--with-pkgversion=$PKGVERSION" \
Expand Down Expand Up @@ -434,6 +436,7 @@ if [ "x$skip_native_build" != "xyes" ] ; then
--with-headers=yes \
--with-python-dir=share/gcc-arm-none-eabi \
--with-sysroot=$INSTALLDIR_NATIVE/arm-none-eabi \
--with-zstd=no \
$GCC_CONFIG_OPTS \
"${GCC_CONFIG_OPTS_LCPP}" \
"--with-pkgversion=$PKGVERSION" \
Expand Down Expand Up @@ -493,6 +496,7 @@ if [ "x$skip_native_build" != "xyes" ] ; then
--with-headers=yes \
--with-python-dir=share/gcc-arm-none-eabi \
--with-sysroot=$BUILDDIR_NATIVE/target-libs/arm-none-eabi \
--with-zstd=no \
$GCC_CONFIG_OPTS \
"${GCC_CONFIG_OPTS_LCPP}" \
"--with-pkgversion=$PKGVERSION" \
Expand Down Expand Up @@ -541,6 +545,7 @@ if [ "x$skip_native_build" != "xyes" ] ; then
--with-libexpat \
--with-lzma=no \
--with-system-gdbinit=$INSTALLDIR_NATIVE/$HOST_NATIVE/arm-none-eabi/lib/gdbinit \
--with-zstd=no \
$GDB_CONFIG_OPTS \
$GDB_EXTRA_CONFIG_OPTS \
'--with-gdb-datadir='\''${prefix}'\''/arm-none-eabi/share/gdb' \
Expand Down Expand Up @@ -674,7 +679,23 @@ if [ "x$skip_native_build" != "xyes" ] ; then
time ${TAR} czf $PACKAGEDIR/${PACKAGE_NAME_NATIVE}-build.tar.gz --owner=0 --group=0 build-native/
time ${TAR} czf $PACKAGEDIR/${PACKAGE_NAME_NATIVE}-install.tar.gz --owner=0 --group=0 install-native/
popd
fi # end of if [ "x$skip_package_bins" != "xyes" ]; then
fi

# Validate binaries on macos
if [ "x$BUILD" == "xx86_64-apple-darwin10" ]; then
echo Task [III-14] /Validate tool dependencies/
invalid=()
while read line; do
if objdump -macho --dylibs-used "$line" | grep -q '/usr/local/'; then
invalid+=($line)
fi
done <<< $(find $INSTALLDIR_NATIVE/ -type f | xargs file | grep "Mach-O " | cut -d: -f1)

if [ ${#invalid[@]} -ne 0 ]; then
echo -e "Illegal dependency detected!${invalid[@]/#/\\n}\nAborting..."
exit 1
fi
fi
fi #if [ "x$skip_native_build" != "xyes" ] ; then

# skip building mingw32 toolchain if "--skip_mingw32" specified
Expand Down Expand Up @@ -932,7 +953,7 @@ if [ "x$skip_mingw32" != "xyes" ] ; then
time ${TAR} czf $PACKAGEDIR/${PACKAGE_NAME_MINGW}-build.tar.gz --owner=0 --group=0 build-mingw/
time ${TAR} czf $PACKAGEDIR/${PACKAGE_NAME_MINGW}-install.tar.gz --owner=0 --group=0 install-mingw/
popd
fi #end of if [ "x$skip_package_bins" != "xyes" ]; then
fi
fi #end of if [ "x$skip_mingw32" != "xyes" ] ;

if [ "x$skip_package_sources" != "xyes" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ main()
test02();
test03();
test04();
test05();
#ifndef SIMULATOR_TEST
test05();
test06();
#endif
}
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ main()
test02();
test03();
test04();
test05();
#ifndef SIMULATOR_TEST
test05();
test06();
#endif
}

0 comments on commit e9fbe12

Please sign in to comment.