blob: 95d49165ff0d7f113f2701bb052c512f4f94a9e5 (
plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
\subsection{Creating a layer}
\begin{frame}[fragile]
\frametitle{with yocto helper script}
\begin{verbatim}
poky/build-ti % cd ..
poky % yocto-layer create mini
Please enter the layer priority you'd like to use for the layer:
[default: 6] <return>
Would you like to have an example recipe created? (y/n)
[default: n] <return>
Would you like to have an example bbappend file created? (y/n)
[default: n] <return>
\end{verbatim}
\end{frame}
\begin{frame}[fragile]
\frametitle{manage the layer with git}
\begin{verbatim}
poky % cd meta-mini
poky/meta-mini % git init .
poky/meta-mini % git add *
poky/meta-mini % git commit -sam 'inital version'
\end{verbatim}
\end{frame}
\begin{frame}[fragile]
\frametitle{minimal distribution}
distros are defined in a layer, e.g.
meta-linutronix/conf/distro/mini.conf:
\begin{verbatim}
meta-mini/conf/distro/mini.conf:
DISTRO = "mini"
DISTRO_NAME = "mini 1.0 (for foo devices)"
DISTRO_VERSION = "1.0"
DISTRO_CODENAME = "mal"
\end{verbatim}
\end{frame}
\begin{frame}[fragile]
\begin{verbatim}
SDK_VENDOR = "-linutronix"
SDK_VERSION := "${@'${DISTRO_VERSION}'}"
SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}"
SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}"
\end{verbatim}
\end{frame}
\begin{frame}[fragile]
\begin{verbatim}
MAINTAINER = "Manuel Traut <manut@linutronix.de>"
TARGET_VENDOR = "-linutronix"
LOCALCONF_VERSION = "1"
LAYER_CONF_VERSION ?= "6"
DISTRO_FEATURES ?= "opengl ${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC}"
DISTRO_FEATURES_append = " systemd"
TCLIBCAPPEND = ""
\end{verbatim}
\end{frame}
\begin{frame}[fragile]
\begin{verbatim}
CONNECTIVITY_CHECK_URIS ?= " \
https://eula-downloads.yoctoproject.org/index.php \
http://bugzilla.yoctoproject.org/report.cgi"
\end{verbatim}
\end{frame}
\begin{frame}[fragile]
\begin{verbatim}
SANITY_TESTED_DISTROS ?= " \
Ubuntu-14.04 \n \
Debian-7.0 \n \
Debian-7.1 \n \
Debian-7.2 \n \
Debian-7.3 \n \
Debian-7.4 \n \
"
BB_SIGNATURE_HANDLER ?= 'OEBasicHash'
OELAYOUT_ABI = "8"
\end{verbatim}
\end{frame}
\begin{frame}[fragile]
\frametitle{add distro to git repo}
\begin{verbatim}
poky/meta-mini % git add conf/distro/mini.conf
poky/meta-mini % git commit -sam 'add mini distro'
\end{verbatim}
\end{frame}
|