2018-04-15 21:29:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
2019-02-28 23:28:30 +00:00
|
|
|
# Mounted directory may already be configured - or may not
|
|
|
|
# even had bootstrapped.
|
|
|
|
tar cf - -C / \
|
|
|
|
--exclude=crosstool-ng/.build \
|
|
|
|
--exclude=crosstool-ng/.build.all \
|
|
|
|
--exclude=crosstool-ng/.git \
|
|
|
|
--exclude=crosstool-ng/testing/docker \
|
|
|
|
crosstool-ng | \
|
|
|
|
tar xf -
|
|
|
|
cd crosstool-ng
|
|
|
|
if [ -r Makefile ]; then
|
|
|
|
make distclean
|
|
|
|
elif [ ! -r configure ]; then
|
|
|
|
./bootstrap
|
|
|
|
fi
|
|
|
|
cd ..
|
2018-10-28 17:44:22 +00:00
|
|
|
cd work
|
2019-02-28 23:28:30 +00:00
|
|
|
~/crosstool-ng/configure --prefix=/opt/ctng
|
2018-04-15 21:29:09 +00:00
|
|
|
make
|
|
|
|
make install
|
2019-02-28 23:28:30 +00:00
|
|
|
cd ..
|
|
|
|
rm -rf crosstool-ng
|