Re: [OE-core] [PATCH 2/2] linux-yocto: Add scsi_debug module when ptest is in DISTRO_FEATURES

2019-06-15 Thread Mariano Lopez
On 6/15/19 10:15 AM, Richard Purdie wrote: On Thu, 2019-06-13 at 22:32 -0500, Mariano López wrote: util-linux ptest requires the scsi_debug module to perform eject/mount tests. This will conditionally add scsi_debug module when ptest is in DISTRO_FEATURES. This doesn't include linux-yocto-tiny

Re: [OE-core] [PATCH 2/2] linux-yocto: Add scsi_debug module when ptest is in DISTRO_FEATURES

2019-06-18 Thread Mariano Lopez
On 6/15/19 8:02 PM, Bruce Ashfield wrote: On Sat, Jun 15, 2019 at 3:47 PM Mariano Lopez wrote: On 6/15/19 10:15 AM, Richard Purdie wrote: On Thu, 2019-06-13 at 22:32 -0500, Mariano López wrote: util-linux ptest requires the scsi_debug module to perform eject/mount tests. This will

[OE-core] [PATCH] sanity.bbclass: Increased verbosity for connectivity check

2015-04-22 Thread Mariano Lopez
The connectivity sanity error doesn't tell you which URL failed to fetch nor how it failed. This provides the URL that failed and why it failed using BBFetchException messages during the connectivity check. [YOCTO #7592] Signed-off-by: mlopezva --- meta/classes/sanity.bbclass | 4 ++-- 1 f

[OE-core] [PATCH] sanity.bbclass: Increased verbosity for connectivity check

2015-04-27 Thread Mariano Lopez
ff-by: Mariano Lopez --- meta/classes/sanity.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index cca39c9..f7e8212 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -278,12 +278,12 @

[OE-core] [PATCH] sanity.bbclass: Increased verbosity for connectivity check

2015-05-13 Thread mariano . lopez
From: Mariano Lopez The connectivity sanity error doesn't tell you which URL failed to fetch nor how it failed. This provides the URL that failed and why it failed using BBFetchException messages during the connectivity check. [YOCTO #7592] Signed-off-by: Mariano Lopez --- meta/cl

[OE-core] [PATCH] copyleft_filter.bbclass: Allow to filter on name

2015-05-22 Thread mariano . lopez
From: Mariano Lopez The archiver uses a license based filter to provide the source code. This patch allows to search on name based on two new variables (SRC_INCLUDE_NAME, SRC_EXCLUDE_NAME). Both variables are empty by default. The filter by name has higher priority than the license filter

[OE-core] [PATCH 1/1] oeqa/utils/commands.py: Fix get_bb_vars() when called without arguments

2016-12-14 Thread mariano . lopez
From: Mariano Lopez Commit 9d55e9d489cd78be592fb9b4d6484f9060c62fdd broke calling get_bb_vars() when called without arguments. This fix this issue. Signed-off-by: Mariano Lopez --- meta/lib/oeqa/utils/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/lib

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

2017-01-04 Thread Mariano Lopez
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. > > I don't think is a good idea to completely remove the layer from the metadata when such layer is not a rep

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

