[OE-core] [PATCH] combo-layer: support updating up to arbitrary commit

2014-11-27 Thread Markus Lehtonen
-layer update my_component:sha1 Only the "update" action supports this. Signed-off-by: Markus Lehtonen --- scripts/combo-layer | 45 +++-- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/scripts/combo-layer b/scripts/combo-layer ind

[OE-core] [PATCH v2 2/2] combo-layer: support updating up to arbitrary commit

2015-01-07 Thread Markus Lehtonen
-layer update my_component:sha1 Only the "update" action supports this. Signed-off-by: Markus Lehtonen --- scripts/combo-layer | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/scripts/combo-layer b/scripts/combo-layer index 37d1f47..851003d 10

[OE-core] [PATCH v2 1/2] combo-layer: minor refactor

2015-01-07 Thread Markus Lehtonen
Change get_repos() to assume a list of repository names instead of full list of command line arguments. Signed-off-by: Markus Lehtonen --- scripts/combo-layer | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/scripts/combo-layer b/scripts/combo

[OE-core] [PATCH v2 0/2] combo-layer: support updating up to arbitrary commit

2015-01-07 Thread Markus Lehtonen
I split my changeset into two separate patches. Also, fixed a bug when doing calling pull inside the update action. Markus Lehtonen (2): combo-layer: minor refactor combo-layer: support updating up to arbitrary commit scripts/combo-layer | 45 +++-- 1

Re: [OE-core] [PATCH v2 2/2] combo-layer: support updating up to arbitrary commit

2015-01-27 Thread Markus Lehtonen
On Mon, 2015-01-12 at 11:46 +, Paul Eggleton wrote: > Hi Markus, > > On Wednesday 07 January 2015 18:00:42 Markus Lehtonen wrote: > > Support defining the top commit up to which to update. In other words, > > this makes it possible to update up to certain point other tha

[OE-core] [PATCH] devtool: call parse_recipe with correct arguments

