[bootlin/training-materials updates] master: labs: replace yocto-labs by __SESSION_NAME__-labs (6677f991)
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Wed Jan 29 15:36:11 CET 2020
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/6677f99111f6bc3ac6562d26610fcd149c4ce9e3
>---------------------------------------------------------------
commit 6677f99111f6bc3ac6562d26610fcd149c4ce9e3
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date: Wed Jan 29 15:35:06 2020 +0100
labs: replace yocto-labs by __SESSION_NAME__-labs
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
>---------------------------------------------------------------
6677f99111f6bc3ac6562d26610fcd149c4ce9e3
labs/yocto-extend-recipe/yocto-extend-recipe.tex | 8 ++++----
.../yocto-first-build-stm32.tex | 10 +++++-----
labs/yocto-first-build/yocto-first-build.tex | 22 +++++++++++-----------
labs/yocto-sdk/yocto-sdk.tex | 4 ++--
4 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/labs/yocto-extend-recipe/yocto-extend-recipe.tex b/labs/yocto-extend-recipe/yocto-extend-recipe.tex
index a128ed78..20c6bdaf 100644
--- a/labs/yocto-extend-recipe/yocto-extend-recipe.tex
+++ b/labs/yocto-extend-recipe/yocto-extend-recipe.tex
@@ -34,12 +34,12 @@ environment, you should see:
\if\defstring{\labboard}{discovery}
\begin{verbatim}
linux-stm32mp_4.19.bb:
- $HOME/yocto-labs/meta-bootlinlabs/recipes-kernel/linux/linux-stm32mp_4.19.bbappend
+ $HOME/__SESSION_NAME__-labs/meta-bootlinlabs/recipes-kernel/linux/linux-stm32mp_4.19.bbappend
\end{verbatim}
\else
\begin{verbatim}
linux-ti-staging_4.14.bb:
- $HOME/yocto-labs/meta-bootlinlabs/recipes-kernel/linux/linux-ti-staging_4.14.bbappend
+ $HOME/__SESSION_NAME__-labs/meta-bootlinlabs/recipes-kernel/linux/linux-ti-staging_4.14.bbappend
\end{verbatim}
\fi
@@ -50,7 +50,7 @@ We want our extended
{\code{linux-ti-staging}} kernel to support the Nunchuk as
a joystick input. We can add this by applying patches during the
\code{do_patch} task. The needed patches are provided with this lab. You can
-find them under \code{~/yocto-labs/bootlin-lab-data/nunchuk/linux}. For more
+find them under \code{~/__SESSION_NAME__-labs/bootlin-lab-data/nunchuk/linux}. For more
details about how to write the driver handling the Nunchuk, have a look at our
embedded Linux kernel and driver development training course at
\url{https://bootlin.com/training/kernel/}.
@@ -136,7 +136,7 @@ moving the device will produce many events!
The nInvaders game uses keyboard events for its controls. We first need to apply
a patch introducing joystick support. The patch is located at
-\code{~/yocto-labs/bootlin-lab-data/nunchuk/ninvaders/}.
+\code{~/__SESSION_NAME__-labs/bootlin-lab-data/nunchuk/ninvaders/}.
Add the patch to the nInvaders \code{SRC_URI}.
diff --git a/labs/yocto-first-build-stm32/yocto-first-build-stm32.tex b/labs/yocto-first-build-stm32/yocto-first-build-stm32.tex
index 24135520..f228f176 100644
--- a/labs/yocto-first-build-stm32/yocto-first-build-stm32.tex
+++ b/labs/yocto-first-build-stm32/yocto-first-build-stm32.tex
@@ -14,7 +14,7 @@ Before starting this lab, make sure your home directory is not
encrypted. OpenEmbedded cannot be used on top of an eCryptFS file
system due to limitations in file name lengths.
-Go to the \code{$HOME/yocto-labs/} directory.
+Go to the \code{$HOME/__SESSION_NAME__-labs/} directory.
Install the required packages:
\begin{verbatim}
@@ -26,18 +26,18 @@ sudo apt install bc build-essential chrpath cpio diffstat gawk git python texinf
Download the \code{thud} version of Poky:
\begin{verbatim}
git clone git://git.yoctoproject.org/poky.git
-cd $HOME/yocto-labs/poky
+cd $HOME/__SESSION_NAME__-labs/poky
git checkout -b thud-20.0.2 thud-20.0.2
\end{verbatim}
-Return to your project root directory (\code{cd $HOME/yocto-labs/})
+Return to your project root directory (\code{cd $HOME/__SESSION_NAME__-labs/})
and download the OpenEmbedded and STM32MP layers:
\begin{verbatim}
git clone -b thud git://git.openembedded.org/meta-openembedded
git clone https://github.com/STMicroelectronics/meta-st-stm32mp.git
cd meta-st-stm32mp/
git checkout thud
-git am $HOME/yocto-labs/bootlin-lab-data/0001-u-boot-update-config.patch
+git am $HOME/__SESSION_NAME__-labs/bootlin-lab-data/0001-u-boot-update-config.patch
\end{verbatim}
\section{Set up the build environment}
@@ -46,7 +46,7 @@ Check you're using Bash. This is the default shell when using Ubuntu.
Export all needed variables and set up the build directory:
\begin{verbatim}
-cd $HOME/yocto-labs
+cd $HOME/__SESSION_NAME__-labs
source poky/oe-init-build-env
\end{verbatim}
diff --git a/labs/yocto-first-build/yocto-first-build.tex b/labs/yocto-first-build/yocto-first-build.tex
index 6e5e2c1c..409774e0 100644
--- a/labs/yocto-first-build/yocto-first-build.tex
+++ b/labs/yocto-first-build/yocto-first-build.tex
@@ -14,7 +14,7 @@ Before starting this lab, make sure your home directory is not
encrypted. OpenEmbedded cannot be used on top of an eCryptFS file
system due to limitations in file name lengths.
-Go to the \code{$HOME/yocto-labs/} directory.
+Go to the \code{$HOME/__SESSION_NAME__-labs/} directory.
Install the required packages:
\begin{verbatim}
@@ -26,21 +26,21 @@ sudo apt install bc build-essential chrpath cpio diffstat gawk git python texinf
Download the \code{sumo} version of Poky and apply a custom patch:
\begin{verbatim}
git clone git://git.yoctoproject.org/poky.git
-cd $HOME/yocto-labs/poky
+cd $HOME/__SESSION_NAME__-labs/poky
git checkout -b sumo-19.0.0 sumo-19.0.0
-git am $HOME/yocto-labs/bootlin-lab-data/0001-bblayers-do-not-include-meta-yocto-bsp.patch
+git am $HOME/__SESSION_NAME__-labs/bootlin-lab-data/0001-bblayers-do-not-include-meta-yocto-bsp.patch
\end{verbatim}
-Return to your project root directory (\code{cd $HOME/yocto-labs/})
+Return to your project root directory (\code{cd $HOME/__SESSION_NAME__-labs/})
and download the OpenEmbedded TI layer:
\begin{verbatim}
git clone git://git.yoctoproject.org/meta-ti.git
-cd $HOME/yocto-labs/meta-ti
+cd $HOME/__SESSION_NAME__-labs/meta-ti
git checkout -b sumo ti2018.02
-git am $HOME/yocto-labs/bootlin-lab-data/0001-Simplify-linux-ti-staging-recipe.patch
-git am $HOME/yocto-labs/bootlin-lab-data/0002-do-not-use-base_read_file.patch
-git am $HOME/yocto-labs/bootlin-lab-data/0003-recipes-bsp-u-boot-fix-non-booting-U-Boot.patch
-git am $HOME/yocto-labs/bootlin-lab-data/0004-fix-bitbake-warnings.patch
+git am $HOME/__SESSION_NAME__-labs/bootlin-lab-data/0001-Simplify-linux-ti-staging-recipe.patch
+git am $HOME/__SESSION_NAME__-labs/bootlin-lab-data/0002-do-not-use-base_read_file.patch
+git am $HOME/__SESSION_NAME__-labs/bootlin-lab-data/0003-recipes-bsp-u-boot-fix-non-booting-U-Boot.patch
+git am $HOME/__SESSION_NAME__-labs/bootlin-lab-data/0004-fix-bitbake-warnings.patch
\end{verbatim}
\section{Set up the build environment}
@@ -49,7 +49,7 @@ Check you're using Bash. This is the default shell when using Ubuntu.
Export all needed variables and set up the build directory:
\begin{verbatim}
-cd $HOME/yocto-labs
+cd $HOME/__SESSION_NAME__-labs
source poky/oe-init-build-env
\end{verbatim}
@@ -82,7 +82,7 @@ Once the build finished, you will find the output images under
In this first lab we will use an SD card to store the bootloader, kernel and
root filesystem files. Before copying the images on it, we first need to set up the
partition layout. You will find a bash script to do so, under
-\code{$HOME/yocto-labs/bootlin-lab-data/script/}.
+\code{$HOME/__SESSION_NAME__-labs/bootlin-lab-data/script/}.
Execute it:
\begin{verbatim}
diff --git a/labs/yocto-sdk/yocto-sdk.tex b/labs/yocto-sdk/yocto-sdk.tex
index 8c871809..4d461633 100644
--- a/labs/yocto-sdk/yocto-sdk.tex
+++ b/labs/yocto-sdk/yocto-sdk.tex
@@ -26,7 +26,7 @@ Once the SDK is generated, a script will be available at
Open a new console to be sure that no extra environment variable is set.
We mean to show you how the SDK sets up a fully working environment.
-Install the SDK in \code{$HOME/yocto-labs/sdk} by executing the script
+Install the SDK in \code{$HOME/__SESSION_NAME__-labs/sdk} by executing the script
generated at the previous step.
{\footnotesize
@@ -38,7 +38,7 @@ $BUILDDIR/tmp/deploy/sdk/poky-glibc-x86_64-bootlinlabs-image-minimal-cortexa8hf-
\section{Set up the environment}
Go into the directory where you installed the SDK
-(\code{$HOME/yocto-labs/sdk}). Source the environment script:
+(\code{$HOME/__SESSION_NAME__-labs/sdk}). Source the environment script:
\begin{verbatim}
source environment-setup-cortexa8hf-vfp-neon-poky-linux-gnueabi
\end{verbatim}
More information about the training-materials-updates
mailing list