2017-01-04 Thread Mariano Lopez
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. """ > > -elem = Element(tag) > +elem = Element(tag, **kwargs) > for key, val in dictionary.items

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

2017-01-04 Thread Mariano Lopez
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 insertions(+), 13 deletions(-) > > diff --git a/meta/lib/oeqa/utils/metadata.py b/meta/lib/oeqa/utils

[OE-core] [PATCH 0/2] Be sure to kill qemu-system on testimage

2017-01-13 Thread mariano . lopez
From: Mariano Lopez With refactor of runqemu to use python instead of shel scripting, the qemu-system process keeps running if runqemu fails. This series will fix this and will terminate qemu-system explicity. The following changes since commit 81021bc0aa0f64e67535f6a9551e921a64fe4395: yocto

[OE-core] [PATCH 1/2] oeqa/utils/qemurunner.py: Add missing sys module

2017-01-13 Thread mariano . lopez
From: Mariano Lopez This adds the missing sys module used by the child process to exit. It seems the exception was cached in testimage and selftest. It seems nobody noticed this because the module is only used for sys.exit(). Signed-off-by: Mariano Lopez --- meta/lib/oeqa/utils/qemurunner.py

[OE-core] [PATCH 2/2] oeqa/utils/qemurunner.py: Be sure to stop qemu-system

2017-01-13 Thread mariano . lopez
From: Mariano Lopez When runqemu fails, qemu-system process would keep running and won't be killed, setpgrp() was used when runqemu was a shell script but it seems it doesn't work always with python. This would kill qemu-system explicity and to avoid leaving it behind. Signed-off-b

[OE-core] [PATCH 1/1] lib/oe/package_manager.py: Fix extract for ipk and deb

2017-01-13 Thread mariano . lopez
From: Mariano Lopez With the move to use lists instead of strings in subprocess calls, package extraction was broken for ipk and deb. This fixes this issue. Signed-off-by: Mariano Lopez --- meta/lib/oe/package_manager.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a

[OE-core] [PATCH 1/1] testimage.bbclass: Add systemd test automatically

2017-01-23 Thread mariano . lopez
From: Mariano Lopez This adds systemd test automatically when an image is build with systemd DISTRO_FEATURE [YOCTO #10935] Signed-off-by: Mariano Lopez --- meta/classes/testimage.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/testimage.bbclass b

[OE-core] [PATCH 1/1] package_ipk.bbclass: Add check for empty lines in DESCRIPTION

2017-01-24 Thread mariano . lopez
From: Mariano Lopez opkg uses empty lines as separator for next package and if an ipk file was packaged with empty lines in DESCRIPTION opkg won't be able to handle such ipk file, this happens at execution time. This commit will add a check for empty lines in DESCRIPTION when generating t

[OE-core] [PATCH 1/3] runtime/cases/connman.py: Stop using oeRuntimeTest

2017-01-25 Thread mariano . lopez
From: Mariano Lopez oeRuntimeTest class is not used anymore as part of runtime migration, this particular case was missed, so fix it. [YOCTO #10964] Signed-off-by: Mariano Lopez --- meta/lib/oeqa/runtime/cases/connman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[OE-core] [PATCH 0/3] Fix bugs found within runtime testing

2017-01-25 Thread mariano . lopez
From: Mariano Lopez This will fix some bugs found in testimage when executing tests from images downloaded from the autobuilders. The following changes since commit aa7e2717d33c2d754ec486e9148f446c1d6a3b14: ref-manual: remove core-image-directfb reference (2017-01-25 12:07:43 +) are

[OE-core] [PATCH 3/3] testimage.bbclass: Allow to run tests on autobuilder's images

2017-01-25 Thread mariano . lopez
From: Mariano Lopez With the change to the new framework data store dependecy was removed, instead a new file is generated and used in testimage. When testing builds from the autobuilders the test data values are from the autobuilder, including the paths. Some tests require paths to current

[OE-core] [PATCH 2/3] runtime/cases/smart.py: Check for IMAGE_PKGTYPE instead of PACKAGE_CLASSES

2017-01-25 Thread mariano . lopez
From: Mariano Lopez smart test requires to build the image using rpm packages, this check was included, but it checked for PACKAGE_CLASSES=='package_rpm', and this is not true when building packages for rpm and deb/ipk. So this would check IMAGE_PKGTYPE instead. [YOCTO #10964] Sig

Re: [OE-core] [PATCH 1/1] package_ipk.bbclass: Add check for empty lines in DESCRIPTION

2017-01-26 Thread Mariano Lopez
On 25/01/17 05:56, Richard Purdie wrote: > On Tue, 2017-01-24 at 11:52 -0700, Christopher Larson wrote: >> On Tue, Jan 24, 2017 at 1:37 AM, >> wrote: >>> From: Mariano Lopez >>> >>> opkg uses empty lines as separator for next package and if an ipk

[OE-core] [PATCHv2 0/5] Fix bugs found within runtime testing

2017-01-27 Thread mariano . lopez
From: Mariano Lopez This will fix some bugs found in testimage when executing tests from images downloaded from the autobuilders. Changes in v2: - Fix some test cases that were changed during the migration. - Add createrepo-native as dependency of test image. - Fix TEST_SUITES in core-image

[OE-core] [PATCHv2 2/5] runtime/cases/smart.py: Check for IMAGE_PKGTYPE instead of PACKAGE_CLASSES

2017-01-27 Thread mariano . lopez
From: Mariano Lopez smart test requires to build the image using rpm packages, this check was included, but it checked for PACKAGE_CLASSES=='package_rpm', and this is not true when building packages for rpm and deb/ipk. So this would check IMAGE_PKGTYPE instead. [YOCTO #10964] Sig

[OE-core] [PATCHv2 4/5] oeqa/core/context.py: Add validation for run-tests option

2017-01-27 Thread mariano . lopez
From: Aníbal Limón The run-tests option is optional so if isn't specified set to None instead of crash on split(). Signed-off-by: Aníbal Limón --- meta/lib/oeqa/core/context.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeq

[OE-core] [PATCHv2 1/5] runtime/cases: Fix case numbers, missing cases and unused classes

2017-01-27 Thread mariano . lopez
From: Mariano Lopez connman: oeRuntimeTest class is not used anymore as part of runtime migration, this particular case was missed, so fix it. gcc: Removed unneded lines. multilib: fixed case number. syslog: added a missing test. [YOCTO #10964] Signed-off-by: Mariano Lopez Signed-off-by

[OE-core] [PATCHv2 3/5] testimage.bbclass: Allow to run tests on autobuilder's images

2017-01-27 Thread mariano . lopez
From: Mariano Lopez With the change to the new framework data store dependecy was removed, instead a new file is generated and used in testimage. When testing builds from the autobuilders the test data values are from the autobuilder, including the paths. Some tests require paths to current

[OE-core] [PATCHv2 5/5] oeqa/runtime/cases: Rename syslog module to oe_syslog

2017-01-27 Thread mariano . lopez
From: Aníbal Limón Debian based distros has a builtin syslog module so when try to load tests using unittest it references the builtin module instead of runtime/cases. [YOCTO ##10964] Signed-off-by: Aníbal Limón Signed-off-by: Mariano Lopez --- meta/classes/testimage.bbclass

[OE-core] [PATCHv3 3/5] testimage.bbclass: Allow to run tests on autobuilder's images

2017-01-30 Thread mariano . lopez
From: Mariano Lopez With the change to the new framework data store dependecy was removed, instead a new file is generated and used in testimage. When testing builds from the autobuilders the test data values are from the autobuilder, including the paths. Some tests require paths to current

[OE-core] [PATCHv3 2/5] runtime/cases/smart.py: Check for IMAGE_PKGTYPE instead of PACKAGE_CLASSES

2017-01-30 Thread mariano . lopez
From: Mariano Lopez smart test requires to build the image using rpm packages, this check was included, but it checked for PACKAGE_CLASSES=='package_rpm', and this is not true when building packages for rpm and deb/ipk. So this would check IMAGE_PKGTYPE instead. [YOCTO #10964] Sig

[OE-core] [PATCHv3 1/5] runtime/cases: Fix case numbers, missing cases and unused classes

2017-01-30 Thread mariano . lopez
From: Mariano Lopez connman: oeRuntimeTest class is not used anymore as part of runtime migration, this particular case was missed, so fix it. gcc: Removed unneded lines. multilib: fixed case number. syslog: added a missing test. [YOCTO #10964] Signed-off-by: Mariano Lopez Signed-off-by

[OE-core] [PATCHv3 5/5] oeqa/runtime/cases: Rename syslog module to oe_syslog

2017-01-30 Thread mariano . lopez
From: Aníbal Limón Debian based distros has a builtin syslog module so when try to load tests using unittest it references the builtin module instead of runtime/cases. [YOCTO #10964] Signed-off-by: Aníbal Limón Signed-off-by: Mariano Lopez --- meta/classes/testimage.bbclass

[OE-core] [PATCHv3 4/5] oeqa/core/context.py: Add validation for run-tests option

2017-01-30 Thread mariano . lopez
From: Aníbal Limón The run-tests option is optional so if isn't specified set to None instead of crash on split(). Signed-off-by: Aníbal Limón --- meta/lib/oeqa/core/context.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeq

Re: [OE-core] do_populate_cve_db: Error in executing cve-check-update

2017-02-07 Thread Mariano Lopez
On 06/02/17 09:17, Jussi Kukkonen wrote: > > > On 6 February 2017 at 16:56, Burton, Ross > wrote: > > > On 6 February 2017 at 14:43, Sona Sarmadi > wrote: > > bbdebug 2 "Updating cve-check-tool database located in >

[OE-core] [PATCH 1/1] insane.bbclass: Add prepare_recipe_sysroot dependency for package_qa

2017-02-07 Thread mariano . lopez
From: Mariano Lopez package_qa task requires some tools installed in sysroot; with the introduction of recipe specific sysroot this task won't have such tools installed if it's forced to run. Signed-off-by: Mariano Lopez --- meta/classes/insane.bbclass | 2 +- 1 file changed, 1

[OE-core] [PATCH 0/2] Improvements to oe-selftest

2017-02-09 Thread mariano . lopez
From: Mariano Lopez This series includes to main improvements; - Remove use of cleansstate tasks from tests in order to use shared states in the autobuilders - Optimize use of get_bb_var to avoid calling bitbake -e over and over again This has been tested in local autobuilders. This series

[OE-core] [PATCH 1/2] selftest: Avoid sstate corruption by calling cleansstate

2017-02-09 Thread mariano . lopez
From: Mariano Lopez Currently selftest doesn't use sstates because some tests clean sstate cache; using sstates would give a performance boost instead of building everything from scratch. With this sstates are not corrupted using different methods depending on tests: devtool: These

[OE-core] [PATCH 2/2] selftest: Optimize get_bb_var use

2017-02-09 Thread mariano . lopez
From: Mariano Lopez get_bb_var calls bitbake every time it is used and every call would take about 7 seconds. There are tests that calls get_bb_var several times when they can use get_bb_vars. Also there are tests that calls it to fetch the same variable over and over again. This will optimize

[OE-core] [PATCH 1/1] testimage.bbclass: Add check for empty test suite

2017-02-09 Thread mariano . lopez
From: Mariano Lopez If for some reason (most likely incorrect TEST_SUITES var) you end with an empty test suite, testimage will start the target (qemu by default) and will run an empty suite, so better have a check before starting the target. [YOCTO #10979] Signed-off-by: Mariano Lopez

[OE-core] [PATCHv2 0/1] insane.bbclass: Add missing dependencies

2017-02-10 Thread mariano . lopez
From: Mariano Lopez Changes in v2: - Add binutils as dependency too The following changes since commit a624cf7f95c8cf4ff764cc997fd1db4601b97dcc: oeqa/selftest/pkgdata: use m4 instead of bash (2017-02-07 14:50:10 +) are available in the git repository at: git://git.yoctoproject.org

[OE-core] [PATCHv2 1/1] insane.bbclass: Add missing dependencies

2017-02-10 Thread mariano . lopez
From: Mariano Lopez package_qa task requires some tools installed in sysroot; with the introduction of recipe specific sysroot this task won't have such tools installed if it's forced to run. Signed-off-by: Mariano Lopez --- meta/classes/insane.bbclass | 5 - 1 file changed, 4

[OE-core] [PATCH 0/2] OEQA loader improvement

2017-02-10 Thread mariano . lopez
From: Mariano Lopez The first adds more verbosity when a class doesn't inherit from the expected test class. The second patch raises an error when trying to import a test with the same module name as a built-in module. The following changes since commit e758547db9048d4aa1c1415d6af8072f519

[OE-core] [PATCH 1/2] oeqa/core/loader.py: Give meaningful error when failed to load classes

2017-02-10 Thread mariano . lopez
From: Mariano Lopez With this we get the class that is actually having the problem, not just a TypeError with an unknown class causing the error. Signed-off-by: Mariano Lopez --- meta/lib/oeqa/core/loader.py | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/meta/lib

[OE-core] [PATCH 2/2] oeqa/core/loader.py: Avoid importing tests with built-ins name

2017-02-10 Thread mariano . lopez
From: Mariano Lopez If importing a test with the same name as a built-in module, it will silently import the built-in and check for tests in built-in module. This happened with syslog module in debian based machines, so add a raise to avoid this behavior. [YOCTO #10978] Signed-off-by: Mariano

[OE-core] [PATCH 1/1] oeqa/runtime/context.py: Fix use of getTarget() with testexport

2017-02-21 Thread mariano . lopez
From: Mariano Lopez The idea on getTarget is to use kwargs to send custom variables to different targets, instead of this, a new variable was added (just used for custom targets) and this broke testexport. So in order to fix it, just add the custom variable to kwargs. This fixes the use of

[OE-core] [PATCHv3 0/1] insane.bbclass: Add missing dependencies

2017-02-21 Thread mariano . lopez
From: Mariano Lopez Changes in v2: - Add binutils as dependency too Changes in v3: - Remove prepare_recipe_sysroot task dependency as recommended by Richard The following changes since commit e436a6398684d2872cb541f1cfb0f67b3618d15a: layer.conf: bump version for change in eSDK selftest

[OE-core] [PATCHv3 1/1] insane.bbclass: Add missing dependencies

2017-02-21 Thread mariano . lopez
From: Mariano Lopez package_qa task requires some tools installed in sysroot; with the introduction of recipe specific sysroot this task won't have such tools installed if it's forced to run. Signed-off-by: Mariano Lopez --- meta/classes/insane.bbclass | 3 +++ 1 file changed, 3

Re: [OE-core] [PATCHv2 1/1] insane.bbclass: Add missing dependencies

2017-02-21 Thread Mariano Lopez
On 15/02/17 22:02, Richard Purdie wrote: > On Fri, 2017-02-10 at 14:19 -0600, mariano.lo...@linux.intel.com wrote: >> From: Mariano Lopez >> >> package_qa task requires some tools installed in sysroot; with >> the introduction of recipe specific sysroot this ta

[OE-core] [PATCHv2 0/2] Improvements to oe-selftest

2017-02-21 Thread mariano . lopez
From: Mariano Lopez This series includes to main improvements; - Remove use of cleansstate tasks from tests in order to use shared states in the autobuilders - Optimize use of get_bb_var to avoid calling bitbake -e over and over again This has been tested in local autobuilders. This series

[OE-core] [PATCHv2 1/2] selftest: Avoid sstate corruption by calling cleansstate

2017-02-21 Thread mariano . lopez
From: Mariano Lopez Currently selftest doesn't use sstates because some tests clean sstate cache; using sstates would give a performance boost instead of building everything from scratch. With this sstates are not corrupted using different methods depending on tests: devtool: These

[OE-core] [PATCHv2 2/2] selftest: Optimize get_bb_var use

2017-02-21 Thread mariano . lopez
From: Mariano Lopez get_bb_var calls bitbake every time it is used and every call would take about 7 seconds. There are tests that calls get_bb_var several times when they can use get_bb_vars. Also there are tests that calls it to fetch the same variable over and over again. This will optimize

[OE-core] [PATCHv3 3/6] license.bbclass: Added get_boot_dependencies function

2015-11-19 Thread mariano . lopez
From: Mariano Lopez This function gets the dependencies from the classes that create a boot image, this is required because sometimes the bootloader dependecy is in these classes. The current classes covered are bootimg and bootdirectdisk because these are the only clases that add dependencies

[OE-core] [PATCHv3 6/6] license.bbclass: Create image license manifest

2015-11-19 Thread mariano . lopez
From: Mariano Lopez This change adds the license_deployed_manifest function that will create the manifest for the packages deployed next to the image but not installed in rootfs. Some examples of these recipes would be the bootloaders, or the kernel. This new function was added to

[OE-core] [PATCHv3 4/6] license.bbclass: Added function get_deployed_dependencies

2015-11-19 Thread mariano . lopez
From: Mariano Lopez This change introduce a new function to get the dependencies that were deployed. It uses BB_TASKDEPDATAto get all the dependencies of the current task, so it is possible to get different packages depending at what point this function is called. [YOCTO #6772] Signed-off-by

[OE-core] [PATCHv3 1/6] license.bbclass: Write recipeinfo file in license folder

2015-11-19 Thread mariano . lopez
From: Mariano Lopez Currently there is no way to get the recipe version when creating the rootfs. It is needed because the manifest file for the image has to contain this important piece of information. This change writes a new file in the license folder for every recipe. This file is called

[OE-core] [PATCHv3 2/6] license.bbclass: Split license create manifest

2015-11-19 Thread mariano . lopez
From: Mariano Lopez This changes moves the writing of the licenses to a separated function that could be called for other packages. With these change it will be easier to reuse the writing of the license for the packages deployed but not installed in the rootfs. [YOCTO #6772] Signed-off-by

[OE-core] [PATCHv3 5/6] license.bbclass: Add function get_deployed_files

2015-11-19 Thread mariano . lopez
From: Mariano Lopez This function will get the files that were deployed using the sstate-control manifest file. This will give a better view of what was deployed next to the image. [YOCTO #6772] Signed-off-by: Mariano Lopez --- meta/classes/license.bbclass | 15 +++ 1 file

[OE-core] [PATCHv3 0/6] Create image manifest

2015-11-19 Thread mariano . lopez
From: Mariano Lopez When building the rootfs the rootfs is created but the recipes that deployed files in the image doesn't show up. Usually these recipes include the bootloaders and the kernel. With these patches a new manifest will be created that includes the deployed recipes that we

[OE-core] [PATCHv4 4/6] license.bbclass: Added function get_deployed_dependencies

2015-11-20 Thread mariano . lopez
From: Mariano Lopez This change introduce a new function to get the dependencies that were deployed. It uses BB_TASKDEPDATAto get all the dependencies of the current task, so it is possible to get different packages depending at what point this function is called. [YOCTO #6772] Signed-off-by

[OE-core] [PATCHv4 6/6] license.bbclass: Create image license manifest

2015-11-20 Thread mariano . lopez
From: Mariano Lopez This change adds the license_deployed_manifest function that will create the manifest for the packages deployed next to the image but not installed in rootfs. Some examples of these recipes would be the bootloaders, or the kernel. This new function was added to

[OE-core] [PATCHv4 5/6] license.bbclass: Add function get_deployed_files

2015-11-20 Thread mariano . lopez
From: Mariano Lopez This function will get the files that were deployed using the sstate-control manifest file. This will give a better view of what was deployed next to the image. [YOCTO #6772] Signed-off-by: Mariano Lopez --- meta/classes/license.bbclass | 15 +++ 1 file

[OE-core] [PATCHv4 2/6] license.bbclass: Split license create manifest

2015-11-20 Thread mariano . lopez
From: Mariano Lopez This changes moves the writing of the licenses to a separated function that could be called for other packages. With these change it will be easier to reuse the writing of the license for the packages deployed but not installed in the rootfs. [YOCTO #6772] Signed-off-by

[OE-core] [PATCHv4 3/6] license.bbclass: Added get_boot_dependencies function

2015-11-20 Thread mariano . lopez
From: Mariano Lopez This function gets the dependencies from the classes that create a boot image, this is required because sometimes the bootloader dependecy is in these classes. The current classes covered are bootimg and bootdirectdisk because these are the only clases that add dependencies

[OE-core] [PATCHv4 1/6] license.bbclass: Write recipeinfo file in license folder

2015-11-20 Thread mariano . lopez
From: Mariano Lopez Currently there is no way to get the recipe version when creating the rootfs. It is needed because the manifest file for the image has to contain this important piece of information. This change writes a new file in the license folder for every recipe. This file is called

[OE-core] RFC: Reference updater filesystem

2015-11-23 Thread Mariano Lopez
There has been interest in an image based software updater in Yocto Project. The proposed solution for a image based updater is to use Stefano Babic's software updater (http://sbabic.github.io/swupdate). This software do a binary copy, so it is needed to have at least two partitions, these part

Re: [OE-core] [PATCH 2/2] wic: Allow to use a custom config for bootloaders

2015-11-23 Thread Mariano Lopez
at 08:25:54AM +, mariano.lo...@linux.intel.com wrote: From: Mariano Lopez This change will allow to use a user defined file as the configuration for the bootloaders (grub, gummiboot, syslinux). The config file is defined in the wks file with the "configfile" option in the bootloade

Re: [OE-core] [PATCH 2/2] wic: Allow to use a custom config for bootloaders

2015-11-26 Thread Mariano Lopez
On 11/24/2015 09:43 AM, Ed Bartosh wrote: On Mon, Nov 23, 2015 at 04:13:15PM -0600, Mariano Lopez wrote: On 11/23/2015 11:37 AM, Ed Bartosh wrote: Hi Mariano, Thank you for the patchset! Would it be better to put content of configuration file into .wks instead of just referring to it? If

[OE-core] [PATCH 1/1] rootfs.py: Change logic to unistall packages

2015-11-26 Thread mariano . lopez
From: Mariano Lopez In the current state some of the base utils (update-rc.d, base-passwd, shadow, and update-alternatives) are unistalled when there is no package manager in the image. Checking for previous commits, the unistall of these utils were to be done in a read-only filesystem. It is a

[OE-core] [PATCH 0/1] rootfs.py: Change logic to unistall packages

2015-11-26 Thread mariano . lopez
From: Mariano Lopez This patch changes the logic to unistall some base utils when creating rootfs. It chages from checking for a package manger to check if it is a read-only rootfs. [YOCTO #8235] The following changes since commit 03f15e51998a3ef65a5b68cb7cbf724f4388c289: sstate: Ensure

Re: [OE-core] [PATCH 2/2] wic: Allow to use a custom config for bootloaders

2015-11-26 Thread Mariano Lopez
On 11/26/2015 08:48 AM, Mariano Lopez wrote: On 11/24/2015 09:43 AM, Ed Bartosh wrote: On Mon, Nov 23, 2015 at 04:13:15PM -0600, Mariano Lopez wrote: On 11/23/2015 11:37 AM, Ed Bartosh wrote: Hi Mariano, Thank you for the patchset! Would it be better to put content of configuration

[OE-core] [PATCHv2 1/6] wic: Prepare wicboot to allow custom bootloader config

2015-12-01 Thread mariano . lopez
From: Mariano Lopez Currently wic does the bootloader configuration file on the fly. This change introduce a configfile variable for the bootloader; this is to have a user defined configuration file for the bootloaders (grub, syslinux, and gummiboot). This is particular useful when having a

[OE-core] [PATCHv2 6/6] selftest/wic.py: Add test for custom bootloader config

2015-12-01 Thread mariano . lopez
From: Mariano Lopez This change just add anoher test to the wic module. It will try to create a image with a custom bootloader configuration. This test will use the example image directdisk-bootloader-config to test the configfile option for the bootloaders. [YOCTO #8728] Signed-off-by

[OE-core] [PATCHv2 2/6] wic/utils/misc.py: Added function to search for files in canned-wks

2015-12-01 Thread mariano . lopez
From: Mariano Lopez This change add two new function to search for files in the canned-wks folder for all the layers included in bblayers.conf. This will be used to search for custom configuration files for the bootloaders. There are similar functions in the wic engine, but these are focused in

[OE-core] [PATCHv2 3/6] wic: Allow to use a custom config for bootloaders

2015-12-01 Thread mariano . lopez
From: Mariano Lopez This change will allow to use a user defined file as the configuration for the bootloaders (grub, gummiboot, syslinux). The config file is defined in the wks file with the "configfile" option in the bootloader line. [YOCTO #8728] Signed-off-by: Mariano Lopez --

[OE-core] [PATCHv2 0/6] wic: Allow to user defined files as config for bootloaders

2015-12-01 Thread mariano . lopez
From: Mariano Lopez These patches add a new option for the bootloaders. This new option allows to use a custom configuration file as the bootloader config with the "configfile" variable in the bootloader line. This is very useful when there is need to create a multiboot image or whe

[OE-core] [PATCHv2 5/6] directdisk-bootloader-config.wks: Add example for custom bootloader config

2015-12-01 Thread mariano . lopez
From: Mariano Lopez Add new wks file as a example for a custom bootloader configuration. This change also includes the configuration that file that will be used. This example is using syslinux with MBR, the configuration file is almost the same as the one generated by wic. As stated before this

[OE-core] [PATCHv2 4/6] wic/help.py: Document the new option "configfile"

2015-12-01 Thread mariano . lopez
From: Mariano Lopez This just adds the "configfile" option for the bootloader to wic help. [YOCTO #8728] Signed-off-by: Mariano Lopez --- scripts/lib/wic/help.py | 6 ++ 1 file changed, 6 insertions(+) diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index 9a778b

Re: [OE-core] [oe] RFC: Reference updater filesystem

2015-12-03 Thread Mariano Lopez
2015 15:41:28 пользователь Mariano Lopez написал: 1. Use a separate partition for the configuration. a. The pro of this method is the partition is not touched during the update. b. The con of this method is the configuration is not directly in rootfs (example: /etc). That's the

[OE-core] [RFC] Mark of upstream CVE patches

2015-12-15 Thread Mariano Lopez
output of this discussion is a standard format for CVE patches that most, if not all, of community members agree on. Please let me know your comments. Cheers, Mariano Lopez -- ___ Openembedded-core mailing list Openembedded-core@lists.openem

Re: [OE-core] [RFC] Mark of upstream CVE patches

2015-12-15 Thread Mariano Lopez
On 12/15/2015 11:13 AM, Richard Purdie wrote: On Tue, 2015-12-15 at 11:49 -0500, Philip Balister wrote: On 12/15/2015 11:37 AM, Richard Purdie wrote: On Tue, 2015-12-15 at 11:30 -0500, Philip Balister wrote: I also suggest copying the https://lists.yoctoproject.org/listinfo/yocto-security

[OE-core] [PATCH 1/1] rpmresolve.c: Fix unfreed pointers that keep DB opened

2015-12-29 Thread mariano . lopez
From: Mariano Lopez There are some unfreed rpmmi pointers in printDepList() function; this happens when the package have null as the requirement. This patch fixes these unfreed pointers and add small changes to keep consistency with some variables. [YOCTO #8028] Signed-off-by: Mariano Lopez

[OE-core] [PATCH 0/1] rpmresolve.c: Fix unfreed pointers that keep DB opened

2015-12-29 Thread mariano . lopez
From: Mariano Lopez When rpmresolve is used, it keeps the DB opened because of unfreed pointers. This patch solve this issue. [YOCTO #8028] The following changes since commit 2cd061a29a94fdcdfec86732e6bcbb71c12c4afc: bluez5: include the patch only for 5.36 (2015-12-28 13:02:11 +) are

[OE-core] [PATCH 0/1] Rebuild when WICVARS change

2015-12-30 Thread mariano . lopez
From: Mariano Lopez This patch adds these WICVARS to vardeps of do_rootfs when a wic image is build. This will trigger a rebuild when a variable needed by WIC changes. The following changes since commit 2cd061a29a94fdcdfec86732e6bcbb71c12c4afc: bluez5: include the patch only for 5.36 (2015

[OE-core] [PATCH 1/1] image_types.bbclass: Rebuild when WICVARS change

2015-12-30 Thread mariano . lopez
From: Mariano Lopez The procces to do a wic image is to save a file with variables required by wic and then call wic using this file. Because this is external to bitbake if the vars change, the image won't be rebuild; an example of such is IMAGE_BOOT_FILES. This patch adds these variabl

Re: [OE-core] [RFC] Mark of upstream CVE patches

2016-01-04 Thread Mariano Lopez
On 12/16/2015 03:21 AM, Burton, Ross wrote: On 16 December 2015 at 09:03, Sona Sarmadi > wrote: We are supposed to have reference to the CVE identifier both in the patch file/s and the commit message(e.g. xxx- CVE-2013-6435.pacth) according to

[OE-core] [PATCH 2/4] lib/oe/utils: Add function format_pkg_list()

2016-01-07 Thread mariano . lopez
From: Mariano Lopez The class PkgsList returns a dictionary with all the installed packages, because the data structure is a dictionary there is needed to format the data in order to write to a file. The function format_pkg_list returns a formated sting with all packages installed. The output

[OE-core] [PATCH 1/4] lib/oe/package_manager: Add list_pkgs() to PkgsList class

2016-01-07 Thread mariano . lopez
From: Mariano Lopez Currently the class PkgList returns a formated string of the installed packages. It would be more clean to pass a standard data structure to the callers instead to format the output inside PkgsList class. This patch adds list_pkgs() method to PkgsList class to get the all

[OE-core] [PATCH 0/4] Clean PkgsList return data implementation.

2016-01-07 Thread mariano . lopez
From: Mariano Lopez Currently the when calling the list() from the classes that inherit from PKgsList, it must pass the format required and it will return a formated string listing all the packages installed. Retruning such string is not the best data structure to manipulate in the callers

[OE-core] [PATCH 3/4] lib/oe/rootfs: Use list_pkgs() instead of list()

2016-01-07 Thread mariano . lopez
From: Mariano Lopez This patch changes the use list_pkgs() instead of list() from class RpmPkgsList. The change is in two functions, image_list_installed_packages from rootfs.py and sdk_list_installed_packages from sdk.py. With this change the functions calling the functions listed above, must

[OE-core] [PATCH 4/4] lib/oe/package_manager.py: Remove list() from PkgsList class

2016-01-07 Thread mariano . lopez
From: Mariano Lopez Now that the method list() is not used anymore, remove it. [YOCTO #7427] Signed-off-by: Mariano Lopez --- meta/lib/oe/package_manager.py | 153 - 1 file changed, 153 deletions(-) diff --git a/meta/lib/oe/package_manager.py b/meta

Re: [OE-core] [oe] [RFC] Mark of upstream CVE patches

2016-01-08 Thread Mariano Lopez
On 01/04/2016 02:17 PM, Benjamin Esquivel wrote: On Mon, 2016-01-04 at 12:25 -0600, Mariano Lopez wrote: On 12/16/2015 03:21 AM, Burton, Ross wrote: On 16 December 2015 at 09:03, Sona Sarmadi mailto:sona.sarm...@enea.com>> wrote: We are supposed to have reference to the CVE iden

[OE-core] [PATCH 1/1] Add "CVE:" tag to current patches in OE-core

2016-01-08 Thread mariano . lopez
From: Mariano Lopez The currnet patches in OE-core doesn't have the "CVE:" tag, now part of the policy of the patches. This is patch add this tag to several patches. There might be patches that I miss; the tag can be added in the future. Signed-off-by: Mariano Lopez --- ...

Re: [OE-core] [PATCH 3/4] lib/oe/rootfs: Use list_pkgs() instead of list()

2016-01-11 Thread Mariano Lopez
t;: From: Mariano Lopez mailto:mariano.lo...@linux.intel.com>> This patch changes the use list_pkgs() instead of list() from class RpmPkgsList. The change is in two functions, image_list_installed_packages from rootfs.py and sdk_list_installed_packages from sdk.py.

[OE-core] [PATCHv2 0/4] Clean PkgsList return data implementation.

2016-01-13 Thread mariano . lopez
From: Mariano Lopez Currently the when calling the list() from the classes that inherit from PKgsList, it must pass the format required and it will return a formated string listing all the packages installed. Retruning such string is not the best data structure to manipulate in the callers

[OE-core] [PATCHv2 2/4] lib/oe/utils: Add function format_pkg_list()

2016-01-13 Thread mariano . lopez
From: Mariano Lopez The class PkgsList returns a dictionary with all the installed packages, because the data structure is a dictionary there is needed to format the data in order to write to a file. The function format_pkg_list returns a formated sting with all packages installed. The output

[OE-core] [PATCHv2 3/4] lib/oe/rootfs: Use list_pkgs() instead of list()

2016-01-13 Thread mariano . lopez
From: Mariano Lopez This patch changes the use list_pkgs() instead of list() from class RpmPkgsList. The change is in two functions, image_list_installed_packages from rootfs.py and sdk_list_installed_packages from sdk.py. With this change the functions calling the functions listed above, must

[OE-core] [PATCHv2 4/4] lib/oe/package_manager.py: Remove list() from PkgsList class

2016-01-13 Thread mariano . lopez
From: Mariano Lopez Now that the method list() is not used anymore, remove it. [YOCTO #7427] Signed-off-by: Mariano Lopez --- meta/lib/oe/package_manager.py | 153 - 1 file changed, 153 deletions(-) diff --git a/meta/lib/oe/package_manager.py b/meta

[OE-core] [PATCHv2 1/4] lib/oe/package_manager: Add list_pkgs() to PkgsList class

2016-01-13 Thread mariano . lopez
From: Mariano Lopez Currently the class PkgList returns a formated string of the installed packages. It would be more clean to pass a standard data structure to the callers instead to format the output inside PkgsList class. This patch adds list_pkgs() method to PkgsList class to get the all

[OE-core] [PATCHv3 0/4] Clean PkgsList return data implementation.

2016-01-18 Thread mariano . lopez
From: Mariano Lopez Currently the when calling the list() from the classes that inherit from PKgsList, it must pass the format required and it will return a formated string listing all the packages installed. Retruning such string is not the best data structure to manipulate in the callers

[OE-core] [PATCHv3 1/4] lib/oe/package_manager: Add list_pkgs() to PkgsList class

2016-01-18 Thread mariano . lopez
From: Mariano Lopez Currently the class PkgList returns a formated string of the installed packages. It would be more clean to pass a standard data structure to the callers instead to format the output inside PkgsList class. This patch adds list_pkgs() method to PkgsList class to get the all

[OE-core] [PATCHv3 4/4] lib/oe/package_manager.py: Remove list() from PkgsList class

2016-01-18 Thread mariano . lopez
From: Mariano Lopez Now that the method list() is not used anymore, remove it. [YOCTO #7427] Signed-off-by: Mariano Lopez --- meta/lib/oe/package_manager.py | 153 - 1 file changed, 153 deletions(-) diff --git a/meta/lib/oe/package_manager.py b/meta

  1   2   3   4   >