From ebb27e664373b962e4ece9e403d3b46c136d1640 Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Sun, 20 Jul 2014 06:00:14 +0000 Subject: [PATCH] A little script to setup environment to compile for OpenWrt FossilOrigin-Name: a043ad2e1439c1b0a3501d0585044e82a404b1460d517d2e1f751bd6d74fcbe9 --- tools/openvrtenv.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tools/openvrtenv.sh diff --git a/tools/openvrtenv.sh b/tools/openvrtenv.sh new file mode 100644 index 00000000..0cdd0746 --- /dev/null +++ b/tools/openvrtenv.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# +# Setup evironement to compile for OpenWrt +# You have probably to change the settings for STAGING_DIR and INCLUDE_DIR +# + +export STAGING_DIR=`readlink -m ../openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2` +export INCLUDE_DIR=`readlink -m ../openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include` + +export PATH=$PATH:$STAGING_DIR/bin +export CC=mips-openwrt-linux-uclibc-gcc +export LD=mips-openwrt-linux-uclibc-ld +export AR=mips-openwrt-linux-uclibc-ar + +/bin/bash +