<para>
To better understand the layer you create for kernel development,
the following section describes how to create a layer
- without the aid of tools:
+ without the aid of tools.
+ These steps assume creation of a layer named
+ <filename>mylayer</filename> in your home directory:
<orderedlist>
<listitem><para>
- <emphasis>Create additional structure</emphasis>:
- Create the additional layer structure:
+ <emphasis>Create Structure</emphasis>:
+ Create the layer's structure:
<literallayout class='monospaced'>
- $ cd ~/poky/meta-mylayer
- $ mkdir conf
- $ mkdir recipes-kernel
- $ mkdir recipes-kernel/linux
- $ mkdir recipes-kernel/linux/linux-yocto
+ $ cd $HOME
+ $ mkdir meta-mylayer
+ $ mkdir meta-mylayer/conf
+ $ mkdir meta-mylayer/recipes-kernel
+ $ mkdir meta-mylayer/recipes-kernel/linux
+ $ mkdir meta-mylayer/recipes-kernel/linux/linux-yocto
</literallayout>
The <filename>conf</filename> directory holds your
configuration files, while the
append file and eventual patch files.
</para></listitem>
<listitem><para>
- <emphasis>Create the layer configuration file</emphasis>:
+ <emphasis>Create the Layer Configuration File</emphasis>:
Move to the <filename>meta-mylayer/conf</filename>
directory and create the <filename>layer.conf</filename>
file as follows:
three statements.
</para></listitem>
<listitem><para>
- <emphasis>Create the kernel recipe append file</emphasis>:
+ <emphasis>Create the Kernel Recipe Append File</emphasis>:
Move to the
<filename>meta-mylayer/recipes-kernel/linux</filename>
directory and create the kernel's append file.
<literallayout class='monospaced'>
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
- SRC_URI += "file://<replaceable>patch-file-one</replaceable>"
- SRC_URI += "file://<replaceable>patch-file-two</replaceable>"
- SRC_URI += "file://<replaceable>patch-file-three</replaceable>"
+ SRC_URI_append += "file://<replaceable>patch-file-one</replaceable>"
+ SRC_URI_append += "file://<replaceable>patch-file-two</replaceable>"
+ SRC_URI_append += "file://<replaceable>patch-file-three</replaceable>"
</literallayout>
The
<ulink url='&YOCTO_DOCS_REF_URL;#var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></ulink>