diff mbox series

kernel-dev: join mkdir commands with -p

Message ID 31036f61cb79b07a4e774d799ec7bb8cf0bdbf07.1712312060.git.joerg.sommer@navimatix.de
State New
Headers show
Series kernel-dev: join mkdir commands with -p | expand

Commit Message

Jörg Sommer April 5, 2024, 10:14 a.m. UTC
From: Jörg Sommer <joerg.sommer@navimatix.de>

To make it more obvious which directories are needed, pass only these to
*mkdir* and use the option `-p` to create the missing parents.

Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
---
 documentation/kernel-dev/common.rst | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

Comments

Michael Opdenacker April 8, 2024, 7:07 a.m. UTC | #1
Hi Jörg

Thanks for the patch!

On 4/5/24 at 12:14, Jörg Sommer via lists.yoctoproject.org wrote:
> From: Jörg Sommer <joerg.sommer@navimatix.de>
>
> To make it more obvious which directories are needed, pass only these to
> *mkdir* and use the option `-p` to create the missing parents.
>
> Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
> ---
>   documentation/kernel-dev/common.rst | 10 ++--------
>   1 file 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:
>   
>   #. *Create Structure*: Create the layer's structure::
>   
> -      $ 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
> +      $ mkdir -p meta-mylayer/conf meta-mylayer/recipes-kernel/linux/linux-yocto
>   
>      The ``conf`` directory holds your configuration files, while the
>      ``recipes-kernel`` directory holds your append file and eventual
> @@ -964,9 +960,7 @@ Section.
>      additional structure to your layer using the following commands::
>   
>         $ cd ~/meta-mylayer
> -      $ mkdir recipes-kernel
> -      $ mkdir recipes-kernel/linux
> -      $ mkdir recipes-kernel/linux/linux-yocto
> +      $ mkdir -p recipes-kernel recipes-kernel/linux/linux-yocto


I definitely agree with your change! That's giving bad advice otherwise.
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Merged into master-next.
Thanks again
Michael.
diff mbox series

Patch

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:
 
 #. *Create Structure*: Create the layer's structure::
 
-      $ 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
+      $ mkdir -p meta-mylayer/conf meta-mylayer/recipes-kernel/linux/linux-yocto
 
    The ``conf`` directory holds your configuration files, while the
    ``recipes-kernel`` directory holds your append file and eventual
@@ -964,9 +960,7 @@  Section.
    additional structure to your layer using the following commands::
 
       $ cd ~/meta-mylayer
-      $ mkdir recipes-kernel
-      $ mkdir recipes-kernel/linux
-      $ mkdir recipes-kernel/linux/linux-yocto
+      $ mkdir -p recipes-kernel recipes-kernel/linux/linux-yocto
 
    Once you have created this
    hierarchy in your layer, you can move the patch file using the