aboutsummaryrefslogtreecommitdiff
path: root/96boards-dragonboard845c-aosp-master/builders.sh
diff options
context:
space:
mode:
Diffstat (limited to '96boards-dragonboard845c-aosp-master/builders.sh')
-rw-r--r--96boards-dragonboard845c-aosp-master/builders.sh27
1 files changed, 15 insertions, 12 deletions
diff --git a/96boards-dragonboard845c-aosp-master/builders.sh b/96boards-dragonboard845c-aosp-master/builders.sh
index 3ed82c76d1..eeb1d01943 100644
--- a/96boards-dragonboard845c-aosp-master/builders.sh
+++ b/96boards-dragonboard845c-aosp-master/builders.sh
@@ -2,18 +2,20 @@
# Install needed packages
sudo apt-get update
-sudo apt-get install -y bison git gperf libxml2-utils python-mako zip time python-requests genisoimage patch mtools python-wand rsync liblz4-tool lzop libssl-dev libdrm-intel1 python-pip
-wget -q \
- http://repo.linaro.org/ubuntu/linaro-overlay/pool/main/a/android-tools/android-tools-fsutils_4.2.2+git20130218-3ubuntu41+linaro1_amd64.deb \
- http://old-releases.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u45-b14-1_amd64.deb \
- http://old-releases.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre_8u45-b14-1_amd64.deb \
- http://old-releases.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk_8u45-b14-1_amd64.deb
-sudo dpkg -i --force-all *.deb
-rm -f *.deb
+# Here is for packages not listed by the source.android.com site below.
+# But the following packages might not be really necessary,
+# as the docker image for docker-focal-aosp labelled nodes is linaro/jenkins-amd64-ubuntu:focal
+# which is defined here: https://git.linaro.org/infrastructure/ci-yadp-builder.git/tree/docker_templates_aosp_amd64.yml#n2
+# And the packages listed here might be already defined there.
+sudo apt-get install -y --allow-change-held-packages wget sudo python3 python-is-python3 openjdk-11-jdk-headless
+java -version
+
+## https://source.android.com/docs/setup/start/requirements#hardware-requirements
+sudo apt-get install -y --allow-change-held-packages git-core gnupg flex bison build-essential zip curl zlib1g-dev libc6-dev-i386 libncurses5 x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig
-# Install jinja2-cli and ruamel.yaml==0.16.13
-pip install --user --force-reinstall jinja2-cli ruamel.yaml==0.16.13
+## keep the same package as listed here before
+sudo apt-get install -y python-mako gperf time genisoimage patch mtools rsync liblz4-tool lzop libssl-dev libdrm-intel1 python3-pip
# Set local configuration
git config --global user.email "ci_notify@linaro.org"
@@ -33,11 +35,12 @@ curl https://storage.googleapis.com/git-repo-downloads/repo > ${HOME}/bin/repo
chmod a+x ${HOME}/bin/*
export PATH=${HOME}/bin:${PATH}
-repo init -u https://android.googlesource.com/platform/manifest -b master --repo-branch=master --no-repo-verify
+repo init -u https://android.googlesource.com/platform/manifest -b main --repo-branch=master --no-repo-verify
repo sync -j$(nproc) -c -f
+./device/linaro/dragonboard/fetch-vendor-package.sh
rm -rf build-info
source build/envsetup.sh
-lunch db845c-userdebug
+lunch db845c-trunk_staging-userdebug
make -j$(nproc)
repo manifest -r -o out/target/product/db845c/pinned-manifest.xml