Skip to contentSkip to conversation

meta: move some text from oe-setup-builddir to conf-notes.txt

PATCH In review [email protected] 2 participants 3 messages Aug 21, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meta: move some text from oe-setup-builddir to conf-notes.txt

From: Ming Liu <[email protected]>

This allows the end users to be able to override the entire notes showing on the shell console. For instance, Our company uses a external conf-notes.txt, and we run bitbake with some extra variables, looks like: F=xxx D=xxx M=xxx bitbake <target>, so we want to show exactly these texts on the shell console, that's why we need this change.

---
 meta/conf/conf-notes.txt  | 5 +++++
 scripts/oe-setup-builddir | 7 -------
 2 files changed, 5 insertions(+), 7 deletions(-)
meta/conf/conf-notes.txt +5 -0
index 2f2932b..f1a4f4d 100644
@@ -1,3 +1,8 @@
+
+### Shell environment set up for builds. ###
+
+You can now run 'bitbake <target>'
+
 Common targets are:
     core-image-minimal
     core-image-sato
scripts/oe-setup-builddir +0 -7
index ef49551..55d73ca 100755
@@ -133,13 +133,6 @@ EOM
 #    unset SHOWYPDOC
 fi
 
-cat <<EOM
-
-### Shell environment set up for builds. ###
-
-You can now run 'bitbake <target>'
-
-EOM
 if [ -z "$OECORENOTESCONF" ]; then
     OECORENOTESCONF="$OEROOT/meta/conf/conf-notes.txt"
 fi
Signature · 1 line
2.7.4
#1 lore raw
Quoted 9 lines · On Mon, 2017-08-21 at 13:45 +0200, [email protected] wrote:

From: Ming Liu <[email protected]>

This allows the end users to be able to override the entire notes showing on the shell console. For instance, Our company uses a external conf-notes.txt, and we run bitbake with some extra variables, looks like: F=xxx D=xxx M=xxx bitbake <target>, so we want to show exactly these texts on the shell console, that's why we need this change.

I do not clearly spot the real gain. oe-setup-buildir just plots the header and you can include what you specific stuff into conf-notes. The header string does not strictly belongs to conf-notes, at least not semantically.

Quoted 40 lines
---
 meta/conf/conf-notes.txt  | 5 +++++
 scripts/oe-setup-builddir | 7 -------
 2 files changed, 5 insertions(+), 7 deletions(-)
meta/conf/conf-notes.txt +5 -0
index 2f2932b..f1a4f4d 100644
@@ -1,3 +1,8 @@
+
+### Shell environment set up for builds. ###
+
+You can now run 'bitbake <target>'
+
 Common targets are:
     core-image-minimal
     core-image-sato
scripts/oe-setup-builddir +0 -7
index ef49551..55d73ca 100755
@@ -133,13 +133,6 @@ EOM
 #    unset SHOWYPDOC
 fi
 
-cat <<EOM
-
-### Shell environment set up for builds. ###
-
-You can now run 'bitbake <target>'
-
-EOM
 if [ -z "$OECORENOTESCONF" ]; then
     OECORENOTESCONF="$OEROOT/meta/conf/conf-notes.txt"
 fi
Signature · 1 line
2.7.4
author
#2 lore raw

Hi, Leonardo:

I would like to explain our scenario: we want to show our costumers the following tips:
...
### Shell environment set up for AtlasCopco builds. ###

You can now start a build with:
F=<features> D=<distro> M=<machine> bitbake <target> [-c task]
...

and they are duplicated with the header in oe-setup-buildir, I could not find a way to override them without this patch. Or maybe you have any other suggestions?

//Ming Liu

2017-08-21 16:47 GMT+02:00 Leonardo Sandoval <
[email protected]>:

Quoted 60 lines · On Mon, 2017-08-21 at 13:45 +0200, [email protected] wrote:
Quoted 9 lines

From: Ming Liu <[email protected]>

This allows the end users to be able to override the entire notes showing on the shell console. For instance, Our company uses a external conf-notes.txt, and we run bitbake with some extra variables, looks like: F=xxx D=xxx M=xxx bitbake <target>, so we want to show exactly these texts on the shell console, that's why we need this change.

I do not clearly spot the real gain. oe-setup-buildir just plots the header and you can include what you specific stuff into conf-notes. The header string does not strictly belongs to conf-notes, at least not semantically.

Quoted 40 lines
---
 meta/conf/conf-notes.txt  | 5 +++++
 scripts/oe-setup-builddir | 7 -------
 2 files changed, 5 insertions(+), 7 deletions(-)
meta/conf/conf-notes.txt +5 -0
index 2f2932b..f1a4f4d 100644
@@ -1,3 +1,8 @@
+
+### Shell environment set up for builds. ###
+
+You can now run 'bitbake <target>'
+
 Common targets are:
     core-image-minimal
     core-image-sato
scripts/oe-setup-builddir +0 -8
index ef49551..55d73ca 100755
@@ -133,13 +133,6 @@ EOM
 #    unset SHOWYPDOC
 fi
 
-cat <<EOM
-
-### Shell environment set up for builds. ###
-
-You can now run 'bitbake <target>'
-
-EOM
 if [ -z "$OECORENOTESCONF" ]; then
     OECORENOTESCONF="$OEROOT/meta/conf/conf-notes.txt"
 fi
--

2.7.4