From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Markus Lehtonen <markus.lehtonen@linux.intel.com>,
openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 2/5] kernel.bbclass: copy .config instead of moving
Date: Fri, 18 Dec 2015 14:18:12 +0000 [thread overview]
Message-ID: <1450448292.8461.52.camel@linuxfoundation.org> (raw)
In-Reply-To: <19CCFDE4-E8FC-4B6A-BFD4-BCB6E14922C8@linux.intel.com>
On Fri, 2015-12-18 at 14:39 +0200, Markus Lehtonen wrote:
> On 18/12/15 14:22, "Richard Purdie" <
> richard.purdie@linuxfoundation.org> wrote:
> > On Fri, 2015-12-18 at 10:39 +0200, Markus Lehtonen wrote:
> > > if [ "${S}" != "${B}" ] && [ -f "${S}/.config" ] && [ !
> > > -f
> > > "${B}/.config" ]; then
> > > - mv "${S}/.config" "${B}/.config"
> > > + cp "${S}/.config" "${B}/.config"
> > > fi
> > >
> > > # Copy defconfig to .config if .config does not exist.
> > > This
> > > allows
> >
> > I'm not sure about this, doesn't this trigger the kernel to see
> > ${S} as
> > being 'dirty' and cause other issues when you try and do out of
> > tree
> > builds with it?
>
> That shouldn't be a problem as the kernel .gitignore ignores .config
> (or '.*' to be more specific). There are other tasks that make
> changes to the kernel source tree, as well, like do_kernel_metadata.
>
>
> > It also means we have two copies of "config" around which can end
> > up
> > being different and confuse users no end :(.
>
> Yes, I must agree. What do you think if ${B}/.config would be a
> symlink to ${S}/.config? I.e.
> + ln -s "${S}/.config" "${B}/.config"
>
I think I'd prefer we move the file over the ${B} and then symlink from
${S} since that way if its modified, its mostly likely to be done from
${B} at least by the automated code?
Cheers,
Richard
next prev parent reply other threads:[~2015-12-18 14:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-18 8:39 [PATCH 0/5] devtool: create kernel config fragment Markus Lehtonen
2015-12-18 8:39 ` [PATCH 1/5] devtool: extract: use the correct datastore for builddir Markus Lehtonen
2015-12-18 8:39 ` [PATCH 2/5] kernel.bbclass: copy .config instead of moving Markus Lehtonen
2015-12-18 12:22 ` Richard Purdie
2015-12-18 12:39 ` Markus Lehtonen
2015-12-18 14:18 ` Richard Purdie [this message]
2015-12-18 15:48 ` Markus Lehtonen
2015-12-18 8:39 ` [PATCH 3/5] devtool: extract: cleanup srctree Markus Lehtonen
2015-12-18 8:39 ` [PATCH 4/5] cml1.bbclass: copy .config to S if externalsr is in use Markus Lehtonen
2015-12-18 8:39 ` [PATCH 5/5] devtool: update-recipe: create kernel config fragment Markus Lehtonen
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=1450448292.8461.52.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=markus.lehtonen@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox