Skip to contentSkip to conversation

release-notes-4.1.rst remove bitbake-layers subcommand argument

PATCH In review [email protected] 3 participants 6 messages Oct 20, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v6 1/1 release-notes-4.1.rst remove bitbake-layers subcommand argument

From: Takayasu Ito <[email protected]>

---
 documentation/migration-guides/release-notes-4.1.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
documentation/migration-guides/release-notes-4.1.rst +1 -1
index 0c552bf1a..a2d4b3d6c 100644
@@ -18,7 +18,7 @@ New Features / Enhancements in 4.1
 
   - New ``scripts/oe-setup-layers`` standalone script to restore the layer
     configuration from a json file
-  - New ``bitbake-layers create-layers-setup destdir`` command to save the
+  - New ``bitbake-layers create-layers-setup`` command to save the
     layer configuration to a json file
   - New ``bitbake-layers save-build-conf`` command to save the active build
     configuration as a template into a layer
Signature · 1 line
2.25.1
#1 lore raw
Quoted 6 lines · Takayasu Ito

From: Takayasu Ito <[email protected]>

---
  documentation/migration-guides/release-notes-4.1.rst | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Great, the patch applies correctly now.
Thanks
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw
In reply to [email protected]

Hi again Ito

Now that the patch is correct, let's talk about the proposed change itself...

Quoted 12 lines · Takayasu Ito

From: Takayasu Ito <[email protected]>

---
  documentation/migration-guides/release-notes-4.1.rst | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
documentation/migration-guides/release-notes-4.1.rst +0 -0
index 0c552bf1a..a2d4b3d6c 100644

documentation/migration-guides/release-notes-4.1.rst New Features / Enhancements in 4.1 · line 24

Quoted 8 lines
documentation/migration-guides/release-notes-4.1.rst +1 -1
@@ -18,7 +18,7 @@ New Features / Enhancements in 4.1
 
    - New ``scripts/oe-setup-layers`` standalone script to restore the layer
      configuration from a json file
-  - New ``bitbake-layers create-layers-setup destdir`` command to save the
+  - New ``bitbake-layers create-layers-setup`` command to save the
      layer configuration to a json file
    - New ``bitbake-layers save-build-conf`` command to save the active build
      configuration as a template into a layer

I'm not sure what you propose to modify is correct though.

Here's what I have with the latest "master" branch from the poky repository:

$ bitbake-layers create-layers-setup

NOTE: Starting bitbake server...

usage: bitbake-layers create-layers-setup [-h] [--output-prefix OUTPUT_PREFIX] [--writer {oe-setup-layers}] [--json-only] destdir

bitbake-layers create-layers-setup: error: the following arguments are required: destdir

$ mkdir my-conf
$ bitbake-layers create-layers-setup my-conf

NOTE: Starting bitbake server...

NOTE: Created /home/mike/work/git/git.yoctoproject.org/build/my-conf/setup-layers.json

NOTE: Created /home/mike/work/git/git.yoctoproject.org/build/my-conf/setup-layers

Which version did you make your tests with? Or what misled you? Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

Hi Michael

The subcommand save-build-conf, which was added at the same time, only contains the subcommand name and no parameters, so we have made a proposal to unify the notation.

If "bitbake-layers create-layers-setup destdir" is used, it would be better to use "bitbake-layers save-build-conf layerpath templatename" with the required parameters to unify the notation.

Quoted 53 lines · Michael Opdenacker

Hi again Ito

Now that the patch is correct, let's talk about the proposed change itself...

Quoted 12 lines · Takayasu Ito

From: Takayasu Ito <[email protected]>

---
  documentation/migration-guides/release-notes-4.1.rst | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
documentation/migration-guides/release-notes-4.1.rst +0 -0
index 0c552bf1a..a2d4b3d6c 100644
@@ -18,7 +18,7 @@ New Features / Enhancements in 4.1
Quoted 8 lines

    - New ``scripts/oe-setup-layers`` standalone script to restore the layer configuration from a json file
-  - New ``bitbake-layers create-layers-setup destdir`` command to save the
+  - New ``bitbake-layers create-layers-setup`` command to save the layer configuration to a json file
    - New ``bitbake-layers save-build-conf`` command to save the active build configuration as a template into a layer

I'm not sure what you propose to modify is correct though.

Here's what I have with the latest "master" branch from the poky repository:

$ bitbake-layers create-layers-setup

NOTE: Starting bitbake server...

usage: bitbake-layers create-layers-setup [-h] [--output-prefix OUTPUT_PREFIX] [--writer {oe-setup-layers}] [--json-only] destdir

bitbake-layers create-layers-setup: error: the following arguments are required: destdir

$ mkdir my-conf
$ bitbake-layers create-layers-setup my-conf

NOTE: Starting bitbake server...

NOTE: Created /home/mike/work/git/git.yoctoproject.org/build/my-conf/setup-layers.json

NOTE: Created /home/mike/work/git/git.yoctoproject.org/build/my-conf/setup-layers

Which version did you make your tests with? Or what misled you? Cheers
Michael.

Signature · 11 lines
リネオソリューションズ株式会社 本社
伊東孝康 <[email protected]>
〒399-0651 長野県塩尻市北小野1589-1
Tel +81-263-56-2317 Fax +81-263-56-2319
  ┏━━━━━━━━━━━━━━━━━━━━━━┓
┏┫   リネオは お客様の これりな を後押し   ┣┓
┃┗┳━━━━━━━━━━━━━━━━━━━━┳┛┃
┗━┛         https://www.lineo.co.jp        ┗━┛
┏━━━━━━━━━━━━━━━━━━━━━━━┓
┃ これりな = これからはLinux / これからもLinux ┃
┗━━━━━━━━━━━━━━━━━━━━━━━┛
#4 lore raw

I agree with the change: only the command should be mentioned, and all arguments should be left out, even if they're mandatory.

Alex

Quoted 96 lines · Takayasu Ito

Hi Michael

The subcommand save-build-conf, which was added at the same time, only contains the subcommand name and no parameters, so we have made a proposal to unify the notation.

If "bitbake-layers create-layers-setup destdir" is used, it would be better to use "bitbake-layers save-build-conf layerpath templatename" with the required parameters to unify the notation.

Quoted 55 lines · Michael Opdenacker

Hi again Ito

Now that the patch is correct, let's talk about the proposed change itself...

Quoted 15 lines · Takayasu Ito

From: Takayasu Ito <[email protected]>

---
  documentation/migration-guides/release-notes-4.1.rst | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
documentation/migration-guides/release-notes-4.1.rst +0 -0
index 0c552bf1a..a2d4b3d6c 100644
@@ -18,7 +18,7 @@ New Features / Enhancements in 4.1
    - New ``scripts/oe-setup-layers`` standalone script to restore the

layer

Quoted 8 lines

configuration from a json file
- - New ``bitbake-layers create-layers-setup destdir`` command to save the
+ - New ``bitbake-layers create-layers-setup`` command to save the layer configuration to a json file
- New ``bitbake-layers save-build-conf`` command to save the
active build
configuration as a template into a layer

I'm not sure what you propose to modify is correct though.

Here's what I have with the latest "master" branch from the poky repository:

$ bitbake-layers create-layers-setup

NOTE: Starting bitbake server...

usage: bitbake-layers create-layers-setup [-h] [--output-prefix OUTPUT_PREFIX] [--writer {oe-setup-layers}] [--json-only] destdir

bitbake-layers create-layers-setup: error: the following arguments are
required: destdir

$ mkdir my-conf
$ bitbake-layers create-layers-setup my-conf

NOTE: Starting bitbake server...

NOTE: Created /home/mike/work/git/git.yoctoproject.org/build/my-conf/setup-layers.json

Quoted 7 lines

NOTE: Created /home/mike/work/git/git.yoctoproject.org/build/my-conf/setup-layers

Which version did you make your tests with? Or what misled you? Cheers
Michael.

--
リネオソリューションズ株式会社 本社
伊東孝康 <[email protected]>
〒399-0651 長野県塩尻市北小野1589-1
Tel +81-263-56-2317 Fax +81-263-56-2319

   ┏━━━━━━━━━━━━━━━━━━━━━━┓
┏┫   リネオは お客様の これりな を後押し   ┣┓
┃┗┳━━━━━━━━━━━━━━━━━━━━┳┛┃
┗━┛         https://www.lineo.co.jp        ┗━┛
┏━━━━━━━━━━━━━━━━━━━━━━━┓
┃ これりな = これからはLinux / これからもLinux ┃
┗━━━━━━━━━━━━━━━━━━━━━━━┛

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#3388): https://lists.yoctoproject.org/g/docs/message/3388
Mute This Topic: https://lists.yoctoproject.org/mt/94448743/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/docs/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reviewed-by
#5 lore raw
Quoted 15 lines · Alexander Kanavin

I agree with the change: only the command should be mentioned, and all arguments should be left out, even if they're mandatory.

Alex

Quoted 9 lines · Takayasu Ito

Hi Michael

The subcommand save-build-conf, which was added at the same time, only contains the subcommand name and no parameters, so we have made a proposal to unify the notation.

If "bitbake-layers create-layers-setup destdir" is used, it would be better to use "bitbake-layers save-build-conf layerpath templatename" with the required parameters to unify the notation.

Ok, makes sense, thanks!

... and merged into "master-next".

Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com