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-boun...@yoctoproject.org [mailto:yocto-
boun...@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


--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to