From 0767740f3289b41e02fd559aa24c6e35d90d3450 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 20 Sep 2017 12:27:22 -0700 Subject: [PATCH] kernel-dev: Updates to creating a layer section. (From yocto-docs rev: a57ba3f227831225a544df1ab774422364b91d6f) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../kernel-dev/kernel-dev-common.xml | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml index 24feb94b796..6179883c488 100644 --- a/documentation/kernel-dev/kernel-dev-common.xml +++ b/documentation/kernel-dev/kernel-dev-common.xml @@ -488,17 +488,20 @@ 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 + mylayer in your home directory: - Create additional structure: - Create the additional layer structure: + Create Structure: + Create the layer's structure: - $ 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 The conf directory holds your configuration files, while the @@ -506,7 +509,7 @@ append file and eventual patch files. - Create the layer configuration file: + Create the Layer Configuration File: Move to the meta-mylayer/conf directory and create the layer.conf file as follows: @@ -526,7 +529,7 @@ three statements. - Create the kernel recipe append file: + Create the Kernel Recipe Append File: Move to the meta-mylayer/recipes-kernel/linux directory and create the kernel's append file. @@ -537,9 +540,9 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" - SRC_URI += "file://patch-file-one" - SRC_URI += "file://patch-file-two" - SRC_URI += "file://patch-file-three" + SRC_URI_append += "file://patch-file-one" + SRC_URI_append += "file://patch-file-two" + SRC_URI_append += "file://patch-file-three" The FILESEXTRAPATHS -- 2.47.3