aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock10
-rwxr-xr-xbin/cross_toolchain.rb11
3 files changed, 17 insertions, 5 deletions
diff --git a/Gemfile b/Gemfile
index 8cce09e..0a9fffa 100644
--- a/Gemfile
+++ b/Gemfile
@@ -3,3 +3,4 @@
source "https://rubygems.org"
gem 'rubyzip', '~> 2.4'
+gem "term-ansicolor", "~> 1.11"
diff --git a/Gemfile.lock b/Gemfile.lock
index 16af94a..3663415 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,7 +1,14 @@
GEM
remote: https://rubygems.org/
specs:
+ bigdecimal (3.2.2)
rubyzip (2.4.1)
+ sync (0.5.0)
+ term-ansicolor (1.11.2)
+ tins (~> 1.0)
+ tins (1.38.0)
+ bigdecimal
+ sync
PLATFORMS
ruby
@@ -9,6 +16,7 @@ PLATFORMS
DEPENDENCIES
rubyzip (~> 2.4)
+ term-ansicolor (~> 1.11)
BUNDLED WITH
- 2.6.2
+ 2.6.7
diff --git a/bin/cross_toolchain.rb b/bin/cross_toolchain.rb
index c419b76..cae2d7d 100755
--- a/bin/cross_toolchain.rb
+++ b/bin/cross_toolchain.rb
@@ -11,11 +11,12 @@ require 'open3'
require 'etc'
require 'fileutils'
require 'pathname'
+require 'term/ansicolor'
-BINUTILS_VERSION = '2.43.1'
-GLIBC_VERSION = '2.40'
-KERNEL_VERSION = '5.15.178'
-GCC_VERSION = "14.2.0"
+BINUTILS_VERSION = '2.44'
+GLIBC_VERSION = '2.41'
+KERNEL_VERSION = '5.15.185'
+GCC_VERSION = "15.1.0"
TMP = Pathname.new('./tmp')
@@ -85,6 +86,8 @@ def find_build_target(gcc_version, target)
end
def download_and_unarchive(url, target)
+ puts Term::ANSIColor.green "Downloading #{url}."
+
case File.extname url.path
when '.bz2'
archive_type = '-j'