summaryrefslogtreecommitdiffstats
path: root/tools/rockboxdev.sh
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-04-04 15:42:35 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-04-04 21:56:30 +0200
commit00c0d2012f2e8d977bad5487ab6f3b8ca46c8572 (patch)
tree5265d39f5954a356abeee1e7368bbd85e3b6c9f6 /tools/rockboxdev.sh
parent74ab8d14904041023bd0b66e05b6560110fc71be (diff)
downloadrockbox-00c0d2012f2e8d977bad5487ab6f3b8ca46c8572.tar.gz
rockbox-00c0d2012f2e8d977bad5487ab6f3b8ca46c8572.tar.bz2
rockbox-00c0d2012f2e8d977bad5487ab6f3b8ca46c8572.zip
rockboxdev: Store toolchain patches in-tree, instead of downloading them
This frees us from having to keep the web site in sync. Note that only currently-referenced patches were kept. Change-Id: I50da1b75baeac214cf142c8b76a05a8c56b4c1d4
Diffstat (limited to 'tools/rockboxdev.sh')
-rwxr-xr-xtools/rockboxdev.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index 822a76da9f..e81915e20b 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -29,6 +29,9 @@ else
make="make"
fi
+# This is the absolute path to where the script resides.
+rockboxdevdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
parallel=`nproc`
if [ $parallel -gt 1 ] ; then
make_parallel=-j$parallel
@@ -349,8 +352,6 @@ build() {
configure_params="$5"
needs_libs="$6"
- patch_url="http://www.rockbox.org/gcc"
-
# create build directory
if test -d $builddir; then
if test ! -w $builddir; then
@@ -361,15 +362,12 @@ build() {
mkdir -p $builddir
fi
+ patch_dir="$rockboxdevdir/toolchain-patches"
+
# download source tarball
gettool "$toolname" "$version"
file="$toolname-$version"
- # download patch
- for p in $patch; do
- getfile "$p" "$patch_url"
- done
-
cd $builddir
extract "$toolname-$version"
@@ -379,7 +377,7 @@ build() {
echo "ROCKBOXDEV: applying patch $p"
# apply the patch
- (cd $builddir/$toolname-$version && patch -p1 < "$dlwhere/$p")
+ (cd $builddir/$toolname-$version && patch -p1 < "$patch_dir/$p")
# check if the patch applied cleanly
if [ $? -gt 0 ]; then