blob: 63d86212542eff5ed203625b9784cc845ea4feed (
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
#!/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
# get latest repo script and install it in PATH
#wget http://android.git.kernel.org/repo
# Use our mirror of repo
wget 'http://android.git.linaro.org/gitweb?p=tools/repo.git;a=blob_plain;f=repo;hb=refs/heads/stable' -O repo
mv repo /usr/local/bin/repo
chmod a+x /usr/local/bin/repo
adduser --system jenkins-build
sed -i.bk 's,^\(.*://[^.]*.ec2.archive.ubuntu.com\)/,\1.s3.amazonaws.com/,' /etc/apt/sources.list
apt-get update
# We do update as part of early node init (to get this script actually)
#apt-get update
# add feature to allow add-apt-repository
apt-get install -y python-software-properties unixodbc java-common
# enable partner repo for sun-java6
##add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner"
##apt-get update
wget -q http://android-build.linaro.org/seed/sun-java6-bin_6.26-2natty1_amd64.deb \
http://android-build.linaro.org/seed/sun-java6-jdk_6.26-2natty1_amd64.deb \
http://android-build.linaro.org/seed/sun-java6-jre_6.26-2natty1_all.deb
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)
dpkg -i sun-java6-* || (debconf 'echo SET shared/accepted-sun-dlj-v1-1 true' || true; apt-get install -f -y; dpkg -i sun-java6-*)
# 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 \
libx11-dev \
x11proto-core-dev \
gcc-multilib \
g++-multilib \
libc6-dev-i386 \
lib32ncurses5-dev \
ia32-libs \
lib32readline5-dev \
lib32z-dev \
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 \
uuid-dev
# uuid-dev is UEFI bootloader requirement
# Retired
# gitg \
# qt3-dev-tools \
# libqt3-mt-dev \
# eclipse \
# valgrind \
# libx11-dev \
# x11proto-core-dev \
|