From: Paul Fertser Date: Sat, 1 Oct 2016 16:46:25 +0000 (+0200) Subject: make toolchain path configurable X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=refs%2Fpull%2F104%2Fhead;p=open-ath9k-htc-firmware.git make toolchain path configurable this is needed to make it work with debian cross-toolchain Signed-off-by: Paul Fertser Signed-off-by: Oleksij Rempel --- diff --git a/target_firmware/configure b/target_firmware/configure index 0106e40..e2d4639 100755 --- a/target_firmware/configure +++ b/target_firmware/configure @@ -35,28 +35,24 @@ # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ## -TOOLCHAIN=$PWD/../toolchain/inst - TARGET=xtensa-elf -PREFIX="$TOOLCHAIN/bin/$TARGET-" -TOOLCHAIN_FILE=$PWD/build/toolchain.cmake + +[ -z "$CROSS_COMPILE" ] && + CROSS_COMPILE="$PWD/../toolchain/inst/bin/$TARGET-" + +TOOLCHAIN_FILE="$PWD/build/toolchain.cmake" set -e rm -rf build mkdir -p build cat > "$TOOLCHAIN_FILE" <