* newbb.vim vs skeleton recipe in yocto-docs dev manual....
@ 2014-11-09 21:13 Bob Cochran
2014-11-09 22:01 ` Paul Barker
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Bob Cochran @ 2014-11-09 21:13 UTC (permalink / raw)
To: Yocto discussion list
Hi,
I just noticed that newbb.vim in bitbake/contrib is notably different
from the skeleton recipe proposed in the latest Dev Manual.
I'll submit a patch if someone can give me some guidance on what should
be in newbb.vim (or maybe it's the manual that needs to be patched).
Bob
From yocto-docs: Dev Manual (modify the following skeleton recipe):
SUMMARY = ""
HOMEPAGE = ""
LICENSE = ""
LIC_FILES_CHKSUM = ""
SRC_URI = ""
SRC_URI[md5sum] = ""
SRC_URI[sha256sum] = ""
S = "${WORKDIR}/${PN}-${PV}"
From newbb.vim:
DESCRIPTION = ""
HOMEPAGE = ""
LICENSE = ""
SECTION = ""
DEPENDS = ""
SRC_URI = ""
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: newbb.vim vs skeleton recipe in yocto-docs dev manual....
2014-11-09 21:13 newbb.vim vs skeleton recipe in yocto-docs dev manual Bob Cochran
@ 2014-11-09 22:01 ` Paul Barker
2014-11-10 14:28 ` Rifenbark, Scott M
2015-01-06 18:16 ` Rifenbark, Scott M
2 siblings, 0 replies; 7+ messages in thread
From: Paul Barker @ 2014-11-09 22:01 UTC (permalink / raw)
To: Bob Cochran; +Cc: Yocto discussion list
On 9 November 2014 21:13, Bob Cochran <yocto@mindchasers.com> wrote:
> Hi,
>
> I just noticed that newbb.vim in bitbake/contrib is notably different from
> the skeleton recipe proposed in the latest Dev Manual.
>
> I'll submit a patch if someone can give me some guidance on what should be
> in newbb.vim (or maybe it's the manual that needs to be patched).
>
> Bob
>
>
> From yocto-docs: Dev Manual (modify the following skeleton recipe):
>
> SUMMARY = ""
> HOMEPAGE = ""
> LICENSE = ""
> LIC_FILES_CHKSUM = ""
> SRC_URI = ""
> SRC_URI[md5sum] = ""
> SRC_URI[sha256sum] = ""
> S = "${WORKDIR}/${PN}-${PV}"
>
This list looks a lot more comprehensive than the other. DESCRIPTION
is set to SUMMARY if otherwise left blank. SECTION isn't terribly
important, I never set it in recipes in my layers. DEPENDS is
important though and probably belongs in the list. Lastly, S has a
sensible default value which you don't usually need to override.
So I'd suggest using the above list, plus DEPENDS, subtract S.
Cheers,
--
Paul Barker
Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: newbb.vim vs skeleton recipe in yocto-docs dev manual....
2014-11-09 21:13 newbb.vim vs skeleton recipe in yocto-docs dev manual Bob Cochran
2014-11-09 22:01 ` Paul Barker
@ 2014-11-10 14:28 ` Rifenbark, Scott M
2014-11-10 14:44 ` Bob Cochran
2014-11-19 3:01 ` Bob Cochran
2015-01-06 18:16 ` Rifenbark, Scott M
2 siblings, 2 replies; 7+ messages in thread
From: Rifenbark, Scott M @ 2014-11-10 14:28 UTC (permalink / raw)
To: Bob Cochran, Yocto discussion list
newbb.vim needs to be patched.
Scott
>-----Original Message-----
>From: yocto-bounces@yoctoproject.org [mailto:yocto-
>bounces@yoctoproject.org] On Behalf Of Bob Cochran
>Sent: Sunday, November 09, 2014 1:14 PM
>To: Yocto discussion list
>Subject: [yocto] newbb.vim vs skeleton recipe in yocto-docs dev manual....
>
>Hi,
>
>I just noticed that newbb.vim in bitbake/contrib is notably different from the
>skeleton recipe proposed in the latest Dev Manual.
>
>I'll submit a patch if someone can give me some guidance on what should be
>in newbb.vim (or maybe it's the manual that needs to be patched).
>
>Bob
>
>
> From yocto-docs: Dev Manual (modify the following skeleton recipe):
>
>SUMMARY = ""
>HOMEPAGE = ""
>LICENSE = ""
>LIC_FILES_CHKSUM = ""
>SRC_URI = ""
>SRC_URI[md5sum] = ""
>SRC_URI[sha256sum] = ""
>S = "${WORKDIR}/${PN}-${PV}"
>
>
>
> From newbb.vim:
>
>DESCRIPTION = ""
>HOMEPAGE = ""
>LICENSE = ""
>SECTION = ""
>DEPENDS = ""
>
>SRC_URI = ""
>
>
>--
>_______________________________________________
>yocto mailing list
>yocto@yoctoproject.org
>https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: newbb.vim vs skeleton recipe in yocto-docs dev manual....
2014-11-10 14:28 ` Rifenbark, Scott M
@ 2014-11-10 14:44 ` Bob Cochran
2014-11-19 3:01 ` Bob Cochran
1 sibling, 0 replies; 7+ messages in thread
From: Bob Cochran @ 2014-11-10 14:44 UTC (permalink / raw)
To: Rifenbark, Scott M, Yocto discussion list
On 11/10/2014 09:28 AM, Rifenbark, Scott M wrote:
> newbb.vim needs to be patched.
Thanks Scott. I'll submit a patch later this week. Let me see if
anyone else wants to provide input on what should be in the template.
Bob
>
> Scott
>
>> -----Original Message-----
>> From: yocto-bounces@yoctoproject.org [mailto:yocto-
>> bounces@yoctoproject.org] On Behalf Of Bob Cochran
>> Sent: Sunday, November 09, 2014 1:14 PM
>> To: Yocto discussion list
>> Subject: [yocto] newbb.vim vs skeleton recipe in yocto-docs dev manual....
>>
>> Hi,
>>
>> I just noticed that newbb.vim in bitbake/contrib is notably different from the
>> skeleton recipe proposed in the latest Dev Manual.
>>
>> I'll submit a patch if someone can give me some guidance on what should be
>> in newbb.vim (or maybe it's the manual that needs to be patched).
>>
>> Bob
>>
>>
>> From yocto-docs: Dev Manual (modify the following skeleton recipe):
>>
>> SUMMARY = ""
>> HOMEPAGE = ""
>> LICENSE = ""
>> LIC_FILES_CHKSUM = ""
>> SRC_URI = ""
>> SRC_URI[md5sum] = ""
>> SRC_URI[sha256sum] = ""
>> S = "${WORKDIR}/${PN}-${PV}"
>>
>>
>>
>> From newbb.vim:
>>
>> DESCRIPTION = ""
>> HOMEPAGE = ""
>> LICENSE = ""
>> SECTION = ""
>> DEPENDS = ""
>>
>> SRC_URI = ""
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [yocto] newbb.vim vs skeleton recipe in yocto-docs dev manual....
2014-11-10 14:28 ` Rifenbark, Scott M
@ 2014-11-19 3:01 ` Bob Cochran
2014-11-19 3:01 ` Bob Cochran
1 sibling, 0 replies; 7+ messages in thread
From: Bob Cochran @ 2014-11-19 3:01 UTC (permalink / raw)
To: Rifenbark, Scott M, Yocto discussion list; +Cc: paul, bitbake-dev
On 11/10/2014 09:28 AM, Rifenbark, Scott M wrote:
> newbb.vim needs to be patched.
I have a patch ready to bring newbb.vim in line with Section 5.3.2 of
the Yocto Project Dev Manual. However, I'm wondering whether I can
drop the initial two lines of the generated file (I think I should):
# Copyright (C) 2014 <user_name> <user_email>
# Released under the MIT license (see COPYING.MIT for the terms)
This seems inconsistent with the recipes I see in the Yocto / OE layers
and the Yocto documentation.
The patch I created, which is provided below for reference, comments out
the generation of these first two lines:
--- a/bitbake/contrib/vim/plugin/newbb.vim
+++ b/bitbake/contrib/vim/plugin/newbb.vim
@@ -44,21 +44,31 @@ fun! NewBBTemplate()
let l:paste = &paste
set nopaste
- " Get the header
- call BBHeader()
+ " Uncomment the line below to enable header generation
+ "call BBHeader()
" New the bb template
+ 0 put ='SUMMARY = \"\"'
put ='DESCRIPTION = \"\"'
put ='HOMEPAGE = \"\"'
put ='LICENSE = \"\"'
- put ='SECTION = \"\"'
+ put ='LIC_FILES_CHKSUM = \"\"'
+ put =''
put ='DEPENDS = \"\"'
put =''
put ='SRC_URI = \"\"'
+ put ='SRC_URI[md5sum] = \"\"'
+ put ='SRC_URI[sha256sum] = \"\"'
+ put =''
+ put ='S = \"${WORKDIR}/${PN}-${PV}\"'
+ put =''
+ put ='#inherit <classes>'
+
+
" Go to the first place to edit
0
- /^DESCRIPTION =/
+ /^SUMMARY =/
exec "normal 2f\""
if paste == 1
thanks
Bob
>
> Scott
>
>> -----Original Message-----
>> From: yocto-bounces@yoctoproject.org [mailto:yocto-
>> bounces@yoctoproject.org] On Behalf Of Bob Cochran
>> Sent: Sunday, November 09, 2014 1:14 PM
>> To: Yocto discussion list
>> Subject: [yocto] newbb.vim vs skeleton recipe in yocto-docs dev manual....
>>
>> Hi,
>>
>> I just noticed that newbb.vim in bitbake/contrib is notably different from the
>> skeleton recipe proposed in the latest Dev Manual.
>>
>> I'll submit a patch if someone can give me some guidance on what should be
>> in newbb.vim (or maybe it's the manual that needs to be patched).
>>
>> Bob
>>
>>
>> From yocto-docs: Dev Manual (modify the following skeleton recipe):
>>
>> SUMMARY = ""
>> HOMEPAGE = ""
>> LICENSE = ""
>> LIC_FILES_CHKSUM = ""
>> SRC_URI = ""
>> SRC_URI[md5sum] = ""
>> SRC_URI[sha256sum] = ""
>> S = "${WORKDIR}/${PN}-${PV}"
>>
>>
>>
>> From newbb.vim:
>>
>> DESCRIPTION = ""
>> HOMEPAGE = ""
>> LICENSE = ""
>> SECTION = ""
>> DEPENDS = ""
>>
>> SRC_URI = ""
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: newbb.vim vs skeleton recipe in yocto-docs dev manual....
@ 2014-11-19 3:01 ` Bob Cochran
0 siblings, 0 replies; 7+ messages in thread
From: Bob Cochran @ 2014-11-19 3:01 UTC (permalink / raw)
To: Rifenbark, Scott M, Yocto discussion list; +Cc: bitbake-dev
On 11/10/2014 09:28 AM, Rifenbark, Scott M wrote:
> newbb.vim needs to be patched.
I have a patch ready to bring newbb.vim in line with Section 5.3.2 of
the Yocto Project Dev Manual. However, I'm wondering whether I can
drop the initial two lines of the generated file (I think I should):
# Copyright (C) 2014 <user_name> <user_email>
# Released under the MIT license (see COPYING.MIT for the terms)
This seems inconsistent with the recipes I see in the Yocto / OE layers
and the Yocto documentation.
The patch I created, which is provided below for reference, comments out
the generation of these first two lines:
--- a/bitbake/contrib/vim/plugin/newbb.vim
+++ b/bitbake/contrib/vim/plugin/newbb.vim
@@ -44,21 +44,31 @@ fun! NewBBTemplate()
let l:paste = &paste
set nopaste
- " Get the header
- call BBHeader()
+ " Uncomment the line below to enable header generation
+ "call BBHeader()
" New the bb template
+ 0 put ='SUMMARY = \"\"'
put ='DESCRIPTION = \"\"'
put ='HOMEPAGE = \"\"'
put ='LICENSE = \"\"'
- put ='SECTION = \"\"'
+ put ='LIC_FILES_CHKSUM = \"\"'
+ put =''
put ='DEPENDS = \"\"'
put =''
put ='SRC_URI = \"\"'
+ put ='SRC_URI[md5sum] = \"\"'
+ put ='SRC_URI[sha256sum] = \"\"'
+ put =''
+ put ='S = \"${WORKDIR}/${PN}-${PV}\"'
+ put =''
+ put ='#inherit <classes>'
+
+
" Go to the first place to edit
0
- /^DESCRIPTION =/
+ /^SUMMARY =/
exec "normal 2f\""
if paste == 1
thanks
Bob
>
> Scott
>
>> -----Original Message-----
>> From: yocto-bounces@yoctoproject.org [mailto:yocto-
>> bounces@yoctoproject.org] On Behalf Of Bob Cochran
>> Sent: Sunday, November 09, 2014 1:14 PM
>> To: Yocto discussion list
>> Subject: [yocto] newbb.vim vs skeleton recipe in yocto-docs dev manual....
>>
>> Hi,
>>
>> I just noticed that newbb.vim in bitbake/contrib is notably different from the
>> skeleton recipe proposed in the latest Dev Manual.
>>
>> I'll submit a patch if someone can give me some guidance on what should be
>> in newbb.vim (or maybe it's the manual that needs to be patched).
>>
>> Bob
>>
>>
>> From yocto-docs: Dev Manual (modify the following skeleton recipe):
>>
>> SUMMARY = ""
>> HOMEPAGE = ""
>> LICENSE = ""
>> LIC_FILES_CHKSUM = ""
>> SRC_URI = ""
>> SRC_URI[md5sum] = ""
>> SRC_URI[sha256sum] = ""
>> S = "${WORKDIR}/${PN}-${PV}"
>>
>>
>>
>> From newbb.vim:
>>
>> DESCRIPTION = ""
>> HOMEPAGE = ""
>> LICENSE = ""
>> SECTION = ""
>> DEPENDS = ""
>>
>> SRC_URI = ""
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: newbb.vim vs skeleton recipe in yocto-docs dev manual....
2014-11-09 21:13 newbb.vim vs skeleton recipe in yocto-docs dev manual Bob Cochran
2014-11-09 22:01 ` Paul Barker
2014-11-10 14:28 ` Rifenbark, Scott M
@ 2015-01-06 18:16 ` Rifenbark, Scott M
2 siblings, 0 replies; 7+ messages in thread
From: Rifenbark, Scott M @ 2015-01-06 18:16 UTC (permalink / raw)
To: Bob Cochran, Yocto discussion list
HI,
I am looking at poky/bitbake/contrib/vim/plugin/newbb.vim and it indeed is pretty different from what is in the http://www.yoctoproject/docs/current/dev-manual/dev-manual.html#new-recipe-locate-a-base-recipe section in the YP Development Manual. Can I get someone to verify if it is okay to simply change the section in the manual to match how that template file is being created in "newbb.vim"?
Scott
>-----Original Message-----
>From: yocto-bounces@yoctoproject.org [mailto:yocto-
>bounces@yoctoproject.org] On Behalf Of Bob Cochran
>Sent: Sunday, November 09, 2014 1:14 PM
>To: Yocto discussion list
>Subject: [yocto] newbb.vim vs skeleton recipe in yocto-docs dev manual....
>
>Hi,
>
>I just noticed that newbb.vim in bitbake/contrib is notably different from the
>skeleton recipe proposed in the latest Dev Manual.
>
>I'll submit a patch if someone can give me some guidance on what should be
>in newbb.vim (or maybe it's the manual that needs to be patched).
>
>Bob
>
>
> From yocto-docs: Dev Manual (modify the following skeleton recipe):
>
>SUMMARY = ""
>HOMEPAGE = ""
>LICENSE = ""
>LIC_FILES_CHKSUM = ""
>SRC_URI = ""
>SRC_URI[md5sum] = ""
>SRC_URI[sha256sum] = ""
>S = "${WORKDIR}/${PN}-${PV}"
>
>
>
> From newbb.vim:
>
>DESCRIPTION = ""
>HOMEPAGE = ""
>LICENSE = ""
>SECTION = ""
>DEPENDS = ""
>
>SRC_URI = ""
>
>
>--
>_______________________________________________
>yocto mailing list
>yocto@yoctoproject.org
>https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-01-06 18:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-09 21:13 newbb.vim vs skeleton recipe in yocto-docs dev manual Bob Cochran
2014-11-09 22:01 ` Paul Barker
2014-11-10 14:28 ` Rifenbark, Scott M
2014-11-10 14:44 ` Bob Cochran
2014-11-19 3:01 ` [yocto] " Bob Cochran
2014-11-19 3:01 ` Bob Cochran
2015-01-06 18:16 ` Rifenbark, Scott M
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.