summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörg Sommer <joerg.sommer@navimatix.de>2024-04-05 12:14:20 +0200
committerSteve Sakoman <steve@sakoman.com>2024-04-19 04:50:40 -0700
commit9f0fd0ad0ea38742c69d452030b454b9f3373d91 (patch)
treec9203e70dbf3f95e8ee362d481776ac745dc7b07
parent3656b0f473a3c17611d482fee700ddd5017269d5 (diff)
downloadpoky-9f0fd0ad0ea38742c69d452030b454b9f3373d91.tar.gz
kernel-dev: join mkdir commands with -p
To make it more obvious which directories are needed, pass only these to *mkdir* and use the option `-p` to create the missing parents. (From yocto-docs rev: 4ddcedca4b09e2c051b33a40659ffce1db2984f5) Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de> Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--documentation/kernel-dev/common.rst10
1 files changed, 2 insertions, 8 deletions
diff --git a/documentation/kernel-dev/common.rst b/documentation/kernel-dev/common.rst
index cbcb30281a..3f9d8d48e4 100644
--- a/documentation/kernel-dev/common.rst
+++ b/documentation/kernel-dev/common.rst
@@ -383,11 +383,7 @@ home directory:
383 383
3841. *Create Structure*: Create the layer's structure:: 3841. *Create Structure*: Create the layer's structure::
385 385
386 $ mkdir meta-mylayer 386 $ mkdir -p meta-mylayer/conf meta-mylayer/recipes-kernel/linux/linux-yocto
387 $ mkdir meta-mylayer/conf
388 $ mkdir meta-mylayer/recipes-kernel
389 $ mkdir meta-mylayer/recipes-kernel/linux
390 $ mkdir meta-mylayer/recipes-kernel/linux/linux-yocto
391 387
392 The ``conf`` directory holds your configuration files, while the 388 The ``conf`` directory holds your configuration files, while the
393 ``recipes-kernel`` directory holds your append file and eventual 389 ``recipes-kernel`` directory holds your append file and eventual
@@ -1044,9 +1040,7 @@ Section.
1044 additional structure to your layer using the following commands:: 1040 additional structure to your layer using the following commands::
1045 1041
1046 $ cd ~/meta-mylayer 1042 $ cd ~/meta-mylayer
1047 $ mkdir recipes-kernel 1043 $ mkdir -p recipes-kernel recipes-kernel/linux/linux-yocto
1048 $ mkdir recipes-kernel/linux
1049 $ mkdir recipes-kernel/linux/linux-yocto
1050 1044
1051 Once you have created this 1045 Once you have created this
1052 hierarchy in your layer, you can move the patch file using the 1046 hierarchy in your layer, you can move the patch file using the