summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2022-10-09 19:30:32 -0400
committerSolomon Peachy <pizza@shaftnet.org>2022-10-10 08:24:33 -0400
commiteb745d225d327a5878f2b84323c814a8e400c078 (patch)
tree88f915d1afa7c1a6d38db69c9830709115b8ab98
parent2928b71a69778c45c129788da24678a53ff3f562 (diff)
downloadrockbox-eb745d225d.tar.gz
rockbox-eb745d225d.zip
toolchains: Get rid of crosstool-ng builds.
Nothing current uses them, and it's surely bitrotten by now. Change-Id: I5666471896503b71839023a9137ce52ea8cc9e20
-rwxr-xr-xtools/rockboxdev.sh77
-rw-r--r--tools/toolchain-patches/crosstool-ng-1.13.2.diff13
2 files changed, 1 insertions, 89 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index 8ff5d1734c..f5283f9c90 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -189,10 +189,6 @@ gettool() {
url="$GNU_MIRROR/glibc"
;;
- crosstool-ng)
- url="http://crosstool-ng.org/download/crosstool-ng"
- ;;
-
alsa-lib)
url="ftp://ftp.alsa-project.org/pub/lib"
;;
@@ -474,16 +470,7 @@ build() {
cd build-$toolname
echo "ROCKBOXDEV: $toolname/configure"
- case $toolname in
- crosstool-ng) # ct-ng doesnt support out-of-tree build and the src folder is named differently
- toolname="crosstool-ng"
- cp -r ../$toolname-$version/* ../$toolname-$version/.version .
- ./configure --prefix=$prefix $configure_params
- ;;
- *)
- CFLAGS='-U_FORTIFY_SOURCE -fgnu89-inline -fcommon' CXXFLAGS='-std=gnu++03' ../$toolname-$version/configure --target=$target --prefix=$prefix --enable-languages=c --disable-libssp --disable-docs $configure_params
- ;;
- esac
+ CFLAGS='-U_FORTIFY_SOURCE -fgnu89-inline -fcommon' CXXFLAGS='-std=gnu++03' ../$toolname-$version/configure --target=$target --prefix=$prefix --enable-languages=c --disable-libssp --disable-docs $configure_params
echo "ROCKBOXDEV: $toolname/make"
$make $make_parallel
@@ -496,68 +483,6 @@ build() {
rm -rf build-$toolname $toolname-$version
}
-make_ctng() {
- if test -f "`which ct-ng 2>/dev/null`"; then
- ctng="ct-ng"
- else
- ctng=""
- fi
-
- if test ! -n "$ctng"; then
- if test ! -f "$prefix/bin/ct-ng"; then # look if we build it already
- build "crosstool-ng" "" "1.13.2" "crosstool-ng-1.13.2.diff"
- fi
- fi
- ctng=`PATH=$prefix/bin:$PATH which ct-ng`
-}
-
-build_ctng() {
- ctng_target="$1"
- extra="$2"
- tc_arch="$3"
- tc_host="$4"
-
- make_ctng
-
- dlurl="http://www.rockbox.org/gcc/$ctng_target"
-
- # download
- getfile "ct-ng-config" "$dlurl"
-
- test -n "$extra" && getfile "$extra" "$dlurl"
-
- # create build directory
- if test -d $builddir; then
- if test ! -w $builddir; then
- echo "ROCKBOXDEV: No write permission for $builddir"
- exit
- fi
- else
- mkdir -p $builddir
- fi
-
- # copy config and cd to $builddir
- mkdir $builddir/build-$ctng_target
- ctng_config="$builddir/build-$ctng_target/.config"
- cat "$dlwhere/ct-ng-config" | sed -e "s,\(CT_PREFIX_DIR=\).*,\1$prefix," > $ctng_config
- cd $builddir/build-$ctng_target
-
- $ctng "build"
-
- # install extras
- if test -e "$dlwhere/$extra"; then
- # verify the toolchain has sysroot support
- if test -n `cat $ctng_config | grep CT_USE_SYSROOT\=y`; then
- sysroot=`cat $ctng_config | grep CT_SYSROOT_NAME | sed -e 's,CT_SYSROOT_NAME\=\"\([a-zA-Z0-9]*\)\",\1,'`
- tar xf "$dlwhere/$extra" -C "$prefix/$tc_arch-$ctng_target-$tc_host/$sysroot"
- fi
- fi
-
- # cleanup
- cd $builddir
- rm -rf $builddir/build-$ctng_target
-}
-
# build a cross compiler toolchain for linux
# $1=target
# $2=binutils version
diff --git a/tools/toolchain-patches/crosstool-ng-1.13.2.diff b/tools/toolchain-patches/crosstool-ng-1.13.2.diff
deleted file mode 100644
index f8b13a2794..0000000000
--- a/tools/toolchain-patches/crosstool-ng-1.13.2.diff
+++ /dev/null
@@ -1,13 +0,0 @@
---- a/Makefile.in 2014-07-30 14:16:57.989859205 +0200
-+++ b/Makefile.in 2014-07-30 14:16:52.133836316 +0200
-@@ -26,7 +26,11 @@
- # '-Rr' to MAKEFLAGS adds it literaly ( and does not add 'Rr' )
- ifeq ($(filter Rr,$(MAKEFLAGS)),)
- ifeq ($(filter -Rr,$(MAKEFLAGS)),)
-+ifeq ($(filter -rR,$(MAKEFLAGS)),)
-+ifeq ($(filter rR,$(MAKEFLAGS)),)
- CT_MAKEFLAGS += -Rr
-+endif # No rR
-+endif # No -rR
- endif # No -Rr
- endif # No Rr