Skip to contentSkip to conversation

meta/conf/templates/default/conf-notes.txt: remove

PATCH In review Alexander Kanavin 2 participants 6 messages Aug 30, 2023 – Sep 1, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 meta/conf/templates/default/conf-notes.txt: remove

This is present in the poky repository, even though it should not be:
https://git.yoctoproject.org/poky/tree/meta/conf/templates/default?id=ddf3b3ecd4b1680dc0dedfd4eaebcf3441b14ca7

---
 meta/conf/templates/default/conf-notes.txt | 19 -------------------
 1 file changed, 19 deletions(-)
 delete mode 100644 meta/conf/templates/default/conf-notes.txt
meta/conf/templates/default/conf-notes.txt deleted +0 -19
deleted file mode 100644
index cfd1f1977bf..00000000000
@@ -1,19 +0,0 @@
-
-### Shell environment set up for builds. ###
-
-You can now run 'bitbake <target>'
-
-Common targets are:
-    core-image-minimal
-    core-image-full-cmdline
-    core-image-sato
-    core-image-weston
-    meta-toolchain
-    meta-ide-support
-
-You can also run generated qemu images with a command like 'runqemu qemux86-64'.
-
-Other commonly useful commands are:
- - 'devtool' and 'recipetool' handle common recipe tasks
- - 'bitbake-layers' handles common layer tasks
- - 'oe-pkgdata-util' handles common target package tasks
Signature · 1 line
2.30.2
#1 lore raw

PATCH 2/2 meta-poky/conf/templates/default/conf-description.txt: add a template description

There is a need to separate the template notes (which are lengthy instructions about how to use the template) and template description (which is a short explanation of what the template is for).

This patch adds such a description for the poky default template, and updates to the tools will follow.

---
 meta-poky/conf/templates/default/conf-description.txt | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 meta-poky/conf/templates/default/conf-description.txt
meta-poky/conf/templates/default/conf-description.txt new file +1 -0
new file mode 100644
index 00000000000..8fc03030c7f
@@ -0,0 +1 @@
+This is the default build configuration for the Poky reference distribution.
Signature · 1 line
2.30.2
#2 lore raw

RE: [poky] [PATCH 2/2] meta-poky/conf/templates/default/conf-description.txt: add a template description

Quoted 28 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Alexander Kanavin
Sent: den 30 augusti 2023 16:16
To: [email protected]
Cc: Alexander Kanavin <[email protected]>
Subject: [poky] [PATCH 2/2] meta-poky/conf/templates/default/conf-description.txt: add a template description

There is a need to separate the template notes (which are lengthy instructions about how to use the template) and template description (which is a short explanation of what the template is for).

This patch adds such a description for the poky default template, and updates to the tools will follow.

---
 meta-poky/conf/templates/default/conf-description.txt | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 meta-poky/conf/templates/default/conf-description.txt
meta-poky/conf/templates/default/conf-description.txt new file +1 -1
new file mode 100644
index 00000000000..8fc03030c7f
@@ -0,0 +1 @@
+This is the default build configuration for the Poky reference distribution.
--
Quoted 1 line

2.30.2

To use the same nomenclature as for the variables, how about calling this conf-summary.txt instead? Compare to SUMMARY vs DESCRIPTION.

//Peter

#3 lore raw

Re: [poky] [PATCH 2/2] meta-poky/conf/templates/default/conf-description.txt: add a template description

Quoted 8 lines · Peter Kjellerstedt
Quoted 5 lines

+++ b/meta-poky/conf/templates/default/conf-description.txt

(quoted diff) +1 -1
@@ -0,0 +1 @@
+This is the default build configuration for the Poky reference distribution.
--

2.30.2

To use the same nomenclature as for the variables, how about calling this conf-summary.txt instead? Compare to SUMMARY vs DESCRIPTION.

To match them up we'd also have to rename conf-notes.txt, breaking compatiblity. And the meanings are not the same as in summary/description recipes or package metadata.

conf-notes.txt would contain lengthy instructions/notes for how to use the template and would be shown when you actually set up a build directory (this is already happening now), conf-description.txt has a single sentence saying what it is for, and shown before/during selection of the template.

Alex

#4 lore raw

RE: [poky] [PATCH 2/2] meta-poky/conf/templates/default/conf-description.txt: add a template description

Quoted 21 lines

-----Original Message-----
From: Alexander Kanavin <[email protected]>
Sent: den 31 augusti 2023 19:12
To: Peter Kjellerstedt <[email protected]>
Cc: [email protected]; Alexander Kanavin <[email protected]>
Subject: Re: [poky] [PATCH 2/2] meta-poky/conf/templates/default/conf-description.txt: add a template description

Quoted 8 lines · Peter Kjellerstedt
Quoted 5 lines

+++ b/meta-poky/conf/templates/default/conf-description.txt

(quoted diff) +1 -1
@@ -0,0 +1 @@
+This is the default build configuration for the Poky reference distribution.
--

2.30.2

To use the same nomenclature as for the variables, how about calling this conf-summary.txt instead? Compare to SUMMARY vs DESCRIPTION.

To match them up we'd also have to rename conf-notes.txt, breaking compatiblity. And the meanings are not the same as in summary/description recipes or package metadata.

Quoted 7 lines

conf-notes.txt would contain lengthy instructions/notes for how to use the template and would be shown when you actually set up a build directory (this is already happening now), conf-description.txt has a single sentence saying what it is for, and shown before/during selection of the template.

Alex

Well, your distinction between "notes" and "description" and that the latter is expected to be a oneliner is not obvious from their names. Though, in the end, I guess it is all down to documentation...

//Peter

#5 lore raw

Re: [poky] [PATCH 2/2] meta-poky/conf/templates/default/conf-description.txt: add a template description

Quoted 8 lines · Peter Kjellerstedt
Quoted 5 lines

conf-notes.txt would contain lengthy instructions/notes for how to use the template and would be shown when you actually set up a build directory (this is already happening now), conf-description.txt has a single sentence saying what it is for, and shown before/during selection of the template.

Well, your distinction between "notes" and "description" and that the latter is expected to be a oneliner is not obvious from their names. Though, in the end, I guess it is all down to documentation...

There's also how the tools are handling them. 'bitbake-layers save-build-conf' would write the following into the files:

https://patchwork.yoctoproject.org/project/oe-core/patch/[email protected]/

Description would be then shown on template selection and both description and notes when initializing a build from it. Between all that users should be able to figure out what needs to go where.

Alex