summaryrefslogtreecommitdiffstats
path: root/documentation/kernel-dev/kernel-dev-common.xml
diff options
context:
space:
mode:
authorScott Rifenbark <srifenbark@gmail.com>2017-09-20 12:27:22 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-22 17:53:44 +0100
commit0767740f3289b41e02fd559aa24c6e35d90d3450 (patch)
tree79e08dcaa5e824db355aae7549967466540f0248 /documentation/kernel-dev/kernel-dev-common.xml
parent0d70911d4e580d1da8b9b4e3c2c06bf75217ce57 (diff)
downloadpoky-0767740f3289b41e02fd559aa24c6e35d90d3450.tar.gz
kernel-dev: Updates to creating a layer section.
(From yocto-docs rev: a57ba3f227831225a544df1ab774422364b91d6f) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/kernel-dev/kernel-dev-common.xml')
-rw-r--r--documentation/kernel-dev/kernel-dev-common.xml29
1 files changed, 16 insertions, 13 deletions
diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml
index 24feb94b79..6179883c48 100644
--- a/documentation/kernel-dev/kernel-dev-common.xml
+++ b/documentation/kernel-dev/kernel-dev-common.xml
@@ -488,17 +488,20 @@
488 <para> 488 <para>
489 To better understand the layer you create for kernel development, 489 To better understand the layer you create for kernel development,
490 the following section describes how to create a layer 490 the following section describes how to create a layer
491 without the aid of tools: 491 without the aid of tools.
492 These steps assume creation of a layer named
493 <filename>mylayer</filename> in your home directory:
492 <orderedlist> 494 <orderedlist>
493 <listitem><para> 495 <listitem><para>
494 <emphasis>Create additional structure</emphasis>: 496 <emphasis>Create Structure</emphasis>:
495 Create the additional layer structure: 497 Create the layer's structure:
496 <literallayout class='monospaced'> 498 <literallayout class='monospaced'>
497 $ cd ~/poky/meta-mylayer 499 $ cd $HOME
498 $ mkdir conf 500 $ mkdir meta-mylayer
499 $ mkdir recipes-kernel 501 $ mkdir meta-mylayer/conf
500 $ mkdir recipes-kernel/linux 502 $ mkdir meta-mylayer/recipes-kernel
501 $ mkdir recipes-kernel/linux/linux-yocto 503 $ mkdir meta-mylayer/recipes-kernel/linux
504 $ mkdir meta-mylayer/recipes-kernel/linux/linux-yocto
502 </literallayout> 505 </literallayout>
503 The <filename>conf</filename> directory holds your 506 The <filename>conf</filename> directory holds your
504 configuration files, while the 507 configuration files, while the
@@ -506,7 +509,7 @@
506 append file and eventual patch files. 509 append file and eventual patch files.
507 </para></listitem> 510 </para></listitem>
508 <listitem><para> 511 <listitem><para>
509 <emphasis>Create the layer configuration file</emphasis>: 512 <emphasis>Create the Layer Configuration File</emphasis>:
510 Move to the <filename>meta-mylayer/conf</filename> 513 Move to the <filename>meta-mylayer/conf</filename>
511 directory and create the <filename>layer.conf</filename> 514 directory and create the <filename>layer.conf</filename>
512 file as follows: 515 file as follows:
@@ -526,7 +529,7 @@
526 three statements. 529 three statements.
527 </para></listitem> 530 </para></listitem>
528 <listitem><para> 531 <listitem><para>
529 <emphasis>Create the kernel recipe append file</emphasis>: 532 <emphasis>Create the Kernel Recipe Append File</emphasis>:
530 Move to the 533 Move to the
531 <filename>meta-mylayer/recipes-kernel/linux</filename> 534 <filename>meta-mylayer/recipes-kernel/linux</filename>
532 directory and create the kernel's append file. 535 directory and create the kernel's append file.
@@ -537,9 +540,9 @@
537 <literallayout class='monospaced'> 540 <literallayout class='monospaced'>
538 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" 541 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
539 542
540 SRC_URI += "file://<replaceable>patch-file-one</replaceable>" 543 SRC_URI_append += "file://<replaceable>patch-file-one</replaceable>"
541 SRC_URI += "file://<replaceable>patch-file-two</replaceable>" 544 SRC_URI_append += "file://<replaceable>patch-file-two</replaceable>"
542 SRC_URI += "file://<replaceable>patch-file-three</replaceable>" 545 SRC_URI_append += "file://<replaceable>patch-file-three</replaceable>"
543 </literallayout> 546 </literallayout>
544 The 547 The
545 <ulink url='&YOCTO_DOCS_REF_URL;#var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></ulink> 548 <ulink url='&YOCTO_DOCS_REF_URL;#var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></ulink>