-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathprepare-host.sh
More file actions
executable file
·46 lines (41 loc) · 978 Bytes
/
prepare-host.sh
File metadata and controls
executable file
·46 lines (41 loc) · 978 Bytes
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
#!/bin/bash
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
set -e
set -x
# Repository for the `gh` GitHub CLI tool used for creating releases.
dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
# Repository for expat-static
dnf install -y almalinux-release-devel
dnf install -y \
sudo \
gh \
git \
shadow-utils \
bison \
flex \
texinfo \
help2man \
gawk \
gettext \
curl \
xz \
ncurses-devel \
pixman-devel \
python36 \
zlib-devel \
zlib-static \
libffi-devel \
expat-static \
lld \
dejagnu
# the version of ninja in almalinux-8 is too old -
# we need at least version v1.10, so just build it ourselves
TMP_DIR="$(mktemp -d)"
git clone https://github.com/ninja-build/ninja.git \
--branch v1.12.0 --depth 1 "${TMP_DIR}"
cd "${TMP_DIR}"
./configure.py --bootstrap
install ninja /bin
rm -rf "{$TMP_DIR}"