Skip to content

Commit eeefa99

Browse files
committed
Update Yocto build
1 parent 232c156 commit eeefa99

File tree

1 file changed

+9
-10
lines changed
  • content/learning-paths/embedded-and-microcontrollers/yocto_qemu

1 file changed

+9
-10
lines changed

content/learning-paths/embedded-and-microcontrollers/yocto_qemu/yocto_build.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,23 @@ Developers can configure their custom builds of Yocto using a set of recipes. In
1717

1818
Poky is a reference distribution of the Yocto Project. It is a great starting point to build your own custom distribution as it contains both the build system and the the baseline functional distribution. Along with containing recipes for real target boards, it also contains the recipes for building the image, for example 64-bit Arm machines supported in QEMU. The example 64-bit machine emulated by QEMU does not emulate any particular board but is a great starting point to learn and try the basics of running this distribution.
1919

20-
The first step is to install the packages required to build and run Yocto:
20+
The first step is to install the packages required to build and run Yocto.
21+
22+
For Ubuntu 22.04 and later:
2123

22-
**older systems**
23-
```bash
24-
sudo apt update
25-
sudo apt-get install -y gawk wget git-core diffstat unzip texinfo build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev lz4
26-
```
27-
**Ubuntu LTS Current**
28-
**older systems**
2924
```bash
3025
sudo apt update
3126
sudo apt-get install -y gawk wget git-core diffstat unzip texinfo build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libgl1 libglx-mesa0 libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev lz4
3227
```
33-
Now download the Poky reference distribution and checkout the branch/tag you wish to build. You will build `yocto-4.0.6` in this example.
28+
29+
Now download the Poky reference distribution and checkout the branch/tag you wish to build. You will build `yocto-5.0.10` in this example.
3430

3531
```bash
3632
git clone git://git.yoctoproject.org/poky
3733
cd poky
3834
git checkout tags/yocto-5.0.10 -b yocto-5.0.10-local
3935
```
36+
4037
Next source the script as shown below to initialize your build environment for your 64-bit Arm example machine QEMU target:
4138

4239
```bash
@@ -87,8 +84,10 @@ You will now be in the `build-qemu-arm64` directory which is your build director
8784
```bash { cwd="poky" }
8885
sed -i '/qemuarm64/s/^#//g' conf/local.conf
8986
```
87+
{{% notice Note %}}
88+
On Ubuntu systems with apparmor you will need to allow unprivileged users to run bitbake.
89+
{{% /notice %}}
9090

91-
**NOTE** On Ubuntu systems with apparmor you will need to allow unprivilaged users for bitbake
9291
```bash
9392
echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
9493
```

0 commit comments

Comments
 (0)