diff options
author | Andrew McDermott <andrew.mcdermott@linaro.org> | 2015-02-27 10:44:12 +0000 |
---|---|---|
committer | Andrew McDermott <andrew.mcdermott@linaro.org> | 2015-02-27 10:44:12 +0000 |
commit | a16932093d3f6538fa85ff40000a643520431326 (patch) | |
tree | 0b45dbdd9b3b7984a5348aa6769725e5b65258b8 | |
parent | 69037eff9b816758a7d6ea2cb67511166c0b9b11 (diff) |
Add script to install prerequisites
-rwxr-xr-x | install-prerequisites.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/install-prerequisites.sh b/install-prerequisites.sh new file mode 100755 index 0000000..2f23b6b --- /dev/null +++ b/install-prerequisites.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +set -e + +sudo dpkg --add-architecture armhf +sudo apt-get update -qq +sudo apt-get install -qqy build-essential +type -p git || sudo apt-get install -y git +type -p pkg-config || sudo apt-get install -y pkg-config +type -p arm-linux-gnueabihf-gcc || sudo apt-get install -y gcc-arm-linux-gnueabihf libc6-dev-armhf-cross |