* [jethro][PATCH 0/2] Backports for issues using devtool on the kernel
@ 2016-03-14 20:43 Paul Eggleton
2016-03-14 20:43 ` [jethro][PATCH 1/2] devtool: extract: copy kernel config to srctree Paul Eggleton
2016-03-14 20:43 ` [jethro][PATCH 2/2] devtool: extract: update SRCTREECOVEREDTASKS for kernel Paul Eggleton
0 siblings, 2 replies; 5+ messages in thread
From: Paul Eggleton @ 2016-03-14 20:43 UTC (permalink / raw)
To: openembedded-core
Backport a couple of fixes from master that allow devtool to work
properly on the kernel.
The following changes since commit 9e7d207e207bf0319b09d403d87d37f24e3dfbee:
base: check for existing prefix when expanding names in PACKAGECONFIG (2016-03-11 23:14:55 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/jethro-fixes4-oecore
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/jethro-fixes4-oecore
Markus Lehtonen (2):
devtool: extract: copy kernel config to srctree
devtool: extract: update SRCTREECOVEREDTASKS for kernel
scripts/lib/devtool/standard.py | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
--
2.5.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [jethro][PATCH 1/2] devtool: extract: copy kernel config to srctree
2016-03-14 20:43 [jethro][PATCH 0/2] Backports for issues using devtool on the kernel Paul Eggleton
@ 2016-03-14 20:43 ` Paul Eggleton
2016-03-18 8:23 ` Markus Lehtonen
2016-03-14 20:43 ` [jethro][PATCH 2/2] devtool: extract: update SRCTREECOVEREDTASKS for kernel Paul Eggleton
1 sibling, 1 reply; 5+ messages in thread
From: Paul Eggleton @ 2016-03-14 20:43 UTC (permalink / raw)
To: openembedded-core
From: Markus Lehtonen <markus.lehtonen@linux.intel.com>
This makes the correct kernel config to be used when building kernel
from srctree (extrernalsrc). If no kernel config is present in the
builddir 'do_configure' task copies .config from the srctree.
(From OE-Core master rev: 3b516332e038a587685f6e0c14a7f04990bdd6cc)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
scripts/lib/devtool/standard.py | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 5464d7b..c1fbfe3 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -430,11 +430,12 @@ def _extract_source(srctree, keep_temp, devbranch, d):
if haspatches:
bb.process.run('git checkout patches', cwd=srcsubdir)
- # Move oe-local-files directory to srctree
- if os.path.exists(os.path.join(tempdir, 'oe-local-files')):
- logger.info('Adding local source files to srctree...')
- shutil.move(os.path.join(tempdir, 'oe-local-files'), srcsubdir)
-
+ if bb.data.inherits_class('kernel-yocto', d):
+ # Store generate and store kernel config
+ logger.info('Generating kernel config')
+ task_executor.exec_func('do_configure', False)
+ kconfig = os.path.join(d.getVar('B', True), '.config')
+ shutil.copy2(kconfig, srcsubdir)
shutil.move(srcsubdir, srctree)
finally:
--
2.5.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [jethro][PATCH 2/2] devtool: extract: update SRCTREECOVEREDTASKS for kernel
2016-03-14 20:43 [jethro][PATCH 0/2] Backports for issues using devtool on the kernel Paul Eggleton
2016-03-14 20:43 ` [jethro][PATCH 1/2] devtool: extract: copy kernel config to srctree Paul Eggleton
@ 2016-03-14 20:43 ` Paul Eggleton
1 sibling, 0 replies; 5+ messages in thread
From: Paul Eggleton @ 2016-03-14 20:43 UTC (permalink / raw)
To: openembedded-core
From: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Add 'do_kernel_configme' and 'do_kernel_configcheck' to
SRCTREECOVEREDTASKS of kernel packages. These tasks should not be run
because kernel meta in the srctree is not necessarily up-to-date or
even present which causes build failures and/or invalid kernel config.
Especially so because 'do_patch' which is a dependency of
'do_kernel_configme' is not being run.
We now store .config in the srctree and 'do_configure' task is able to
run successfully.
(From OE-Core master rev: 7ce4c18a4ba1ebcb9f46e652a881ace1f21d2292)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
scripts/lib/devtool/standard.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index c1fbfe3..3c4dbb9 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -594,7 +594,8 @@ def modify(args, config, basepath, workspace):
f.write('EXTERNALSRC_BUILD_pn-%s = "%s"\n' % (pn, srctree))
if bb.data.inherits_class('kernel', rd):
- f.write('SRCTREECOVEREDTASKS = "do_validate_branches do_kernel_checkout do_fetch do_unpack do_patch"\n')
+ f.write('SRCTREECOVEREDTASKS = "do_validate_branches do_kernel_checkout '
+ 'do_fetch do_unpack do_patch do_kernel_configme do_kernel_configcheck"\n')
if initial_rev:
f.write('\n# initial_rev: %s\n' % initial_rev)
for commit in commits:
--
2.5.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [jethro][PATCH 1/2] devtool: extract: copy kernel config to srctree
2016-03-14 20:43 ` [jethro][PATCH 1/2] devtool: extract: copy kernel config to srctree Paul Eggleton
@ 2016-03-18 8:23 ` Markus Lehtonen
2016-03-18 9:14 ` Paul Eggleton
0 siblings, 1 reply; 5+ messages in thread
From: Markus Lehtonen @ 2016-03-18 8:23 UTC (permalink / raw)
To: Paul Eggleton, openembedded-core
Hi,
On 14/03/16 22:43, "Paul Eggleton" <openembedded-core-bounces@lists.openembedded.org on behalf of paul.eggleton@linux.intel.com> wrote:
>From: Markus Lehtonen <markus.lehtonen@linux.intel.com>
>
>This makes the correct kernel config to be used when building kernel
>from srctree (extrernalsrc). If no kernel config is present in the
>builddir 'do_configure' task copies .config from the srctree.
>
>(From OE-Core master rev: 3b516332e038a587685f6e0c14a7f04990bdd6cc)
>
>Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
>Signed-off-by: Ross Burton <ross.burton@intel.com>
>Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
>Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>---
> scripts/lib/devtool/standard.py | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
>diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
>index 5464d7b..c1fbfe3 100644
>--- a/scripts/lib/devtool/standard.py
>+++ b/scripts/lib/devtool/standard.py
>@@ -430,11 +430,12 @@ def _extract_source(srctree, keep_temp, devbranch, d):
> if haspatches:
> bb.process.run('git checkout patches', cwd=srcsubdir)
>
>- # Move oe-local-files directory to srctree
>- if os.path.exists(os.path.join(tempdir, 'oe-local-files')):
>- logger.info('Adding local source files to srctree...')
>- shutil.move(os.path.join(tempdir, 'oe-local-files'), srcsubdir)
>-
Why are you "disabling" oe-local-files here? That's unrelated to the kernel config. A mistake in patch conflict resolving, perhaps(?)
Thanks,
Markus
>+ if bb.data.inherits_class('kernel-yocto', d):
>+ # Store generate and store kernel config
>+ logger.info('Generating kernel config')
>+ task_executor.exec_func('do_configure', False)
>+ kconfig = os.path.join(d.getVar('B', True), '.config')
>+ shutil.copy2(kconfig, srcsubdir)
>
> shutil.move(srcsubdir, srctree)
> finally:
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [jethro][PATCH 1/2] devtool: extract: copy kernel config to srctree
2016-03-18 8:23 ` Markus Lehtonen
@ 2016-03-18 9:14 ` Paul Eggleton
0 siblings, 0 replies; 5+ messages in thread
From: Paul Eggleton @ 2016-03-18 9:14 UTC (permalink / raw)
To: Markus Lehtonen; +Cc: openembedded-core
On Fri, 18 Mar 2016 10:23:22 Markus Lehtonen wrote:
> Hi,
>
> On 14/03/16 22:43, "Paul Eggleton" <openembedded-core-
bounces@lists.openembedded.org on behalf of paul.eggleton@linux.intel.com>
wrote:
> >From: Markus Lehtonen <markus.lehtonen@linux.intel.com>
> >
> >This makes the correct kernel config to be used when building kernel
> >from srctree (extrernalsrc). If no kernel config is present in the
> >builddir 'do_configure' task copies .config from the srctree.
> >
> >(From OE-Core master rev: 3b516332e038a587685f6e0c14a7f04990bdd6cc)
> >
> >Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
> >Signed-off-by: Ross Burton <ross.burton@intel.com>
> >Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
> >Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> >---
> >
> > scripts/lib/devtool/standard.py | 11 ++++++-----
> > 1 file changed, 6 insertions(+), 5 deletions(-)
> >
> >diff --git a/scripts/lib/devtool/standard.py
> >b/scripts/lib/devtool/standard.py index 5464d7b..c1fbfe3 100644
> >--- a/scripts/lib/devtool/standard.py
> >+++ b/scripts/lib/devtool/standard.py
> >
> >@@ -430,11 +430,12 @@ def _extract_source(srctree, keep_temp, devbranch,
d):
> > if haspatches:
> > bb.process.run('git checkout patches', cwd=srcsubdir)
> >
> >- # Move oe-local-files directory to srctree
> >- if os.path.exists(os.path.join(tempdir, 'oe-local-files')):
> >- logger.info('Adding local source files to srctree...')
> >- shutil.move(os.path.join(tempdir, 'oe-local-files'),
> >srcsubdir) -
>
> Why are you "disabling" oe-local-files here? That's unrelated to the kernel
> config. A mistake in patch conflict resolving, perhaps(?)
Oops! Yes indeed. I've fixed this on the branch so that doesn't get removed.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-03-18 9:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-14 20:43 [jethro][PATCH 0/2] Backports for issues using devtool on the kernel Paul Eggleton
2016-03-14 20:43 ` [jethro][PATCH 1/2] devtool: extract: copy kernel config to srctree Paul Eggleton
2016-03-18 8:23 ` Markus Lehtonen
2016-03-18 9:14 ` Paul Eggleton
2016-03-14 20:43 ` [jethro][PATCH 2/2] devtool: extract: update SRCTREECOVEREDTASKS for kernel Paul Eggleton
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.