diff options
author | Jörg Sommer <joerg.sommer@navimatix.de> | 2024-04-05 12:14:20 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-04-08 14:36:38 +0100 |
commit | c0b4eff954758d8f386e587bfc68f37648fd693f (patch) | |
tree | 6c9089cdf89a736362a83bfa65a90f8eee04e889 /documentation | |
parent | 88f04994ef9c730876bd195f721b505402b55066 (diff) | |
download | poky-c0b4eff954758d8f386e587bfc68f37648fd693f.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: 92806d2ab1f909eef9ccc532958a7ced6262b9b0)
Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/kernel-dev/common.rst | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/documentation/kernel-dev/common.rst b/documentation/kernel-dev/common.rst index 0cee503346..9a7a1907f6 100644 --- a/documentation/kernel-dev/common.rst +++ b/documentation/kernel-dev/common.rst | |||
@@ -315,11 +315,7 @@ home directory: | |||
315 | 315 | ||
316 | #. *Create Structure*: Create the layer's structure:: | 316 | #. *Create Structure*: Create the layer's structure:: |
317 | 317 | ||
318 | $ mkdir meta-mylayer | 318 | $ mkdir -p meta-mylayer/conf meta-mylayer/recipes-kernel/linux/linux-yocto |
319 | $ mkdir meta-mylayer/conf | ||
320 | $ mkdir meta-mylayer/recipes-kernel | ||
321 | $ mkdir meta-mylayer/recipes-kernel/linux | ||
322 | $ mkdir meta-mylayer/recipes-kernel/linux/linux-yocto | ||
323 | 319 | ||
324 | The ``conf`` directory holds your configuration files, while the | 320 | The ``conf`` directory holds your configuration files, while the |
325 | ``recipes-kernel`` directory holds your append file and eventual | 321 | ``recipes-kernel`` directory holds your append file and eventual |
@@ -964,9 +960,7 @@ Section. | |||
964 | additional structure to your layer using the following commands:: | 960 | additional structure to your layer using the following commands:: |
965 | 961 | ||
966 | $ cd ~/meta-mylayer | 962 | $ cd ~/meta-mylayer |
967 | $ mkdir recipes-kernel | 963 | $ mkdir -p recipes-kernel recipes-kernel/linux/linux-yocto |
968 | $ mkdir recipes-kernel/linux | ||
969 | $ mkdir recipes-kernel/linux/linux-yocto | ||
970 | 964 | ||
971 | Once you have created this | 965 | Once you have created this |
972 | hierarchy in your layer, you can move the patch file using the | 966 | hierarchy in your layer, you can move the patch file using the |