aboutsummaryrefslogtreecommitdiff
path: root/build_toolchain.sh
blob: 7562c570f30289d145114aa615f06177d033cd2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/bash

set -xe

BR_DIR=buildroot-${BUILDROOT_VERSION:-"2016.05"}
BR_TAR=${BR_DIR}.tar.bz2
BR_URL=https://buildroot.org/downloads/${BR_TAR}

echo ${BR_DIR} && wget ${BR_URL} && ls -l && tar xf ${BR_TAR} && rm -f ${BR_TAR}

pushd ${BR_DIR}
make trimui_defconfig BR2_EXTERNAL=../trimui_config
make toolchain

for patch in ../*.patch; do patch -p0 < $patch; done
make

popd
rm -r ${BR_DIR}