1bf215546Sopenharmony_ci#!/bin/bash
2bf215546Sopenharmony_ci
3bf215546Sopenharmony_ciset -e
4bf215546Sopenharmony_ciset -o xtrace
5bf215546Sopenharmony_ci
6bf215546Sopenharmony_ciapt-get -y install ca-certificates
7bf215546Sopenharmony_cised -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
8bf215546Sopenharmony_ciecho 'deb https://deb.debian.org/debian buster main' >/etc/apt/sources.list.d/buster.list
9bf215546Sopenharmony_ciapt-get update
10bf215546Sopenharmony_ci
11bf215546Sopenharmony_ciapt-get -y install \
12bf215546Sopenharmony_ci	${EXTRA_LOCAL_PACKAGES} \
13bf215546Sopenharmony_ci	abootimg \
14bf215546Sopenharmony_ci	autoconf \
15bf215546Sopenharmony_ci	automake \
16bf215546Sopenharmony_ci	bc \
17bf215546Sopenharmony_ci	bison \
18bf215546Sopenharmony_ci	ccache \
19bf215546Sopenharmony_ci	cmake \
20bf215546Sopenharmony_ci	debootstrap \
21bf215546Sopenharmony_ci	fastboot \
22bf215546Sopenharmony_ci	flex \
23bf215546Sopenharmony_ci	g++ \
24bf215546Sopenharmony_ci	git \
25bf215546Sopenharmony_ci	glslang-tools \
26bf215546Sopenharmony_ci	kmod \
27bf215546Sopenharmony_ci	libasan6 \
28bf215546Sopenharmony_ci	libdrm-dev \
29bf215546Sopenharmony_ci	libelf-dev \
30bf215546Sopenharmony_ci	libexpat1-dev \
31bf215546Sopenharmony_ci	libvulkan-dev \
32bf215546Sopenharmony_ci	libx11-dev \
33bf215546Sopenharmony_ci	libx11-xcb-dev \
34bf215546Sopenharmony_ci	libxcb-dri2-0-dev \
35bf215546Sopenharmony_ci	libxcb-dri3-dev \
36bf215546Sopenharmony_ci	libxcb-glx0-dev \
37bf215546Sopenharmony_ci	libxcb-present-dev \
38bf215546Sopenharmony_ci	libxcb-randr0-dev \
39bf215546Sopenharmony_ci	libxcb-shm0-dev \
40bf215546Sopenharmony_ci	libxcb-xfixes0-dev \
41bf215546Sopenharmony_ci	libxdamage-dev \
42bf215546Sopenharmony_ci	libxext-dev \
43bf215546Sopenharmony_ci	libxrandr-dev \
44bf215546Sopenharmony_ci	libxshmfence-dev \
45bf215546Sopenharmony_ci	libxxf86vm-dev \
46bf215546Sopenharmony_ci	llvm-11-dev \
47bf215546Sopenharmony_ci	meson \
48bf215546Sopenharmony_ci	pkg-config \
49bf215546Sopenharmony_ci	python3-mako \
50bf215546Sopenharmony_ci	python3-pil \
51bf215546Sopenharmony_ci	python3-pip \
52bf215546Sopenharmony_ci	python3-requests \
53bf215546Sopenharmony_ci	python3-setuptools \
54bf215546Sopenharmony_ci	u-boot-tools \
55bf215546Sopenharmony_ci	wget \
56bf215546Sopenharmony_ci	xz-utils \
57bf215546Sopenharmony_ci	zlib1g-dev
58bf215546Sopenharmony_ci
59bf215546Sopenharmony_ci# Not available anymore in bullseye
60bf215546Sopenharmony_ciapt-get install -y --no-remove -t buster \
61bf215546Sopenharmony_ci        android-sdk-ext4-utils
62bf215546Sopenharmony_ci
63bf215546Sopenharmony_cipip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates@ffe4d1b10aab7534489f0c4bbc4c5899df17d3f2
64bf215546Sopenharmony_ci
65bf215546Sopenharmony_ciarch=armhf
66bf215546Sopenharmony_ci. .gitlab-ci/container/cross_build.sh
67bf215546Sopenharmony_ci
68bf215546Sopenharmony_ci. .gitlab-ci/container/container_pre_build.sh
69bf215546Sopenharmony_ci
70bf215546Sopenharmony_ci# dependencies where we want a specific version
71bf215546Sopenharmony_ciEXTRA_MESON_ARGS=
72bf215546Sopenharmony_ci. .gitlab-ci/container/build-libdrm.sh
73bf215546Sopenharmony_ci
74bf215546Sopenharmony_ci. .gitlab-ci/container/container_post_build.sh
75