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 = ""
Quoted 13 lines · Bob Cochran
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):
Quoted 9 lines
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,
Signature · 4 lines
Paul Barker Email: [email protected] http://www.paulbarker.me.uk
newbb.vim needs to be patched.
Scott
Quoted 47 lines
-----Original Message-----
From: [email protected] [mailto:yocto- [email protected]] 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
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Quoted 1 line · Scott M
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
Quoted 51 lines
Scott
Quoted 47 lines
-----Original Message-----
From: [email protected] [mailto:yocto- [email protected]] 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
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Quoted 1 line · Scott M
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:
bitbake/contrib/vim/plugin/newbb.vim +14 -4
@@ -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
Quoted 51 lines
Scott
Quoted 47 lines
-----Original Message-----
From: [email protected] [mailto:yocto- [email protected]] 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
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
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
Quoted 47 lines
-----Original Message-----
From: [email protected] [mailto:yocto- [email protected]] 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
[email protected]
https://lists.yoctoproject.org/listinfo/yocto