[yocto] [RFC] Factory reset

2015-04-16 Thread Aníbal Limón
Hi, Factory reset is a mechanism that is target to do a restore of rootfs image, the target is to provide reference software that helps embedded system vendors to do it easily and to be file system independent. Here is a design proposal to implement Factory reset, next describe the component

Re: [yocto] meta-qemu-bsps

2015-04-17 Thread Aníbal Limón
Hi Armin, I tested the ppc64 with poky master and looks great only a couple of issues, When is compiling the kernel show this warning related to the config, WARNING: [kernel config]: specified values did not make it into the kernel's final Value requested for CONFIG_FB_DDC not in fin

Re: [yocto] Usage of apt-get package in yocto

2015-05-20 Thread Aníbal Limón
Hi Raghavendra, On 20/05/15 04:01, Raghavendra Kakarla wrote: Hi, I have some requirement with apt-get in yocto genearted rootfs. I built the yocto source code with enabling the apt package. But after booting the image on my machine and run the "apt-get" command for installing some packa

[yocto] [PATCH][layerindex-web] Add support for inherit field in recipes

2015-06-01 Thread Aníbal Limón
. Finally the field was also added to Toaster templates, along with style changes proposed in attachment. [YOCTO #7575] Signed-off-by: Alex Franco Signed-off-by: Aníbal Limón --- layerindex/models.py | 1 + layerindex/static/css/additional.css | 11 ++- layerindex

Re: [yocto] layerindex

2015-06-04 Thread Aníbal Limón
Hi Trevor, You can review the machine models at [1], the db schema is generated by Django. Regards, alimon [1] http://git.yoctoproject.org/cgit/cgit.cgi/layerindex-web/tree/layerindex/models.py#n331 On 04/06/15 09:44, Trevor Woerner wrote: Thanks Nathan and Paul! Any chance the datab

Re: [yocto] [PATCH 0/2] [layerindex-web] Add support for inherits in recipes

2015-06-08 Thread Aníbal Limón
Hi, I pushed and signed the changes to [1]. Cheers, alimon [1] http://git.yoctoproject.org/cgit/cgit.cgi/layerindex-web/log/?h=franco/recipe_inherits On 08/06/15 17:00, Alex Franco wrote: These patches add support for the inherits field in recipes. The first one adds the inherits field

[yocto] [PATCH 01/11][auh] upgradehelper.py: Fix status_msg in pkg_upgrade_handler

2015-06-10 Thread Aníbal Limón
When is called pkg_upgrade_handler for generate email and save build history at end sometimes status_msg is undefined. Signed-off-by: Aníbal Limón --- upgradehelper.py | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index

[yocto] [PATCH 06/11][auh] upgradehelper.py: Add specific information about machines build succeed.

2015-06-10 Thread Aníbal Limón
Use build machines in email to maintainers instead of put that the build succeed in major arch's, this give to the maintainer non ambiguos info. [YOCTO #7489] Signed-off-by: Aníbal Limón --- upgradehelper.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --

[yocto] [PATCH 07/11][auh] upgradehelper.py: Move recipe work into upgradehelper work dir.

2015-06-10 Thread Aníbal Limón
[YOCTO #7489] Signed-off-by: Aníbal Limón --- upgradehelper.py | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index 266435d..19753a6 100755 --- a/upgradehelper.py +++ b/upgradehelper.py @@ -126,10 +126,14 @@ def parse_config_file

[yocto] [PATCH 05/11][auh] upgrade_helper.py: Make notice of License change into email.

2015-06-10 Thread Aníbal Limón
When license change it need to be specified into email to maintainers for review it. Add get_license_diff_file_name method to recipe class for get it into email handler and write information about it. [YOCTO 7186] Signed-off-by: Aníbal Limón --- recipe.py| 7 +++ upgradehelper.py

[yocto] [PATCH 04/11][auh] upgradehelper.py: Improve usage when try to upgrade one recipe.

2015-06-10 Thread Aníbal Limón
When try to upgrade only one recipe is needed to specify the version also when enable send emails it need to have a maintainer to avoid exception. [YOCTO #7489] Signed-off-by: Aníbal Limón --- upgradehelper.py | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a

[yocto] [PATCH 03/11][auh] upgradehelper.py: Use settings.from as email for commits.

2015-06-10 Thread Aníbal Limón
[YOCTO #7489] Signed-off-by: Aníbal Limón --- upgradehelper.py | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index 6af79a0..4a07d7b 100755 --- a/upgradehelper.py +++ b/upgradehelper.py @@ -148,10 +148,8 @@ class Updater(object

[yocto] [PATCH 00/11][auh]: Add support of new upstream mechanism and improvments

2015-06-10 Thread Aníbal Limón
The changes can be found at, http://git.yoctoproject.org/cgit/cgit.cgi/auto-upgrade-helper/log/?h=alimon/devel Aníbal Limón (11): upgradehelper.py: Fix status_msg in pkg_upgrade_handler upgradehelper.py: Make usage of new upstream detection mechanism upgradehelper.py: Use settings.from as

[yocto] [PATCH 11/11][auh] README: Edit Maintainece section to add current maintainer.

2015-06-10 Thread Aníbal Limón
Signed-off-by: Aníbal Limón --- README | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README b/README index ec3f955..dbcc755 100644 --- a/README +++ b/README @@ -112,7 +112,8 @@ The latest version of the code can always be found here: http://git.yoctoproject.org/cgit

[yocto] [PATCH 09/11][auh] upgradehelper.py: Change policy for send emails and fix error passing

2015-06-10 Thread Aníbal Limón
Now send emails almost in all cases this give the maintainer patches and diff to continue work also if the build isn't succesful. [YOCTO #7489] Signed-off-by: Aníbal Limón --- upgradehelper.py | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --

[yocto] [PATCH 08/11][auh] upgradehelper.py: Fix interactive mode when recipe upgrade finish.

2015-06-10 Thread Aníbal Limón
The validation for dropping changes needs to be defined only when interactive mode is true if not this causes to drop the changes for every failure. Signed-off-by: Aníbal Limón --- upgradehelper.py | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/upgradehelper.py b

[yocto] [PATCH 10/11][auh] upgradehelper.py: Change print to logger info.

2015-06-10 Thread Aníbal Limón
Print sentences need to be displayed as information in the logger this unifies logger facilities. [YOCTO #7489] Signed-off-by: Aníbal Limón --- recipe.py| 9 - upgradehelper.py | 8 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/recipe.py b/recipe.py

[yocto] [PATCH 02/11][auh] upgradehelper.py: Make usage of new upstream detection mechanism

2015-06-10 Thread Aníbal Limón
Change logic to use new values in checkpkg file generated with new oe.recipeutils.get_recipe_upstream_version and distrodata class. Remove CSV parsing by hand use csv module and also add debugging when discard recipes. [YOCTO #7488] Signed-off-by: Aníbal Limón --- upgradehelper.py | 96

Re: [yocto] multi-user shared state

2015-06-10 Thread Aníbal Limón
Hi Luke, Comments below, Best regards, alimon [1] https://autobuilder.yoctoproject.org/ [2] http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder/ On 10/06/15 14:25, Luke (Lucas) Starrett wrote: Hi, I'm trying to understand the feasibility of shared-state across multiple users in

Re: [yocto] [PATCH 09/11][auh] upgradehelper.py: Change policy for send emails and fix error passing

2015-06-11 Thread Aníbal Limón
Hi Paul, Comments below, Kind regards, alimon On 11/06/15 15:51, Paul Eggleton wrote: On Wednesday 10 June 2015 16:28:50 Aníbal Limón wrote: Now send emails almost in all cases this give the maintainer patches and diff to continue work also if the build isn't succesful. [YOCTO

Re: [yocto] [PATCH 09/11][auh] upgradehelper.py: Change policy for send emails and fix error passing

2015-06-11 Thread Aníbal Limón
On 11/06/15 16:05, Paul Eggleton wrote: On Thursday 11 June 2015 15:56:57 Aníbal Limón wrote: Hi Paul, Comments below, Kind regards, alimon On 11/06/15 15:51, Paul Eggleton wrote: On Wednesday 10 June 2015 16:28:50 Aníbal Limón wrote: Now send emails almost in all cases this give

[yocto] [PATCHv2 09/11][auh] upgradehelper.py: Change policy for send emails and fix error passing

2015-06-12 Thread Aníbal Limón
Now send emails almost in all cases this give the maintainer patches and diff to continue work also if the build isn't succesful. [YOCTO #7489] Signed-off-by: Aníbal Limón --- upgradehelper.py | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --

Re: [yocto] [PATCHv2 09/11][auh] upgradehelper.py: Change policy for send emails and fix error passing

2015-06-16 Thread Aníbal Limón
Hi Paul, On 16/06/15 08:01, Paul Eggleton wrote: Hi Aníbal, On Friday 12 June 2015 20:10:45 Aníbal Limón wrote: Now send emails almost in all cases this give the maintainer patches and diff to continue work also if the build isn't succesful. [YOCTO #7489] Signed-off-by: Aníbal

[yocto] [PATCHv3 09/11][auh] upgradehelper.py: Change policy for send emails and fix error handling.

2015-06-16 Thread Aníbal Limón
-off-by: Aníbal Limón --- errors.py| 16 upgradehelper.py | 16 +++- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/errors.py b/errors.py index c650165..7194944 100644 --- a/errors.py +++ b/errors.py @@ -31,6 +31,11 @@ class Error(Exception

[yocto] Automatic Upgrade Helper Announcement

2015-06-25 Thread Aníbal Limón
Hi all, I'm glad to announce the enabling of Automatic Upgrade Helper (a.k.a. AUH), the AUH is a service that provides recipe upgrades and will be run on weekly basis. If you are a maintainer (listed in [1]) you will receive AUH emails with Recipe upgrades when AUH detects that upgrade is ne

Re: [yocto] Missing certificates

2015-07-24 Thread Aníbal Limón
Hi Gary, What version of python do you use?. Since 2.7.9 cert checking is enabled by default causing this kind of errors. [1] [1] https://www.python.org/dev/peps/pep-0476/ Kind regards, alimon On 24/07/15 13:02, Gary Thomas wrote: I was trying to run a simple fetch from python using

Re: [yocto] Missing certificates

2015-07-24 Thread Aníbal Limón
On 24/07/15 14:49, Gary Thomas wrote: On 2015-07-24 13:30, Aníbal Limón wrote: Hi Gary, What version of python do you use?. Since 2.7.9 cert checking is enabled by default causing this kind of errors. [1] [1] https://www.python.org/dev/peps/pep-0476/ Kind regards, alimon I'm

[yocto] [PATCH 02/10][auh] upgradehelper.py: Validate if upgrade is needed

2015-07-29 Thread Aníbal Limón
When run upgradehelper only with one recipe upgrade needed validation isn't did. [YOCTO #7947] Signed-off-by: Aníbal Limón --- upgradehelper.py | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index 63

[yocto] [PATCH 01/10][auh] upgradehelper.py: Only run with one recipe or all.

2015-07-29 Thread Aníbal Limón
Remove ability to run with several recipes because isn't make sense. Supported modes are, $ ./upgradehelper.py all $ ./upgradehelper.py recipe --to_version VERSION Signed-off-by: Aníbal Limón --- upgradehelper.py | 34 ++ 1 file change

[yocto] [PATCH 00/10][auh] Add support for buildhistory and minor fixes

2015-07-29 Thread Aníbal Limón
This changes can be found at, http://git.yoctoproject.org/cgit/cgit.cgi/auto-upgrade-helper/log/?h=alimon/devel Aníbal Limón (10): upgradehelper.py: Only run with one recipe or all. upgradehelper.py: Validate if upgrade is needed upgradehelper.py: Only send emails when patch file exist

[yocto] [PATCH 03/10][auh] upgradehelper.py: Only send emails when patch file exist

2015-07-29 Thread Aníbal Limón
Remove old decision of send email based on error because only makes sense to send email when patch file was created. Signed-off-by: Aníbal Limón --- upgradehelper.py | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index f10d974

[yocto] [PATCH 05/10][auh] upgradehelper.py: Add own step for loading environment

2015-07-29 Thread Aníbal Limón
Instead of load environment in detecting git repository use own function making easy to debug. Signed-off-by: Aníbal Limón --- upgradehelper.py | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index 13fc7dd..9119cb0 100755 --- a

[yocto] [PATCH 06/10][auh] upgradehelper.py: UniverseUpdate don't abort if recipe checkpkg fails.

2015-07-29 Thread Aníbal Limón
Signed-off-by: Aníbal Limón --- upgradehelper.py | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index 9119cb0..7bc8eed 100755 --- a/upgradehelper.py +++ b/upgradehelper.py @@ -285,10 +285,7 @@ class Updater(object

[yocto] [PATCH 04/10][auh] bitbake.py: Improve performance on env() call

2015-07-29 Thread Aníbal Limón
When AUH load recipe enviroment use bitbake -e call and parses the output using regex VAR=VALUE. For improve performance discard all the comments on cmd output adding a output_filter using grep. Signed-off-by: Aníbal Limón --- bitbake.py | 7 +-- 1 file changed, 5 insertions(+), 2

[yocto] [PATCH 08/10][auh] upgradehelper.py: Remove unused references to Buildhistory class

2015-07-29 Thread Aníbal Limón
Buildhistory class isn't implemented so removed related code. Signed-off-by: Aníbal Limón --- upgradehelper.py | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index 7bc8eed..a31d041 100755 --- a/upgradehelper.py

[yocto] [PATCH 07/10][auh] bitbake.py: Rename bitbake_log.txt to bitbake_error_log

2015-07-29 Thread Aníbal Limón
Bitbake log only is written when error appears, rename it to be consistent with information into the log. Signed-off-by: Aníbal Limón --- bitbake.py | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bitbake.py b/bitbake.py index 54389fb..e23dc28 100644 --- a/bitbake.py

[yocto] [PATCH 09/10][auh] upgradehelper.py: Move upstream versioning code to UniverseUpdater

2015-07-29 Thread Aníbal Limón
Reorder code related to upstream versioning detection no makes sense to have in Updater because only in UniverseUpdater is used. Signed-off-by: Aníbal Limón --- upgradehelper.py | 161 ++- 1 file changed, 77 insertions(+), 84 deletions

[yocto] [PATCH 10/10][auh] upgradehelper: Add support for generate buildhistory recipe diff's

2015-07-29 Thread Aníbal Limón
eps for upgrade, add support for detect when buildhistory is enabled loading the environment without recipe. [YOCTO #7175] Signed-off-by: Aníbal Limón --- bitbake.py | 41 ++-- buildhistory.py | 75 errors.py| 6 +++ up

Re: [yocto] [PATCH 10/10][auh] upgradehelper: Add support for generate buildhistory recipe diff's

2015-07-31 Thread Aníbal Limón
Hi Paul, On 31/07/15 10:29, Paul Eggleton wrote: Hi Aníbal, On Wednesday 29 July 2015 15:50:53 Aníbal Limón wrote: Now AUH generates buildhistory diff when recipe was upgraded successfully. For enable this feature set into local.conf. INHERIT += "buildhi

Re: [yocto] [PATCH 10/10][auh] upgradehelper: Add support for generate buildhistory recipe diff's

2015-07-31 Thread Aníbal Limón
On 31/07/15 11:10, Paul Eggleton wrote: On Friday 31 July 2015 10:39:37 Aníbal Limón wrote: Hi Paul, On 31/07/15 10:29, Paul Eggleton wrote: Hi Aníbal, On Wednesday 29 July 2015 15:50:53 Aníbal Limón wrote: Now AUH generates buildhistory diff when recipe was upgraded successfully. For

[yocto] [PATCHv2 01/11][auh] upgradehelper.py: Only run with one recipe or all.

2015-08-03 Thread Aníbal Limón
Interactive mode for upgrade one recipe to user provided version, $ ./upgradehelper.py recipe --to_version VERSION Signed-off-by: Aníbal Limón --- upgradehelper.py | 34 ++ 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/upgradehelper.py b

[yocto] [PATCHv2 00/11][auh] Add support for buildhistory and minor fixes

2015-08-03 Thread Aníbal Limón
This v2 fixes comments by Paul Eggleton in patch 01 and patch 05 of this patchset. This changes can be found at, http://git.yoctoproject.org/cgit/cgit.cgi/auto-upgrade-helper/log/?h=alimon/devel Aníbal Limón (11): upgradehelper.py: Only run with one recipe or all. upgradehelper.py: Validate

[yocto] [PATCHv2 04/11][auh] bitbake.py: Improve performance on env() call

2015-08-03 Thread Aníbal Limón
When AUH load recipe enviroment use bitbake -e call and parses the output using regex VAR=VALUE. For improve performance discard all the comments on cmd output adding a output_filter using grep. Signed-off-by: Aníbal Limón --- bitbake.py | 7 +-- 1 file changed, 5 insertions(+), 2

[yocto] [PATCHv2 02/11][auh] upgradehelper.py: Validate if upgrade is needed

2015-08-03 Thread Aníbal Limón
When run upgradehelper only with one recipe upgrade needed validation isn't did. [YOCTO #7947] Signed-off-by: Aníbal Limón --- upgradehelper.py | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index 63

[yocto] [PATCHv2 05/11] [auh]upgradehelper.py: Add own step for loading environment

2015-08-03 Thread Aníbal Limón
Instead of load environment in detecting git repository use own function making easy to debug. Signed-off-by: Aníbal Limón --- upgradehelper.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index 13fc7dd..a3813c3 100755 --- a

[yocto] [PATCHv2 06/11][auh] upgradehelper.py: step _detect_repo clarify why don't load git

2015-08-03 Thread Aníbal Limón
Add comment to clarify why don't load git when is already instanced the reason is the UniverseUpdater use poky git repository root instead of per recipe directory. Signed-off-by: Aníbal Limón --- upgradehelper.py | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --

[yocto] [PATCHv2 03/11][auh] upgradehelper.py: Only send emails when patch file exist

2015-08-03 Thread Aníbal Limón
Remove old decision of send email based on error because only makes sense to send email when patch file was created. Signed-off-by: Aníbal Limón --- upgradehelper.py | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index f10d974

[yocto] [PATCHv2 07/11][auh] upgradehelper.py: UniverseUpdate don't abort if recipe checkpkg fails.

2015-08-03 Thread Aníbal Limón
When try to detect upstream version of recipes if one fails don't abort all the execution. Signed-off-by: Aníbal Limón --- upgradehelper.py | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index 8d6c6f6..d4a5360 100755

[yocto] [PATCHv2 08/11][auh] bitbake.py: Rename bitbake_log.txt to bitbake_error_log

2015-08-03 Thread Aníbal Limón
Bitbake log only is written when error appears, rename it to be consistent with information into the log. Signed-off-by: Aníbal Limón --- bitbake.py | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bitbake.py b/bitbake.py index 54389fb..e23dc28 100644 --- a/bitbake.py

[yocto] [PATCHv2 09/11][auh] upgradehelper.py: Remove unused references to Buildhistory class

2015-08-03 Thread Aníbal Limón
Buildhistory class isn't implemented so removed related code. Signed-off-by: Aníbal Limón --- upgradehelper.py | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index d4a5360..8cca23e 100755 --- a/upgradehelper.py

[yocto] [PATCHv2 10/11][auh] upgradehelper.py: Move upstream versioning code to UniverseUpdater

2015-08-03 Thread Aníbal Limón
Reorder code related to upstream versioning detection no makes sense to have in Updater because only in UniverseUpdater is used. Signed-off-by: Aníbal Limón --- upgradehelper.py | 161 ++- 1 file changed, 77 insertions(+), 84 deletions

[yocto] [PATCHv2 11/11][auh] upgradehelper: Add support for generate buildhistory recipe diff's

2015-08-03 Thread Aníbal Limón
eps for upgrade, add support for detect when buildhistory is enabled loading the environment without recipe. [YOCTO #7175] Signed-off-by: Aníbal Limón --- bitbake.py | 41 ++-- buildhistory.py | 75 errors.py| 6 +++ up

[yocto] [PATCH][rrs] rrs_upstream_history.py: Use regexes in SPECIAL_PKGSUFFIX packages

2015-08-10 Thread Aníbal Limón
When SPECIAL_PKGSUFFIX packages don't have regexes use it from package without SPECIAL_PKGSUFFIX. [YOCTO #8102] For example: python-native use regex from python if don't have one. Signed-off-by: Aníbal Limón --- rrs/tools/rrs_upstream_history.py | 40

[yocto] [PATCH][rrs] rrs_upstream_history.py: Fix use regexes in packages

2015-09-22 Thread Aníbal Limón
is fixes issues with suffixes containing archs at end. [YOCTO #8102] Signed-off-by: Aníbal Limón --- rrs/tools/rrs_upstream_history.py | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/rrs/tools/rrs_upstream_history.py b/rrs/tools/rrs_upstream_history.py index aea

[yocto] [PATCH 1/2][auh] upgradehelper.py: Display error when git commit fails.

2015-10-06 Thread Aníbal Limón
Don't hide error if git commit fails this helps to debug git problems. Git commit fail if isn't configured with user name and email. [YOCTO #8390] Signed-off-by: Aníbal Limón --- upgradehelper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/upgradehelper.py b/upgradehelpe

[yocto] [PATCH 2/2][auh] README: Upgrade instructions with changes done in 1.9.

2015-10-06 Thread Aníbal Limón
#7439] Signed-off-by: Aníbal Limón --- README | 33 - 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/README b/README index dbcc755..44c3bf1 100644 --- a/README +++ b/README @@ -10,13 +10,20 @@ published upstream. Setup - +0. AUH needs all

[yocto] [PATCH 00/10][AUH] Improvements and small fixes.

2015-11-09 Thread Aníbal Limón
Aníbal Limón (10): upgradehelper.py: Add step for build gcc-runtime at init. upgradehelper.py: Fix bug when buildhistory isn't enabled recipe.py: Improvements and refactor of fetch method. buildhistory.py: Don't modify BB_ENV_EXTRAWHITE before init. upgradehelper.py: Add sanit

[yocto] [PATCH 01/10][AUH] upgradehelper.py: Add step for build gcc-runtime at init.

2015-11-09 Thread Aníbal Limón
When try to upgrade a recipe the first recipe in the list takes too much time because gcc-runtime build is needed. So add previous step to build gcc-runtime for every machine. Signed-off-by: Aníbal Limón --- upgradehelper.py | 5 + 1 file changed, 5 insertions(+) diff --git a

[yocto] [PATCH 04/10][AUH] buildhistory.py: Don't modify BB_ENV_EXTRAWHITE before init.

2015-11-09 Thread Aníbal Limón
Move code for add BUILDHISTORY_DIR to __init__ method because it fails when import in early step. Signed-off-by: Aníbal Limón --- buildhistory.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/buildhistory.py b/buildhistory.py index 1732f23..6eca6e1 100644 --- a

[yocto] [PATCH 05/10][AUH] upgradehelper.py: Add sanity test for ensure that git is configured.

2015-11-09 Thread Aníbal Limón
[YOCTO #8390] Signed-off-by: Aníbal Limón --- upgradehelper.py | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index 9b321f6..ae40fb1 100755 --- a/upgradehelper.py +++ b/upgradehelper.py @@ -28,6 +28,7 @@ import

[yocto] [PATCH 02/10][AUH] upgradehelper.py: Fix bug when buildhistory isn't enabled

2015-11-09 Thread Aníbal Limón
Don't use buildhistory object if buildhistory_enabled is False because cause undefined variable error. Signed-off-by: Aníbal Limón --- upgradehelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upgradehelper.py b/upgradehelper.py index bb19b65..9b321f6 100755

[yocto] [PATCH 06/10][AUH] buildhistory.py: Add missing warning import. git.py: Fix last_commit method.

2015-11-09 Thread Aníbal Limón
Signed-off-by: Aníbal Limón --- buildhistory.py | 3 ++- git.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/buildhistory.py b/buildhistory.py index 6eca6e1..2e442d2 100644 --- a/buildhistory.py +++ b/buildhistory.py @@ -20,8 +20,9 @@ import os import

[yocto] [PATCH 03/10][AUH] recipe.py: Improvements and refactor of fetch method.

2015-11-09 Thread Aníbal Limón
Make more clear fetch method changing recursive manner to loop and split logic into try fetch and suffix change. Now when fails only retry changing recipe suffix when recipe isn't git based because does not make sense suffixes in SCM's. Signed-off-by: Aníbal Limón --- reci

[yocto] [PATCH 07/10][AUH] upgradehelper.py: Improve work directory structure

2015-11-09 Thread Aníbal Limón
the recipes that fail upgrade This helps to navigate over patches that have a successful upgrade. Signed-off-by: Aníbal Limón --- upgradehelper.py | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py

[yocto] [PATCH 10/10][AUH] requirements.txt: Add file for now only with GitPython

2015-11-09 Thread Aníbal Limón
Signed-off-by: Aníbal Limón --- requirements.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000..64b1ada --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +GitPython -- 2.1.4

[yocto] [PATCH 08/10][AUH] upgradehelper.py: Add support for do recipe upgrades based on builddep

2015-11-09 Thread Aníbal Limón
Signed-off-by: Aníbal Limón --- upgradehelper.py | 114 +-- 1 file changed, 86 insertions(+), 28 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index aeb9cf1..a08833e 100755 --- a/upgradehelper.py +++ b/upgradehelper.py @@ -91,7

[yocto] [PATCH 09/10][AUH] upgradehelper.py: Add support for preserve statistics into work directory.

2015-11-09 Thread Aníbal Limón
Signed-off-by: Aníbal Limón --- upgradehelper.py | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/upgradehelper.py b/upgradehelper.py index a08833e..4f33d2f 100755 --- a/upgradehelper.py +++ b/upgradehelper.py @@ -591,7 +591,16 @@ class Updater(object

Re: [yocto] [PATCH 03/10][AUH] recipe.py: Improvements and refactor of fetch method.

2015-11-11 Thread Aníbal Limón
Hi Paul, On 11/10/2015 02:46 AM, Paul Eggleton wrote: > Hi Aníbal, > > On Monday 09 November 2015 16:01:34 Aníbal Limón wrote: >> Make more clear fetch method changing recursive manner to >> loop and split logic into try fetch and suffix change. >> >> Now when

Re: [yocto] [PATCH 04/10][AUH] buildhistory.py: Don't modify BB_ENV_EXTRAWHITE before init.

2015-11-11 Thread Aníbal Limón
On 11/10/2015 02:54 AM, Paul Eggleton wrote: > On Monday 09 November 2015 16:01:35 Aníbal Limón wrote: >> Move code for add BUILDHISTORY_DIR to __init__ method because >> it fails when import in early step. >> >> Signed-off-by: Aníbal Limón >> --- >>

Re: [yocto] [PATCH 05/10][AUH] upgradehelper.py: Add sanity test for ensure that git is configured.

2015-11-11 Thread Aníbal Limón
On 11/10/2015 02:59 AM, Paul Eggleton wrote: > On Monday 09 November 2015 16:01:36 Aníbal Limón wrote: >> [YOCTO #8390] >> >> Signed-off-by: Aníbal Limón --- >> upgradehelper.py | 16 +++- 1 file changed, 11 >> insertions(+), 5 deletions(-) >&

Re: [yocto] [PATCH 08/10][AUH] upgradehelper.py: Add support for do recipe upgrades based on builddep

2015-11-11 Thread Aníbal Limón
Sure. I forget it :). On 11/10/2015 03:09 AM, Paul Eggleton wrote: > On Monday 09 November 2015 16:01:39 Aníbal Limón wrote: >> Signed-off-by: Aníbal Limón >> --- > > Please provide a proper commit message for this one

[yocto] [[AUH] PATCHv2 01/13] upgradehelper.py: Add step for build gcc-runtime at init.

2015-11-11 Thread Aníbal Limón
When try to upgrade a recipe the first recipe in the list takes too much time because gcc-runtime build is needed. So add previous step to build gcc-runtime for every machine. Signed-off-by: Aníbal Limón --- upgradehelper.py | 5 + 1 file changed, 5 insertions(+) diff --git a

[yocto] [[AUH] PATCHv2 00/13] Improvements and small fixes

2015-11-11 Thread Aníbal Limón
This changeset fixes comments made by Paul Eggleton and adds 3 new commits the last ones related to send email improvements. The changes can be found at, http://git.yoctoproject.org/cgit/cgit.cgi/auto-upgrade-helper/log/?h=devel Aníbal Limón (13): upgradehelper.py: Add step for build gcc

[yocto] [[AUH] PATCHv2 02/13] upgradehelper.py: Fix bug when buildhistory isn't enabled

2015-11-11 Thread Aníbal Limón
Don't use buildhistory object if buildhistory_enabled is False because cause undefined variable error. Signed-off-by: Aníbal Limón --- upgradehelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upgradehelper.py b/upgradehelper.py index bb19b65..9b321f6 100755

[yocto] [[AUH] PATCHv2 05/13] upgradehelper.py: Add sanity test for ensure that git is configured.

2015-11-11 Thread Aníbal Limón
[YOCTO #8390] Signed-off-by: Aníbal Limón --- upgradehelper.py | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index 9b321f6..195d8c9 100755 --- a/upgradehelper.py +++ b/upgradehelper.py @@ -28,6 +28,7 @@ import

[yocto] [[AUH] PATCHv2 06/13] buildhistory.py: Add missing warning import. git.py: Fix last_commit method.

2015-11-11 Thread Aníbal Limón
Signed-off-by: Aníbal Limón --- buildhistory.py | 3 ++- git.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/buildhistory.py b/buildhistory.py index 59566c8..842efc3 100644 --- a/buildhistory.py +++ b/buildhistory.py @@ -20,8 +20,9 @@ import os import

[yocto] [[AUH] PATCHv2 03/13] recipe.py: Improvements and refactor of fetch method.

2015-11-11 Thread Aníbal Limón
Make more clear fetch method changing recursive manner to loop and split logic into try fetch and suffix change. Now when fails only retry changing recipe suffix when recipe isn't git based because does not make sense suffixes in SCM's. Signed-off-by: Aníbal Limón --- reci

[yocto] [[AUH] PATCHv2 04/13] buildhistory.py: Don't modify BB_ENV_EXTRAWHITE before init.

2015-11-11 Thread Aníbal Limón
Move code for add BUILDHISTORY_DIR to __init__ method because it fails when import in early step. Signed-off-by: Aníbal Limón --- buildhistory.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/buildhistory.py b/buildhistory.py index 1732f23..59566c8 100644 --- a

[yocto] [[AUH] PATCHv2 07/13] upgradehelper.py: Improve work directory structure

2015-11-11 Thread Aníbal Limón
the recipes that fail upgrade This helps to navigate over patches that have a successful upgrade. Signed-off-by: Aníbal Limón --- upgradehelper.py | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py

[yocto] [[AUH] PATCHv2 08/13] upgradehelper.py: Add support for do recipe upgrades based on builddep

2015-11-11 Thread Aníbal Limón
Now upgradehelper runs recipe upgrades based on build dependencies, the dependency information is taken of bitbake dependency graph. So if recipe a depends in build time on recipe b and c these recipes b and c are first tried to upgrade then a. Signed-off-by: Aníbal Limón --- upgradehelper.py

[yocto] [[AUH] PATCHv2 09/13] upgradehelper.py: Add support for preserve statistics into work directory.

2015-11-11 Thread Aníbal Limón
Signed-off-by: Aníbal Limón --- upgradehelper.py | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/upgradehelper.py b/upgradehelper.py index 5bb066a..a3ca373 100755 --- a/upgradehelper.py +++ b/upgradehelper.py @@ -591,7 +591,16 @@ class Updater(object

[yocto] [[AUH] PATCHv2 10/13] requirements.txt: Add file for now only with GitPython

2015-11-11 Thread Aníbal Limón
Signed-off-by: Aníbal Limón --- requirements.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000..64b1ada --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +GitPython -- 2.1.4

[yocto] [[AUH] PATCHv2 13/13] upgradehelper.py: Add support for preserve emails.

2015-11-11 Thread Aníbal Limón
This support is useful for review purposes after upgrade process and these emails are saved into recipe work directory. Signed-off-by: Aníbal Limón --- upgradehelper.py | 14 ++ 1 file changed, 14 insertions(+) diff --git a/upgradehelper.py b/upgradehelper.py index f7ce425..5eb9f5a

[yocto] [[AUH] PATCHv2 11/13] upgradehelper.py: Only send email to Maintainer when upgrade succeed.

2015-11-11 Thread Aníbal Limón
Change the policy for send emails to only send when upgrade succeed to avoid waste time of the Maintainers when upgrade process fails because the failure patch generated isn't useful. Signed-off-by: Aníbal Limón --- upgradehelper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[yocto] [[AUH] PATCHv2 12/13] upgradehelper.py: Fix indent due to previous commit.

2015-11-11 Thread Aníbal Limón
Signed-off-by: Aníbal Limón --- upgradehelper.py | 109 +++ 1 file changed, 53 insertions(+), 56 deletions(-) diff --git a/upgradehelper.py b/upgradehelper.py index c2bf506..f7ce425 100755 --- a/upgradehelper.py +++ b/upgradehelper.py

[yocto] [PATCH][yocto-docs] dev-manual-qemu.xml: Add kvm-vhost option.

2015-11-17 Thread Aníbal Limón
Since 2.0 release KVM mode don't require VHOST enablement [1] and a new option was added to support the old mode. [1] http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=eebcbe19b7 Signed-off-by: Aníbal Limón --- documentation/dev-manual/dev-manual-qemu.xml | 7 +++ 1 file chang

Re: [yocto] [PATCH][yocto-docs] dev-manual-qemu.xml: Add kvm-vhost option.

2015-11-18 Thread Aníbal Limón
wrote: > Hi, > > Applied this patch with some modifications. Please see > http://www.yoctoproject.org/docs/2.0/dev-manual/dev-manual.html#qemu-using-the-runqemu-command > for the changes. > > Thanks, > Scott > > On Tue, Nov 17, 2015 at 9:18 AM, Aníbal Limón > w

[yocto] [PATCH] dev-manual: Fix errata in new kvm-vhost.

2015-11-18 Thread Aníbal Limón
Also /dev/vhost isn't a require condition in kvm only in kvm-vhost. Signed-off-by: Aníbal Limón --- documentation/dev-manual/dev-manual-qemu.xml | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/documentation/dev-manual/dev-manual-qemu.xml b/documentation/dev-m

[yocto] [[AUH] 02/17] upgradehelper.py: Merge options into a dictionary

2015-11-25 Thread Aníbal Limón
Use one dictionary to keep together the options this enables possibility to define an interface for steps, see next commit. Signed-off-by: Aníbal Limón --- upgradehelper.py | 83 1 file changed, 42 insertions(+), 41 deletions(-) diff

[yocto] [[AUH] 00/17] AUH code refactor and support test image.

2015-11-25 Thread Aníbal Limón
changes can also be found at, http://git.yoctoproject.org/cgit/cgit.cgi/auto-upgrade-helper/log/?h=boot_images_v2 Aníbal Limón (17): {upgradehelper, bitbake}.py: Move _get_env function to bitbake upgradehelper.py: Merge options into a dictionary upgradehelper.py: Adds own module for steps

[yocto] [[AUH] 01/17] {upgradehelper, bitbake}.py: Move _get_env function to bitbake

2015-11-25 Thread Aníbal Limón
Remove unnecesary access function (_get_env) to environment move logic to build dictionary to bitbake env method. Signed-off-by: Aníbal Limón --- bitbake.py | 19 ++- upgradehelper.py | 26 -- 2 files changed, 22 insertions(+), 23 deletions(-) diff

[yocto] [[AUH] 05/17] buildhistory: Add option for enable in upgrade-helper.conf

2015-11-25 Thread Aníbal Limón
Make consistent the enablement for this feature it need to be explicit enable into upgrade-helper.conf and also needs configuration in local.conf. Signed-off-by: Aníbal Limón --- README | 9 +++-- modules/steps.py | 6 +++--- upgradehelper.py | 40

[yocto] [[AUH] 03/17] upgradehelper.py: Adds own module for steps

2015-11-25 Thread Aníbal Limón
. - pkg_ctx: Package context per upgrade, it stores all information related to one upgrade. Signed-off-by: Aníbal Limón --- steps.py | 142 ++ upgradehelper.py | 259 +-- 2 files changed, 221 insertions(+), 180

[yocto] [[AUH] 06/17] recipe/base.py: Add is_recipe_or_include_file func

2015-11-25 Thread Aníbal Limón
Instead of have duplicate code add this new function for make code easy to read. Signed-off-by: Aníbal Limón --- modules/recipe/base.py | 35 +-- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/modules/recipe/base.py b/modules/recipe/base.py index

[yocto] [[AUH] 07/17] recipe/base.py: Add modify_recipe_files function decorator

2015-11-25 Thread Aníbal Limón
Remove duplicate code adding modify_recipe_files decorator, this function interate over recipe_dir and found bb and includes files to make modifications. Modifications to recipe bb and include files are made by function passed to modify_recipe_files. Signed-off-by: Aníbal Limón --- modules

[yocto] [[AUH] 09/17] steps.py: Merge load_dirs step into load_env.

2015-11-25 Thread Aníbal Limón
Signed-off-by: Aníbal Limón --- modules/steps.py | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/steps.py b/modules/steps.py index 4a2eee3..19549cc 100644 --- a/modules/steps.py +++ b/modules/steps.py @@ -50,15 +50,13 @@ def load_env(bb, git, opts, pkg_ctx

[yocto] [[AUH] 10/17] steps.py: Move clean_repo to first step.

2015-11-25 Thread Aníbal Limón
In order to avoid random errors of uncleaned repository. Signed-off-by: Aníbal Limón --- modules/steps.py | 28 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/modules/steps.py b/modules/steps.py index 19549cc..2685b80 100644 --- a/modules/steps.py

[yocto] [[AUH] 08/17] recipe/base.py: Add support for get recipe inherits.

2015-11-25 Thread Aníbal Limón
Recipe inherits are needed to detect what recipes support certain feature. For example: For detect ptest enable recipes and then do ptest runtime test after succesful upgrade. Signed-off-by: Aníbal Limón --- modules/recipe/base.py | 25 + 1 file changed, 25 insertions

[yocto] [[AUH] 11/17] utils/git.py: Add method for apply patches into a branch.

2015-11-25 Thread Aníbal Limón
Signed-off-by: Aníbal Limón --- modules/utils/git.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/utils/git.py b/modules/utils/git.py index 48ed46d..d7f5713 100644 --- a/modules/utils/git.py +++ b/modules/utils/git.py @@ -61,6 +61,9 @@ class Git(object): def create_patch

[yocto] [[AUH] 12/17] upgradehelper.py: Add settings for enable testimage.

2015-11-25 Thread Aníbal Limón
Testimage feature will provide the ability to run testimage class over a set of succesful upgrades. Also it will run ptest on recipes that support ptest and retrive the result for store/send to maintainer. Signed-off-by: Aníbal Limón --- README | 25

  1   2   3   4   >