Skip to content

Commit 26fbbba

Browse files
ujfalusilgirdwood
authored andcommitted
build-guide: Updates based on a clean Ubuntu 20.04 installation
I have taken the time to install Ubuntu 20.04.2 to VBox. Based on that I would suggest the following clarifications and fixes to the build guide. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent aba2115 commit 26fbbba

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

‎getting_started/build-guide/build-from-scratch.rst‎

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Build SOF
1616
*********
1717

1818
The following steps describe how to install the SOF development
19-
environment on Ubuntu 16.04, 18.04, and 18.10. They should work on
19+
environment on Ubuntu 16.04, 18.04, 20.04, and 18.10. They should work on
2020
19.04, 19.10 and other Linux distributions with minor or no
2121
modifications.
2222

@@ -30,13 +30,16 @@ modifications.
3030
because some default configuration files refer to other clones using
3131
relative locations like ``../sof/``.
3232

33+
Make sure that ``$SOF_WORKSPACE`` have adequate disk space when building the
34+
toolchain. About 15GB is going to be needed per toolchain.
35+
3336
Step 0 Set up the workspace directory
3437
=====================================
3538

3639
.. code-block:: bash
3740
3841
SOF_WORKSPACE=~/work/sof
39-
mkdir "$SOF_WORKSPACE"
42+
mkdir -p "$SOF_WORKSPACE"
4043
4144
Step 1 Set up build environment
4245
===============================
@@ -59,6 +62,13 @@ Make sure that ``build-essential`` and ``git`` are installed:
5962
6063
sudo apt-get install build-essential git
6164
65+
* For Ubuntu 20.04:
66+
67+
.. code-block:: bash
68+
69+
sudo apt install autoconf flex bison texinfo help2man gawk libtool-bin \
70+
libncurses5 libncurses5-dev libssl-dev libgtk-3-dev tree ninja
71+
6272
* For Ubuntu 18.10:
6373

6474
.. code-block:: bash
@@ -261,6 +271,12 @@ from ``$SOF_WORKSPACE`` to them:
261271
cd "$SOF_WORKSPACE"
262272
for i in crosstool-ng/builds/xtensa-*; do ln -s "$i"; done
263273
274+
Remove the temporarily build files (~7GB per toolchain)
275+
276+
.. code-block:: bash
277+
278+
rm -rf .build
279+
264280
.. note::
265281

266282
|HSW| and |BDW| share the same toolchain: xtensa-hsw-elf
@@ -326,6 +342,7 @@ After the SOF environment is set up, clone the *sof* repo.
326342
327343
cd "$SOF_WORKSPACE"
328344
git clone https://github.com/thesofproject/sof
345+
cd sof
329346
330347
331348
Copy the commented ``installer/sample-config.mk`` to

0 commit comments

Comments
 (0)