From 5d9043ce4f07dbc63a2996874e798de4a83538c2 Mon Sep 17 00:00:00 2001
From: Manuel Traut <manut@linutronix.de>
Date: Tue, 27 Nov 2018 22:57:33 +0100
Subject: add 'yocto-layer-example'

This is a first attemp to create a new slideset for day2 of yocto-trainig.

The slideset is based on 'yocto-advanced' but with integration of
'meta-schulung' explanations.

I used a slightly modified version of 'meta-schulung'. The following changes
are currently not available in git:

I don't use linux-yocto in meta-schulung, but use an own kernel-recipe and
integrate the RT-PREEMPT patch.

wic: i can't see the need for the second partition and the need for huge files
in the kconfig. It works for me by adding ' --align 1024 ' to the wic setup.
I decided to use ext2 instead of ext4.

I renamed the rootfs.bb file into schulung-base.bb

I use the u-boot recipe from poky. However i don't use u-boot for anything atm.
  But bootloader is on our agenda..

Signed-off-by: Manuel Traut <manut@linutronix.de>
---
 distribution/yocto-example-layer/machine.tex | 49 ++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 distribution/yocto-example-layer/machine.tex

(limited to 'distribution/yocto-example-layer/machine.tex')

diff --git a/distribution/yocto-example-layer/machine.tex b/distribution/yocto-example-layer/machine.tex
new file mode 100644
index 0000000..a8e0ba9
--- /dev/null
+++ b/distribution/yocto-example-layer/machine.tex
@@ -0,0 +1,49 @@
+\subsection{Machines}
+\begin{frame}[fragile]
+\frametitle{machine configs aka BSP}
+to get a list of currently available machine configs:
+\begin{lstlisting}
+$ cd ~/poky
+$ ls meta*/conf/machine/*.conf
+\end{lstlisting}
+If no machine fits your needs, search at 'http://layers.openembedded.org' or
+define your own!
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{Create a vexpress machine config}
+\begin{lstlisting}
+$ cd ~/poky/meta-schulung
+$ mkdir conf/machine
+$ pluma conf/machine/vexpress.conf
+\end{lstlisting}
+\begin{verbatim}
+DEFAULTTUNE ?= "armv7athf-neon"
+require conf/machine/include/tune-cortexa8.inc
+SERIAL_CONSOLE = "115200 ttyAMA0"
+\end{verbatim}
+\end{frame}
+
+
+\begin{frame}[fragile]
+\frametitle{Use the vexpress BSP in the build}
+\begin{lstlisting}
+$ cd ~/poky/build-schulung
+$ pluma conf/local.conf
+\end{lstlisting}
+\begin{verbatim}
+#STATE_DIR ?= "/home/prebuilt/vexpress/sstate-cache"
+#BB_NO_NETWORK = "1"
+MACHINE ??= "vexpress"
+DL_DIR ?= "/home/downloads"
+DISTRO ?= "schulung"
+PACKAGE_CLASSES ?= "package_ipk"
+EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
+USER_CLASSES ?= "buildstats image-mklibs image-prelink"
+PATCHRESOLVE = "noop"
+CONF_VERSION = "1"
+\end{verbatim}
+\begin{lstlisting}
+$ bitbake core-image-minimal
+\end{lstlisting}
+\end{frame}
-- 
cgit v1.2.3

