aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2013-02-07 16:30:21 +0100
committerBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2013-02-07 16:31:01 +0100
commit6c13aedd8980d6102d5b86778cf5d82963bfff82 (patch)
tree3e359d689e70744b0ecf76d124cabcec5c1da94c
parent0af49224ff8f56bbfb1e6ac37b0045e8c14c558b (diff)
downloadat-6c13aedd8980d6102d5b86778cf5d82963bfff82.tar.gz
Make it work on OpenMandriva and ROSA
Also, pull in toolchain 13.01, not 12.12 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r--tools.sh22
1 files changed, 17 insertions, 5 deletions
diff --git a/tools.sh b/tools.sh
index 94dfb35..383af90 100644
--- a/tools.sh
+++ b/tools.sh
@@ -6,11 +6,23 @@ Is this right?" && return 1;
export GLIT_DOC="Get linaro-image tools"
function glit() {
- sudo add-apt-repository ppa:linaro-maintainers/tools
- sudo apt-get update
- sudo apt-get install linaro-image-tools
- sudo apt-get install bzr
+ if [ -e /etc/mandriva-release -o -e /etc/rosa-release ]; then
+ sudo urpmi bzr
+ else
+ sudo add-apt-repository ppa:linaro-maintainers/tools
+ sudo apt-get update
+ sudo apt-get install linaro-image-tools
+ sudo apt-get install bzr
+ fi
bzr branch lp:linaro-image-tools
+ if [ -e /etc/mandriva-release -o -e /etc/rosa-release ]; then
+ # Workaround for linaro-image-tools pulling in dpkg dependencies even
+ # when they aren't needed for the android part
+ # This breaks linaro-media-create obviously -- but we don't need that
+ sed -i -e 's,^from debian,#from debian,g' linaro-image-tools/hwpack/builder.py linaro-image-tools/hwpack/packages.py
+ sed -i -e 's,^from apt,#from apt,g' linaro-image-tools/hwpack/packages.py
+ sed -i -e 's,^import apt,#import apt,g' linaro-image-tools/hwpack/packages.py linaro-image-tools/hwpack/tests/test_packages.py
+ fi
}
export MAKEMMC_DOC="make mmc.bin from a source build"
@@ -428,7 +440,7 @@ export GET_DOC="Just get stuff to rebuild the kernel and boot-wrapper"
function get() {
git clone git://android.git.linaro.org/people/pfefferz/gcc-linaro-aarch64-linux-gnu-4.7
pushd gcc-linaro-aarch64-linux-gnu-4.7
- git checkout 4.7-12.12
+ git checkout 4.7-13.01
popd
git clone git://android.git.linaro.org/people/pfefferz/boot-wrapper-aarch64 boot-wrapper
git clone git://git.linaro.org/kernel/linux-linaro-tracking kernel