Skip to content

Commit

Permalink
Checking to do not clone but get avr-libc
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Dec 30, 2023
1 parent b39a380 commit e3d742c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/avr-gcc-build-msys2-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
with:
msystem: mingw64
update: true
install: autoconf automake bzip2 cmake git make ninja patch python texinfo wget
install: autoconf automake bzip2 cmake make ninja patch python texinfo wget
- name: avr-gcc-100-12.3.0_x86_64-w64-mingw32
shell: msys2 {0}
run: |
Expand Down
58 changes: 24 additions & 34 deletions avr-gcc-100-12.3.0_x86_64-w64-mingw32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,8 @@ echo "result_old_distro: " "result_old_distro"
echo




exit $result_old_distro





#echo
#
#
#cd $SCRIPT_DIR/gcc_build
#echo 'get tar-balls'
cd $SCRIPT_DIR/gcc_build
echo 'get tar-balls'
#wget --no-check-certificate https://github.com/facebook/zstd/releases/download/v1.5.5/zstd-1.5.5.tar.gz
#wget --no-check-certificate https://ftp.gnu.org/gnu/libiconv/libiconv-1.17.tar.gz
#wget --no-check-certificate https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz
Expand All @@ -75,9 +64,10 @@ exit $result_old_distro
#wget --no-check-certificate https://gcc.gnu.org/pub/gcc/infrastructure/cloog-0.18.1.tar.gz
#wget --no-check-certificate https://ftp.gnu.org/gnu/binutils/binutils-2.41.tar.xz
#wget --no-check-certificate https://ftp.gnu.org/gnu/gcc/gcc-12.3.0/gcc-12.3.0.tar.xz
#echo
#
#
wget --no-check-certificate https://github.com/avrdudes/avr-libc/archive/refs/tags/avr-libc-2_1_0-release.tar.gz
echo


#cd $SCRIPT_DIR/gcc_build
#echo 'build zstd'
#tar -xf zstd-1.5.5.tar.gz
Expand Down Expand Up @@ -198,15 +188,24 @@ exit $result_old_distro
#echo
#
#
#cd $SCRIPT_DIR/gcc_build
#echo 'clone and bootstrap avr-libc'
#git clone -b main --depth 1 https://github.com/avrdudes/avr-libc.git ./avr-libc
#rm -f avr-libc/tests/simulate/time/aux.c
#cd avr-libc
#./bootstrap
#echo
#ls -la $SCRIPT_DIR/local/gcc-12.3.0-avr/bin
#ls -la $SCRIPT_DIR/local/gcc-12.3.0-avr/bin/avr-g++.exe
#result_gcc=$?
#
#
#echo "result_gcc: " "result_gcc"
#echo


cd $SCRIPT_DIR/gcc_build
echo 'unpack and bootstrap avr-libc'
tar -xf avr-libc-2_1_0-release.tar.gz
rm -f avr-libc-2_1_0-release/tests/simulate/time/aux.c
cd avr-libc-2_1_0-release
./bootstrap
echo


#cd $SCRIPT_DIR/gcc_build
#echo 'add avr-gcc path'
#PATH=$SCRIPT_DIR/local/gcc-12.3.0-avr/bin:"$PATH"
Expand All @@ -219,26 +218,17 @@ exit $result_old_distro
#cd $SCRIPT_DIR/gcc_build
#echo 'build avr-libc'
#cd objdir-gcc-12.3.0-avr
#../avr-libc/configure --prefix=$SCRIPT_DIR/local/gcc-12.3.0-avr --build=x86_64-w64-mingw32 --host=avr --enable-static --disable-shared
#../avr-libc-2_1_0-release/configure --prefix=$SCRIPT_DIR/local/gcc-12.3.0-avr --build=x86_64-w64-mingw32 --host=avr --enable-static --disable-shared
#make --jobs=8
#make install
#echo
#
#
#ls -la $SCRIPT_DIR/local/gcc-12.3.0-avr/bin
#ls -la $SCRIPT_DIR/local/gcc-12.3.0-avr/bin/avr-g++.exe
#result_gcc=$?
#
#
#echo "result_gcc: " "result_gcc"
#echo
#
#
#result_total=$((result_old_distro+result_binutils+result_gcc))
#
#
#echo "result_total: " "$result_total"
#echo
##echo
#
#
#exit $result_total

0 comments on commit e3d742c

Please sign in to comment.