blob: 145374fc86e3941020e9649b4854a5693a146490 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
#!/bin/sh
###############################################################################
# Copyright (c) 2011 Linaro
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
###############################################################################
set -xe
# add feature to allow add-apt-repository
apt-get update
apt-get install -y python-software-properties
# enable partner repo for sun-java6
add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner"
apt-get update
export DEBIAN_FRONTEND=noninteractive
apt-get install -y sun-java6-jdk || (debconf 'echo SET shared/accepted-sun-dlj-v1-1 true' || true; apt-get install -f -y; apt-get install -y sun-java6-jdk)
# set java-6-sun as default
update-java-alternatives -s java-6-sun || true
# Install basic development packages
# Do not install toolchains and other variable stuff here
apt-get install -y \
zip \
curl \
texinfo \
flex \
bison \
build-essential \
git-core
# install base stuff for android
apt-get install -y \
gnupg \
gperf \
zlib1g-dev \
gcc-multilib \
g++-multilib \
libc6-dev-i386 \
lib32ncurses5-dev \
ia32-libs \
x11proto-core-dev \
libx11-dev \
lib32readline5-dev \
lib32z-dev \
gitg \
qt3-dev-tools \
libqt3-mt-dev \
eclipse \
valgrind \
gcc-4.5 \
g++-4.5 \
cpp-4.5 \
gcc-4.5-multilib \
g++-4.5-multilib \
gcc-arm-linux-gnueabi \
gcc-4.5-arm-linux-gnueabi \
uboot-mkimage
# get latest repo script and install it in PATH
wget http://android.git.kernel.org/repo
mv repo /usr/local/bin/repo
chmod a+x /usr/local/bin/repo
adduser --system jenkins-build
|