From bd2aa13547bae95f413dec01b75e3e3409f61126 Mon Sep 17 00:00:00 2001 From: Leif Lindholm Date: Mon, 14 Jan 2013 16:19:47 +0000 Subject: panda: Enable native building for Pandaboard. The "chtool" utility is checked in in its compiled form (x86-64), which breaks when trying to compile on any other architecture. This patch deletes this utility, which will be automatically built when required. PandaBoardPkg/build.sh uses TARGET_TOOLS rather than TOOLCHAIN to determine toolchain to use - and falls back to hardcoded cross-toolchains when this fails. To minimize changes, copy the value of TOOLCHAIN into TARGET_TOOLS if set. --- PandaBoardPkg/Tools/chtool | Bin 42621 -> 0 bytes PandaBoardPkg/build.sh | 5 +++++ 2 files changed, 5 insertions(+) delete mode 100755 PandaBoardPkg/Tools/chtool diff --git a/PandaBoardPkg/Tools/chtool b/PandaBoardPkg/Tools/chtool deleted file mode 100755 index a18bdc9a9c..0000000000 Binary files a/PandaBoardPkg/Tools/chtool and /dev/null differ diff --git a/PandaBoardPkg/build.sh b/PandaBoardPkg/build.sh index 3c2c7a0c5c..8002eac264 100755 --- a/PandaBoardPkg/build.sh +++ b/PandaBoardPkg/build.sh @@ -53,6 +53,11 @@ fi # # Pick a default tool type for a given OS if no toolchain already defined # +if [ X"$TOOLCHAIN" != X"" ] +then + TARGET_TOOLS="$TOOLCHAIN" +fi + if [ -z "${TARGET_TOOLS:-}" ] then case `uname` in -- cgit v1.2.3