From: Denys Dmytriyenko <denys@ti.com>
To: "Maupin, Chase" <chase.maupin@ti.com>
Cc: "meta-arago@arago-project.org" <meta-arago@arago-project.org>,
"Zhou, Jingting" <zhoujt@ti.com>
Subject: Re: [PATCH] added mounting debugfs recipe
Date: Fri, 3 May 2013 12:43:21 -0400 [thread overview]
Message-ID: <20130503164320.GF9213@edge> (raw)
In-Reply-To: <7D46E86EC0A8354091174257B2FED1015952FED9@DLEE11.ent.ti.com>
Jingting,
I know there's already a thread going on, I just wanted to follow up on some
of the previous comments from Chase to explain and/or correct, since it's
still new to you and you may need some more details. Please see inline.
On Thu, May 02, 2013 at 07:54:40PM +0000, Maupin, Chase wrote:
> > diff --git a/meta-arago-distro/recipes-
> > core/packagegroups/packagegroup-arago-base-tisdk-server-extra.bb
> > b/meta-arago-distro/recipes-core/packagegroups/packagegroup-
> > arago-base-tisdk-server-extra.bb
> > index 46db7c2..ba618b2 100755
> > --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-
> > arago-base-tisdk-server-extra.bb
> > +++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-
> > arago-base-tisdk-server-extra.bb
> > @@ -66,7 +66,7 @@ RDEPENDS_${PN} = "\
> > ptpd \
> > vsftpd \
> > syslog-ng \
> > - syslog-ng-plugins \
> > + syslog-ng-plugins \
>
> This looks like a mistake. Either in the other patch or this one.
In other words - this fix should be rolled into the previous patch (that
is still under review), and not piggy-backing on the new patch, that has
nothing to do with syslog.
> > dtc \
> > strongswan \
> > strongswan-plugins \
> > @@ -95,4 +95,5 @@ RDEPENDS_${PN} = "\
> > ti-netapi \
> > ti-ipc \
> > ebtables \
> > + initscript-debugfs \
>
> Usually this should be split into apatch that adds the recipe and one that
> adds it to the packagegroup.
While this one is not really so critical, it's still better to have the first
patch adding new functionality and the second patch to enable that
functionality in the system - #1 adds initscript-debugfs.bb and #2 enables it
in the packagegroup.
> > diff --git a/meta-arago-extras/recipes-bsp/initscript-
> > debugfs/initscript-debugfs.bb b/meta-arago-extras/recipes-
> > bsp/initscript-debugfs/initscript-debugfs.bb
> > new file mode 100755
> > index 0000000..c9cb7d0
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-bsp/initscript-
> > debugfs/initscript-debugfs.bb
> > @@ -0,0 +1,17 @@
> > +DESCRIPTION = "Initscripts for debugfs"
> > +LICENSE = "BSD"
> > +
> > +LIC_FILES_CHKSUM =
> > "file://debugfs.sh;md5=ecbae24c97c0fa80c5977bf22eec1f32"
>
> This file does not have a real license header in it. If you are going to
> point here you should put the license header in it or use the license file
> from the core layer. And I wouldn't do the whole script because then you
> have to update this for every script change.
IF and only if you have a license info at the top of your source file (.sh or
.c or .h), then you would point to that file AND also specify beginline=# and
endline=# in there to limit the checksum to those lines only. Like Chase said,
that way you don't need to update checksum with every fix you make to the
code.
> > +
> > +PR ="r1"
>
> Why not start at r0?
I personally don't have preference here. If you put r0, then another person
would start argue that you don't need to set it to r0, as that's the default
and you can drop the line altogether. I prefer to have it from the beginning,
so you won't forget to update it on the next change.
> > +
> > +SRC_URI = "file://debugfs.sh"
> > +
> > +S = "${WORKDIR}"
> > +
> > +do_install () {
> > + install -d ${D}${sysconfdir}/init.d/
> > + install -d ${D}${sysconfdir}/rcS.d/
> > + install -c -m 755 ${WORKDIR}/debugfs.sh
> > ${D}${sysconfdir}/init.d/debugfs.sh
> > + ln -sf ../init.d/debugfs.sh
> > ${D}${sysconfdir}/rcS.d/S09debugfs
> > +}
>
> Use the update-rc.d class instead. Life will be better this way.
Indeed.
--
Denys
prev parent reply other threads:[~2013-05-03 16:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-02 18:36 [PATCH] added mounting debugfs recipe zhoujt
2013-05-02 19:54 ` Maupin, Chase
2013-05-02 21:33 ` Zhou, Jingting
2013-05-03 11:54 ` Maupin, Chase
2013-05-03 15:58 ` Zhou, Jingting
2013-05-03 16:22 ` Maupin, Chase
2013-05-03 17:26 ` Denys Dmytriyenko
2013-05-03 17:16 ` Denys Dmytriyenko
2013-05-03 16:48 ` Denys Dmytriyenko
2013-05-03 16:43 ` Denys Dmytriyenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130503164320.GF9213@edge \
--to=denys@ti.com \
--cc=chase.maupin@ti.com \
--cc=meta-arago@arago-project.org \
--cc=zhoujt@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.