2015-04-16 Thread Markus Lehtonen
Give the correct data object ("config data" instead of "recipe data") as an argument to oe.recipeutils.patch_recipe() Fixes [YOCTO #7595] Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff

[OE-core] [PATCH] devtool: extract: remove patches when S=WORKDIR

2015-04-21 Thread Markus Lehtonen
(s). The patches will be removed in one single commit. [YOCTO #7602] Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 20 1 file changed, 20 insertions(+) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index a50a771

[OE-core] [PATCH] devtool: include bbappends in recipe parsing

2015-04-21 Thread Markus Lehtonen
In order to get correct metadata, SRCREV for example. Signed-off-by: Markus Lehtonen --- meta/lib/oe/recipeutils.py | 6 +++--- scripts/lib/devtool/standard.py | 32 +++- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/meta/lib/oe

[OE-core] [PATCH 1/2] devtool: modify: use B=S if that is the default for the recipe

2015-04-21 Thread Markus Lehtonen
e (of some packages that build fine without this modification) gets dirtied by build artefacts. Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/de

[OE-core] [PATCH 2/2] devtool: modify: implement --no-same-dir

2015-04-21 Thread Markus Lehtonen
This option can be used to have a separate build directory, in order to keep the srctree directory clean for packages that do not need to be built in the source directory. Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 9 +++-- 1 file changed, 7 insertions(+), 2

Re: [OE-core] [PATCH] devtool: include bbappends in recipe parsing

2015-04-22 Thread Markus Lehtonen
Hi, On Tue, 2015-04-21 at 17:42 +0100, Paul Eggleton wrote: > On Tuesday 21 April 2015 17:50:43 Markus Lehtonen wrote: > > In order to get correct metadata, SRCREV for example. > > > > Signed-off-by: Markus Lehtonen > > --- > > meta/lib/oe/recipeutils.py

[OE-core] [PATCH] devtool: tests: fix update-recipe test after bd1aa28

2015-04-22 Thread Markus Lehtonen
Number of patches in mtd-utils changed in changeset bd1aa28. Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/selftest/devtool.py | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/selftest/devtool.py b/meta/lib/oeqa/selftest/devtool.py index dc1cf21

[OE-core] [PATCH v2] devtool: include bbappends in recipe parsing

2015-04-22 Thread Markus Lehtonen
In order to get correct metadata, SRCREV for example. Signed-off-by: Markus Lehtonen --- meta/lib/oe/recipeutils.py | 6 +++--- scripts/lib/devtool/standard.py | 35 ++- 2 files changed, 25 insertions(+), 16 deletions(-) diff --git a/meta/lib/oe

[OE-core] [PATCH v2] devtool: extract: remove patches when S=WORKDIR

2015-04-22 Thread Markus Lehtonen
file(s) into srctree repository. [YOCTO #7602] Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 20 1 file changed, 20 insertions(+) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index d5ded2f..c8c9cd3 100644 --- a

Re: [OE-core] [PATCH] devtool: extract: remove patches when S=WORKDIR

2015-04-22 Thread Markus Lehtonen
Hi Paul, On Tue, 2015-04-21 at 16:04 +0100, Paul Eggleton wrote: > Hi Markus, > > On Tuesday 21 April 2015 17:49:54 Markus Lehtonen wrote: > > All local files from the layer, including patches, are added to to > > srctree repository when S==WORKDIR. The patch files are us

Re: [OE-core] [PATCH 4/8] devtool: extract: remove patches when S=WORKDIR

2015-04-24 Thread Markus Lehtonen
Hi, On 23/04/15 19:18, "Paul Eggleton" wrote: >From: Markus Lehtonen > >All local files from the layer, including patches, are added to to >srctree repository when S==WORKDIR. The patch files are useless as they >are automatically applied on top of the srctree by devto

[OE-core] [PATCH 1/6] devtool: extract: remove patches when S=WORKDIR

2015-04-30 Thread Markus Lehtonen
possibly confusing) patch file(s) into srctree repository. [YOCTO #7602] Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool

[OE-core] [PATCH 4/6] devtool: update-recipe: update local files directly

2015-04-30 Thread Markus Lehtonen
py our modified version over the original source. NOTE: if new files are created, they are represented as patches, rather than copied over the orignal source. [YOCTO #7602] Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 48 ++--- 1 f

[OE-core] [PATCH 2/6] recipeutils: implement get_recipe_local_files()

2015-04-30 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- meta/lib/oe/recipeutils.py | 8 1 file changed, 8 insertions(+) diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 19d97b6..f3af717 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py @@ -254,6 +254,14

[OE-core] [PATCH 0/6] devtool: improve handling of local source files

2015-04-30 Thread Markus Lehtonen
This patchset tries to improve handling of local source files (i.e. file:// in SRC_URI). First, it improves packages for which S=WORKDIR (that possibly only have local sources. Second, it makes local sources available in the srctree for all packages. See yocto bug #7602 Markus Lehtonen (6

[OE-core] [PATCH 5/6] devtool: extract: always import local files to srctree

2015-04-30 Thread Markus Lehtonen
efore. [YOCTO #7602] Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 56 - 1 file changed, 44 insertions(+), 12 deletions(-) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 8a2783b..1e81919 1006

[OE-core] [PATCH 6/6] devtool: modify: make bitbake use local files from srctree

2015-04-30 Thread Markus Lehtonen
This change makes it possible to have local files (SRC_URI files in "recipe space") under the srctree even if S!=WORKDIR. The files must be placed under the 'local-files' subdirectory. Complements the previous patch that imports local files into srctree. [YOCTO #7602] S

[OE-core] [PATCH 3/6] oe.patch.GitApplyTree: add paths argument to extractPatches

2015-04-30 Thread Markus Lehtonen
Makes it possible to define which paths are included in the patches. Signed-off-by: Markus Lehtonen --- meta/lib/oe/patch.py | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index f68d40f..85cb2c1 100644 --- a/meta/lib/oe

Re: [OE-core] [PATCH 2/6] recipetool: ensure git clone is a full clone when extracting

2015-04-30 Thread Markus Lehtonen
lternates') > +if os.path.exists(alternatesfile): > +# This will have been cloned with -s, so we need to convert it > to a full clone > +bb.process.run('git repack -a', cwd=repodir) > +os.remove(alternatesfile) > -- > 2.1.0 > I just find the term "full clone" a bit misleading here. I somehow tend to associate it with a mirrored clone / cloning all refs / cloning with full history. Could the term used above be "independent clone" or "standalone clone" or something? Thanks, Markus Lehtonen -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

[OE-core] [PATCH 00/11] devtool: code style fixes

2015-05-11 Thread Markus Lehtonen
This patchset contains numerous small non-functional changes to fix some style errors and to improve the readability of the devtool code. Markus Lehtonen (11): devtool: standard plugins: add missing docstrings devtool: standard plugins: remove unused import devtool: standard plugins: rename

[OE-core] [PATCH 01/11] devtool: standard plugins: add missing docstrings

2015-05-11 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 81a44d4..55580ee 100644 --- a/scripts/lib/devtool/standard.py +++ b

[OE-core] [PATCH 02/11] devtool: standard plugins: remove unused import

2015-05-11 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 55580ee..614bcdb 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py

[OE-core] [PATCH 03/11] devtool: standard plugins: rename usunused variable

2015-05-11 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 614bcdb..2a483cf 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool

[OE-core] [PATCH 06/11] devtool: lib: wrap long lines in code

2015-05-11 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/__init__.py | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py index 8866512..676bc52 100644 --- a/scripts/lib/devtool/__init__.py +++ b/scripts/lib

[OE-core] [PATCH 05/11] devtool: lib: remove unnecessary re-import

2015-05-11 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py index 00594eb..8866512 100644 --- a/scripts/lib/devtool/__init__.py +++ b/scripts/lib/devtool/__init__.py

[OE-core] [PATCH 04/11] devtool: lib: add missing docstrings

2015-05-11 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/__init__.py | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py index 78ae0aa..00594eb 100644 --- a/scripts/lib/devtool/__init__.py +++ b/scripts/lib

[OE-core] [PATCH 07/11] devtool: deploy plugin: fix bad indentation

2015-05-11 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/deploy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/devtool/deploy.py b/scripts/lib/devtool/deploy.py index f016b23..62c97fb 100644 --- a/scripts/lib/devtool/deploy.py +++ b/scripts/lib/devtool

[OE-core] [PATCH 09/11] devtool: deploy plugin: remove unnecessary re-import

2015-05-11 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/deploy.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/lib/devtool/deploy.py b/scripts/lib/devtool/deploy.py index b569398..8637f19 100644 --- a/scripts/lib/devtool/deploy.py +++ b/scripts/lib/devtool/deploy.py @@ -31,7 +31,6

[OE-core] [PATCH 11/11] devtool: deploy plugin: wrap long lines in code

2015-05-11 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/deploy.py | 99 +++ 1 file changed, 72 insertions(+), 27 deletions(-) diff --git a/scripts/lib/devtool/deploy.py b/scripts/lib/devtool/deploy.py index 078c74b..f6ae433 100644 --- a/scripts/lib/devtool

[OE-core] [PATCH 08/11] devtool: deploy plugin: add missing docstrings

2015-05-11 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/deploy.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/lib/devtool/deploy.py b/scripts/lib/devtool/deploy.py index 62c97fb..b569398 100644 --- a/scripts/lib/devtool/deploy.py +++ b/scripts/lib/devtool

[OE-core] [PATCH 10/11] devtool: deploy plugin: rename unused variables

2015-05-11 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/deploy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/devtool/deploy.py b/scripts/lib/devtool/deploy.py index 8637f19..078c74b 100644 --- a/scripts/lib/devtool/deploy.py +++ b/scripts/lib/devtool

Re: [OE-core] [PATCH 11/11] devtool: deploy plugin: wrap long lines in code

2015-05-18 Thread Markus Lehtonen
Hi, On Tue, 2015-05-12 at 16:20 +0100, Paul Eggleton wrote: > On Monday 11 May 2015 16:17:11 Markus Lehtonen wrote: > > Signed-off-by: Markus Lehtonen > > --- > > scripts/lib/devtool/deploy.py | 99 > > +++ 1 file change

[OE-core] [PATCH 0/8] oeqa.utils.metadata: update xml schema

2016-12-28 Thread Markus Lehtonen
-22 08:50:21 +) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib marquiz/oeqa-metaxml http://git.openembedded.org/openembedded-core-contrib/log/?h=marquiz/oeqa-metaxml Markus Lehtonen (8): oeqa.utils.metadata: re-organise host distro

[OE-core] [PATCH 1/8] oeqa.utils.metadata: re-organise host distro information

2016-12-28 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/meta/lib/oeqa/utils/metadata.py b/meta/lib/oeqa/utils/metadata.py index 5d8bf84..2316841 100644 --- a/meta/lib/oeqa/utils/metadata.py

[OE-core] [PATCH 2/8] oeqa.utils.metadata: re-organise distro information

2016-12-28 Thread Markus Lehtonen
Use the same format, based on /etc/os-release, as for host distro information. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 17 ++--- scripts/oe-selftest | 4 ++-- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a

[OE-core] [PATCH 3/8] oeqa.utils.metadata: drop 'unknown' git data elements

2016-12-28 Thread Markus Lehtonen
It's better just to not have the xml elements than to have elements with faux data. One could have git branch named 'unknown', for example. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 7 +++ scripts/oe-selftest | 4 ++--

[OE-core] [PATCH 6/8] oeqa.utils.metadata: add commit count information

2016-12-28 Thread Markus Lehtonen
Makes it easier to put the commits into a timeline. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/utils/metadata.py b/meta/lib/oeqa/utils/metadata.py index 2f7e8f2..d5cc290

[OE-core] [PATCH 8/8] oeqa.utils.metadata: add bitbake revision information

2016-12-28 Thread Markus Lehtonen
[YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/meta/lib/oeqa/utils/metadata.py b/meta/lib/oeqa/utils/metadata.py index 6331c21..23449fc 100644 --- a/meta/lib

[OE-core] [PATCH 5/8] oeqa.utils.metadata: rename 'revision' to 'commit'

2016-12-28 Thread Markus Lehtonen
Revision is a bit vague and could point to a tag, for example. Git commit objects are unambiguous and persistent so be explicit that the element should contain git commit hash. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 2 +- scripts/oe-selftest

[OE-core] [PATCH 7/8] oeqa.utils.metadata: have layer name as an attribute in xml

2016-12-28 Thread Markus Lehtonen
Have the layer name as an attribute instead of of the name of the element itself. That is, have instead of . A bit better XML design. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a

[OE-core] [PATCH 4/8] oeqa.utils.metadata: fix retrieval of git branch and revision

2016-12-28 Thread Markus Lehtonen
Always return a valid branch name, or, '(nobranch)' if the current HEAD is detached. Also, always return the hash of the commit object that HEAD is pointing to. Previous code returned an incorrect branch name (or crashed) e.g. in the case of detached HEAD. [YOCTO #10590] Signed-off-

Re: [OE-core] [PATCH 3/8] oeqa.utils.metadata: drop 'unknown' git data elements

2017-01-05 Thread Markus Lehtonen
On 04/01/2017, 17.30, "Mariano Lopez" wrote: >On 28/12/16 07:02, Markus Lehtonen wrote: >> It's better just to not have the xml elements than to have elements with >> faux data. One could have git branch named 'unknown', for example. >> >> >

Re: [OE-core] [PATCH 7/8] oeqa.utils.metadata: have layer name as an attribute in xml

2017-01-05 Thread Markus Lehtonen
On 04/01/2017, 17.43, "Mariano Lopez" wrote: > >On 28/12/16 07:02, Markus Lehtonen wrote: >> -def dict_to_XML(tag, dictionary): >> +def dict_to_XML(tag, dictionary, **kwargs): >> """ Return XML element converting dicts recursively. "&quo

Re: [OE-core] [PATCH 8/8] oeqa.utils.metadata: add bitbake revision information

2017-01-05 Thread Markus Lehtonen
On 04/01/2017, 17.45, "Mariano Lopez" wrote: >On 28/12/16 07:02, Markus Lehtonen wrote: >> [YOCTO #10590] >> >> Signed-off-by: Markus Lehtonen >> --- >> meta/lib/oeqa/utils/metadata.py | 32 +++- >> 1 file changed, 19

[OE-core] [PATCH v2 01/10] oeqa.utils.metadata: re-organise host distro information

2017-01-13 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/meta/lib/oeqa/utils/metadata.py b/meta/lib/oeqa/utils/metadata.py index 5d8bf84..2316841 100644 --- a/meta/lib/oeqa/utils/metadata.py

[OE-core] [PATCH v2 03/10] oeqa.utils.metadata: drop 'unknown' git data elements

2017-01-13 Thread Markus Lehtonen
It's better just to not have the xml elements than to have elements with faux data. One could have git branch named 'unknown', for example. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 7 +++ scripts/oe-selftest | 4 ++--

[OE-core] [PATCH v2 00/10] oeqa.utils.metadata: update xml schema

2017-01-13 Thread Markus Lehtonen
in the git repository at: git://git.openembedded.org/openembedded-core-contrib marquiz/oeqa-metaxml http://git.openembedded.org/openembedded-core-contrib/log/?h=marquiz/oeqa-metaxml Markus Lehtonen (10): oeqa.utils.metadata: re-organise host distro information oeqa.utils.metadata: re

[OE-core] [PATCH v2 02/10] oeqa.utils.metadata: re-organise distro information

2017-01-13 Thread Markus Lehtonen
Use the same format, based on /etc/os-release, as for host distro information. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 17 ++--- scripts/oe-selftest | 4 ++-- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a

[OE-core] [PATCH v2 05/10] oeqa.utils.metadata: rename 'revision' to 'commit'

2017-01-13 Thread Markus Lehtonen
Revision is a bit vague and could point to a tag, for example. Git commit objects are unambiguous and persistent so be explicit that the element should contain git commit hash. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 2 +- scripts/oe-selftest

[OE-core] [PATCH v2 04/10] oeqa.utils.metadata: fix retrieval of git branch and revision

2017-01-13 Thread Markus Lehtonen
Always return a valid branch name, or, '(nobranch)' if the current HEAD is detached. Also, always return the hash of the commit object that HEAD is pointing to. Previous code returned an incorrect branch name (or crashed) e.g. in the case of detached HEAD. [YOCTO #10590] Signed-off-

[OE-core] [PATCH v2 08/10] oeqa.utils.metadata: add bitbake revision information

2017-01-13 Thread Markus Lehtonen
[YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/meta/lib/oeqa/utils/metadata.py b/meta/lib/oeqa/utils/metadata.py index 6331c21..a3c1b2b 100644 --- a/meta/lib

[OE-core] [PATCH v2 07/10] oeqa.utils.metadata: have layer name as an attribute in xml

2017-01-13 Thread Markus Lehtonen
Have the layer name as an attribute instead of of the name of the element itself. That is, have instead of . A bit better XML design. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a

[OE-core] [PATCH v2 06/10] oeqa.utils.metadata: add commit count information

2017-01-13 Thread Markus Lehtonen
Makes it easier to put the commits into a timeline. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/utils/metadata.py b/meta/lib/oeqa/utils/metadata.py index 2f7e8f2..d5cc290

[OE-core] [PATCH v2 10/10] oeqa.utils.metadata: include BB_NUMBER_THREADS and PARALLEL_MAKE

2017-01-13 Thread Markus Lehtonen
Inlude values of BB_NUMBER_THREADS and PARALLEL_MAKE in the metadata. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/utils/metadata.py b/meta/lib/oeqa/utils/metadata.py index

[OE-core] [PATCH v2 09/10] oeqa.utils.metadata: allow storing any bitbake config variables

2017-01-13 Thread Markus Lehtonen
Make it possible to store any bitbake config variables in the metadata. Config values will be stored under a new config element in the xml report: qemux86 The value of MACHINE is moved there instead of having a dedicated element. [YOCTO #10590] Signed-off-by: Markus Lehtonen

[OE-core] [PATCH 02/11] oeqa.buildperf: sync test status names with JUnit

2017-01-19 Thread Markus Lehtonen
Use 'failure' instead of 'fail'. Also, use 'expected' instead of 'exp'. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/buildperf/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/lib/oeqa/buildperf/b

[OE-core] [PATCH 04/11] oe-build-perf-test: enable xml reporting

2017-01-19 Thread Markus Lehtonen
Add --xml command line option to oe-build-perf-test script for producing a test report in JUnit XML format instead of JSON. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/buildperf/base.py | 43 - scripts/oe-build-perf-test | 6

[OE-core] [PATCH 01/11] oeqa.buildperf: prevent a crash on unexpected success

2017-01-19 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/buildperf/base.py | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index 59dd025..4955914 100644 --- a/meta/lib/oeqa/buildperf/base.py +++ b/meta/lib/oeqa

[OE-core] [PATCH 00/11] oeqa.buildperf: improve test report format

2017-01-19 Thread Markus Lehtonen
a: include BB_NUMBER_THREADS and PARALLEL_MAKE (2017-01-13 13:55:12 +0200) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib marquiz/buildperf/xml http://git.openembedded.org/openembedded-core-contrib/log/?h=marquiz/buildperf/xml Markus Lehtonen (11): oeqa

[OE-core] [PATCH 05/11] oeqa.buildperf: extend xml format to contain measurement data

2017-01-19 Thread Markus Lehtonen
Make the xml report format slightly non-standard by incorporating measurement data into it. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/buildperf/base.py | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/buildperf

[OE-core] [PATCH 08/11] oe-build-perf-test: save test metadata in a separate file

2017-01-19 Thread Markus Lehtonen
] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/buildperf/base.py | 129 scripts/oe-build-perf-test | 118 ++-- 2 files changed, 114 insertions(+), 133 deletions(-) diff --git a/meta/lib/oeqa/buildperf/base.py b/meta

[OE-core] [PATCH 03/11] oeqa.buildperf: include error details in json report

2017-01-19 Thread Markus Lehtonen
This will typically mean assert message and exception type plus a traceback. In case of skipped tests the reason (i.e. skip message) is included. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/buildperf/base.py | 24 1 file changed, 24 insertions

[OE-core] [PATCH 07/11] oeqa.buildperf: report results in chronological order

2017-01-19 Thread Markus Lehtonen
Write results in the report file in chronological order, instead of random order dependent on test statuses. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/buildperf/base.py | 25 ++--- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/meta

[OE-core] [PATCH 06/11] oeqa.buildperf: extend xml report format with test description

2017-01-19 Thread Markus Lehtonen
Add test description as an attribute to the element. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/buildperf/base.py | 4 1 file changed, 4 insertions(+) diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index efbe20c..b82476c 100644 --- a

[OE-core] [PATCH 11/11] oeqa.buildperf: store measurements as a dict (object) in the JSON report

2017-01-19 Thread Markus Lehtonen
Store measurements as a dict, instead of an array, in the JSON report. This change makes traversing of the report much easier. The change also disallows identically named measurements under one test, as a sanity check for the test cases. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta

[OE-core] [PATCH 10/11] oeqa.buildperf: change sorting in json report

2017-01-19 Thread Markus Lehtonen
Use OrderedDict() instead of sort_keys=True (of json.dump()). Makes for more logical sorting of the values in the report. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/buildperf/base.py | 63 + 1 file changed, 32 insertions(+), 31

[OE-core] [PATCH 09/11] oe-build-perf-test: remove unused imports and fix indent

2017-01-19 Thread Markus Lehtonen
[YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/buildperf/base.py | 7 ++- scripts/oe-build-perf-test | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index 4027fdb..f6faedb 100644

[OE-core] [PATCH] scripts/buildstats-diff: simplify timestamp handling

2017-01-25 Thread Markus Lehtonen
Simply use floats instead of datetime and timedelta objects for handling timestamps. Signed-off-by: Markus Lehtonen --- scripts/buildstats-diff | 34 +++--- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/scripts/buildstats-diff b/scripts/buildstats

[OE-core] [PATCH RFC 04/10] python-profile-opt: rename libpython

2017-01-25 Thread Markus Lehtonen
The python library needs to be renamed so that the automatic dependency generation/checking mechanism in bitbake does not get confused. Otherwise python-profile-opt will depend on libpython from the "normal" python package. [YOCTO #9338] Signed-off-by: Markus Lehtonen --- .../pyt

[OE-core] [PATCH RFC 05/10] devtools/images: add python-pgo-image

2017-01-25 Thread Markus Lehtonen
specifying ${PYTHON_PROFILE_TASK}. [YOCTO #9338] Signed-off-by: Markus Lehtonen --- meta/recipes-devtools/images/python-pgo-image.bb | 55 1 file changed, 55 insertions(+) create mode 100644 meta/recipes-devtools/images/python-pgo-image.bb diff --git a/meta/recipes-devtools

[OE-core] [PATCH RFC 01/10] python-native: support profile optimized build

2017-01-25 Thread Markus Lehtonen
OFILE_TASK = "${S}/Tools/pybench/pybench.py -n 2 --with-gc --with-syscheck" [YOCTO #9338] Signed-off-by: Markus Lehtonen --- ...x-.so-loading-when-when-running-profile-t.patch | 26 ++ .../python/python-native_2.7.12.bb | 10 + 2 files ch

[OE-core] [PATCH RFC 03/10] python: remove path hack from setup.py

2017-01-25 Thread Markus Lehtonen
headers. [YOCTO #9338] Signed-off-by: Markus Lehtonen --- .../python/python/01-use-proper-tools-for-cross-build.patch| 10 -- 1 file changed, 10 deletions(-) diff --git a/meta/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch b/meta/recipes-devtools/python

[OE-core] [PATCH RFC 09/10] python-pgo-image: switch python default profile task to pybench

2017-01-25 Thread Markus Lehtonen
Switch to pybench in order to reduce the time taken by profiling. [YOCTO #9338] Signed-off-by: Markus Lehtonen --- meta/recipes-devtools/images/python-pgo-image.bb | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/meta/recipes-devtools/images/python-pgo

[OE-core] [PATCH RFC 06/10] python: make profile-optimized build possible

2017-01-25 Thread Markus Lehtonen
PYTHON_PROFILE_OPT = "1" in your local.conf. Be sure to get the profile data for python, preferably by running "bitbake python-pgo-image -c profile". [YOCTO #9338] Signed-off-by: Markus Lehtonen --- meta/recipes-devtools/python/python_2.7.12.bb | 25 -

[OE-core] [PATCH RFC 00/10] python: support profile-optimized build

2017-01-25 Thread Markus Lehtonen
7e460a13d34baca: oeqa/selftest/devtool: rewrite modify testcase (2017-01-19 22:45:46 +) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib marquiz/fixes-9338-py2 http://git.openembedded.org/openembedded-core-contrib/log/?h=marquiz/fixes-9338-py2

[OE-core] [PATCH RFC 07/10] python-pgo-image: exclude tests from the default profile target

2017-01-25 Thread Markus Lehtonen
] Signed-off-by: Markus Lehtonen --- meta/recipes-devtools/images/python-pgo-image.bb | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/images/python-pgo-image.bb b/meta/recipes-devtools/images/python-pgo-image.bb index 1aabd56..222d7a8 100644 --- a

[OE-core] [PATCH RFC 10/10] python-pgo-image: enable sstate for do_profile

2017-01-25 Thread Markus Lehtonen
tbake python-pgo-image -c clean" (or otherwise wipe pre-existing profile data) before running "bitbake python-pgo-image -c profile". [YOCTO #9338] Signed-off-by: Markus Lehtonen --- meta/recipes-devtools/images/python-pgo-image.bb | 15 +-- 1 file changed, 13 insert

[OE-core] [PATCH RFC 08/10] python: add python-tools subpackage

2017-01-25 Thread Markus Lehtonen
Useful in developing Python, e.g. in benchmarking. [YOCTO #9338] Signed-off-by: Markus Lehtonen --- meta/recipes-devtools/python/python-2.7-manifest.inc | 8 +--- meta/recipes-devtools/python/python_2.7.12.bb| 5 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a

[OE-core] [PATCH RFC 02/10] python: add python-profile-opt recipe

2017-01-25 Thread Markus Lehtonen
. This patch enables the first step, i.e. building python with profile instrumentation enabled [YOCTO #9338] Signed-off-by: Markus Lehtonen --- .../python/python-profile-opt_2.7.12.bb| 17 ++ meta/recipes-devtools/python/python_2.7.12.bb | 26 +++---

[OE-core] [PATCH][morty] classes: Fix alternatives and rc.d ordering

2017-01-25 Thread Markus Lehtonen
From: David Vincent When using an alternative as an initscript, the ordering between update-rc.d and update-alternatives tasks during prerm and postinst tasks must always be the following in order to work: * prerm: - stop daemon - remove alternative * postinst: - add alternative

[OE-core] [PATCH RFC 04/10] python-pgo-image: profiling for python3

2017-01-27 Thread Markus Lehtonen
ay be specified with PYTHON3_PROFILE_TASK. [YOCTO #9338] Signed-off-by: Markus Lehtonen --- meta/recipes-devtools/images/python-pgo-image.bb | 55 +++- 1 file changed, 44 insertions(+), 11 deletions(-) diff --git a/meta/recipes-devtools/images/python-pgo-image.bb b/meta/rec

[OE-core] [PATCH RFC 01/10] python3-native: support profile optimized build

2017-01-27 Thread Markus Lehtonen
This feature is virtually identical to that of python-native. Profile guided optimization is enabled by defining PYTHON3_NATIVE_PROFILE_OPT = "1" in local.conf. In addition, the profile task may be defined with PYTHON3_NATIVE_PROFILE_TASK. [YOCTO #9338] Signed-off-by: Markus Lehtonen

[OE-core] [PATCH RFC 03/10] python3: add python-profile-opt3 recipe

2017-01-27 Thread Markus Lehtonen
3. [YOCTO #9338] Signed-off-by: Markus Lehtonen --- meta/recipes-devtools/python/python-profile-opt3 | 1 + .../python/python-profile-opt3_3.5.2.bb| 15 +++ ...efile-add-install_generate_profile-target.patch | 25 + ...name-libpython3-to-libpython-profile-opt3.p

[OE-core] [PATCH RFC 02/10] python3: fix depends of python-tests

2017-01-27 Thread Markus Lehtonen
Similar to an earlier fix for Python 2.7. Make the tests subpackage depend on all modules as test.regrtest uses most (if not all) of them. Some tests also depend on libgcc so add that as a runtime dependency as well. [YOCTO #9338] Signed-off-by: Markus Lehtonen --- meta/recipes-devtools

[OE-core] [PATCH RFC 09/10] python3: add python3-tools subpackage

2017-01-27 Thread Markus Lehtonen
[YOCTO #9338] Signed-off-by: Markus Lehtonen --- meta/recipes-devtools/python/python-3.5-manifest.inc | 8 +--- meta/recipes-devtools/python/python3_3.5.2.bb| 5 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/meta/recipes-devtools/python/python-3.5

[OE-core] [PATCH RFC 06/10] python3: support profile optimized build

2017-01-27 Thread Markus Lehtonen
ata can be obtainen e.g. by running bitbake python-pgo-image -c profile3. [YOCTO #9338] Signed-off-by: Markus Lehtonen --- meta/recipes-devtools/python/python3_3.5.2.bb | 20 1 file changed, 20 insertions(+) diff --git a/meta/recipes-devtools/python/python3_3.5.2.bb b/me

[OE-core] [PATCH RFC 07/10] python3: fix profile-optimized build of modules

2017-01-27 Thread Markus Lehtonen
Without this the pgo-related compiler flags are not used in cross-builds. [YOCTO #9338] Signed-off-by: Markus Lehtonen --- ...-CFLAGS-for-extensions-when-cross-compili.patch | 56 ++ meta/recipes-devtools/python/python3_3.5.2.bb | 1 + 2 files changed, 57 insertions

[OE-core] [PATCH RFC 00/10] python3: support profile-optimized build

2017-01-27 Thread Markus Lehtonen
python-pgo-image: enable sstate for do_profile (2017-01-24 15:23:49 +0200) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib marquiz/fixes-9338-py3 http://git.openembedded.org/openembedded-core-contrib/log/?h=marquiz/fixes-9338-py3 Markus Lehtonen (

[OE-core] [PATCH RFC 08/10] python-pgo-image: exclude tests from the python3 profile target

2017-01-27 Thread Markus Lehtonen
test_urllib2_localnet: 1276.8s test_itertools: 944.7s test_tuple: 847.7s test_trace: 756.7s test_tarfile: 716.7s test_unicodedata: 709.9s test_decimal: 615.1s [YOCTO #9338] Signed-off-by: Markus Lehtonen --- meta/recipes-devtools/images/python-pgo-image.bb | 5 + 1 file

[OE-core] [PATCH RFC 05/10] python3: remove two setup.py cross-compile hacks

2017-01-27 Thread Markus Lehtonen
es when running "gcc -E -v". The second hack becomes useless after the first hack has been removed and we get the standard include and lib directories normally from gcc. [YOCTO #9338] Signed-off-by: Markus Lehtonen --- .../python3-setup.py-no-host-h

[OE-core] [PATCH RFC 10/10] python-pgo-image: change python3 profile target to pybench

2017-01-27 Thread Markus Lehtonen
Running test.regrtest was still taking ridiculously long, i.e. around 4 hours in qemux86 on my desktop machine. Change to pybench which "only" takes around 55 minutes. [YOCTO #9338] Signed-off-by: Markus Lehtonen --- meta/recipes-devtools/images/python-pgo-image.bb | 11 ++---

[OE-core] [PATCH] build-perf-test-wrapper.sh: fix issues with non-existing path arguments

2017-01-27 Thread Markus Lehtonen
Without the '-s' option realpath will error out if the given path does not exist. Signed-off-by: Markus Lehtonen --- scripts/contrib/build-perf-test-wrapper.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/contrib/build-perf-test-wrapper.sh b/scrip

[OE-core] [PATCH] oeqa/buildperf: don't archive stdout/stderr of commands

2017-01-27 Thread Markus Lehtonen
ed non-zero exit status 1 with output: In general, the console output of commands is only interesting when something fails. Also, dropping the commands.log file is a huge saving in disk space, and thus, repository size when results are archived in Git. Signed-off-by: Markus Lehtonen --- m

[OE-core] [PATCH 0/3] Build dependency fixes

2017-01-31 Thread Markus Lehtonen
Bunch of one-liners fixing build dependency issues uncovered after recipe specific sysroots were enabled. I bumped into these when trying to build core-image-sato in a rather minimal host environment. Markus Lehtonen (3): rpm: inherit pkgconfig wpa-supplicant: inherit pkgconfig at-spi2-atk

[OE-core] [PATCH 1/3] rpm: inherit pkgconfig

2017-01-31 Thread Markus Lehtonen
Rpm needs pkg-config in order to build successfully. Recipe specific sysroots revealed this missing dependency when trying to build on a host without pkg-config. Signed-off-by: Markus Lehtonen --- meta/recipes-devtools/rpm/rpm_5.4.16.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion

  1   2   3   4   5   6   7   >