[yocto] Morty Branch: Error in building core-image-sato | matchbox-panel recipe

2017-12-07 Thread Gunasekaran Srinivasan
Hi all, I am trying to build core-image-sato image with poky 2.2.2. I am getting following error in matchbox-panel recipe .. checking what language compliance flags to pass to the C c

Re: [yocto] [PATCH 10/12] upgradehelper.py: add --apply-failed option

2017-12-07 Thread Robert Yang
On 12/07/2017 09:05 PM, Alexander Kanavin wrote: On 12/07/2017 09:37 AM, Robert Yang wrote:    -f, --apply-failed    Apply failed patch in the repo after upgrade is done And add "FAILED:" in subject when failed. So that the user can go on working based on the commit. AUH will simple leave a

Re: [yocto] [PATCH 08/12] upgradehelper.py: clean repo only once when recipes are specified

2017-12-07 Thread Robert Yang
On 12/08/2017 09:43 AM, Robert Yang wrote: Hi Alexander, Thanks for the quick reply. On 12/07/2017 08:58 PM, Alexander Kanavin wrote: On 12/07/2017 09:37 AM, Robert Yang wrote: E.g.: $ upgradehelper.py less strace bash git The commit is removed when failed, and kept when succeed, but it wo

Re: [yocto] [PATCH 09/12] upgradehelper.py: use git user in commit when recipes are specified

2017-12-07 Thread Robert Yang
Hello, On 12/07/2017 09:02 PM, Alexander Kanavin wrote: On 12/07/2017 09:37 AM, Robert Yang wrote: E.g.,: $ upgradehelper.py less commit d9b551438037e105eebabbbcb2da6d8b8cae7504 Author: Robert Yang Date:   Wed Dec 6 16:38:55 2017 +0800 less: upgrade to 529 Signed-off-by: Robert Ya

Re: [yocto] [PATCH 08/12] upgradehelper.py: clean repo only once when recipes are specified

2017-12-07 Thread Robert Yang
Hi Alexander, Thanks for the quick reply. On 12/07/2017 08:58 PM, Alexander Kanavin wrote: On 12/07/2017 09:37 AM, Robert Yang wrote: E.g.: $ upgradehelper.py less strace bash git The commit is removed when failed, and kept when succeed, but it would be removed when next recipe runs, so only

Re: [yocto] [ptest-runner][PATCHv2 2/3] Add support to avoid load/run twice a run_ptest script

2017-12-07 Thread Anibal Limón
On Thu, Dec 7, 2017 at 5:42 PM, Aníbal Limón wrote: > From: Aníbal Limón > > In some ptest packages exists symlink in the ptest directory causing > to load/run twice the same ptest, > > For example in perl5: > > /usr/lib/perl -> /usr/lib/perl5 > > Signed-off-by: Aníbal Limón > --- > ptest_list

[yocto] [ptest-runner][PATCHv2 3/3] README.md: Update to my current email

2017-12-07 Thread Aníbal Limón
From: Aníbal Limón Signed-off-by: Aníbal Limón --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fedab04..22b36a4 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ $ mtrace ./ptest-runner $(MALLOC_TRACE) For contribute please

[yocto] [ptest-runner][PATCHv2 2/3] Add support to avoid load/run twice a run_ptest script

2017-12-07 Thread Aníbal Limón
From: Aníbal Limón In some ptest packages exists symlink in the ptest directory causing to load/run twice the same ptest, For example in perl5: /usr/lib/perl -> /usr/lib/perl5 Signed-off-by: Aníbal Limón --- ptest_list.c | 40 ptest_list.h

[yocto] [ptest-runner][PATCHv2 1/3] Makefile: libcheck now requires to link subunit

2017-12-07 Thread Aníbal Limón
From: Aníbal Limón Signed-off-by: Aníbal Limón --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 434b89f..1bde7be 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ TEST_SOURCES=tests/main.c tests/ptest_list.c tests/utils.c $(BASE_SO

Re: [yocto] [ptest-runner 3/3] README.md: Update to my current email

2017-12-07 Thread Anibal Limón
On Thu, Dec 7, 2017 at 4:00 PM, Joshua Lock wrote: > > > On 07/12/17 18:51, Aníbal Limón wrote: > >> From: Aníbal Limón >> >> Signed-off-by: Aníbal Limón >> --- >> README.md | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/README.md b/README.md >> index fedab04..22

Re: [yocto] [ptest-runner 3/3] README.md: Update to my current email

2017-12-07 Thread Joshua Lock
On 07/12/17 18:51, Aníbal Limón wrote: From: Aníbal Limón Signed-off-by: Aníbal Limón --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fedab04..22b36a4 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ $ mtrace ./ptest-ru

Re: [yocto] Good example of bbclass customization? maintainer

2017-12-07 Thread Darcy Watkins
On Thu, 2017-12-07 at 11:08 -0600, Marcelo E. Magallon wrote: --snip!-- > My concern right now is a *different* case, where your goal is to modify > the class in order to affect all the recipes already inheriting from it. > For example, where there's a modification to a function in the class. > > I

Re: [yocto] Preventing a variable from being cached

2017-12-07 Thread Alexander Kanavin
On 12/07/2017 10:30 PM, Paul Knopf wrote: Use a SRC_URI for another recip? Let me show you my recipe. SUMMARY = "Puts a file in the image that contains the application version." DESCRIPTION = "Puts a file in the image that contains the application version." Openembedded isn't really designed

Re: [yocto] Preventing a variable from being cached

2017-12-07 Thread Paul Knopf
Use a SRC_URI for another recip? Let me show you my recipe. SUMMARY = "Puts a file in the image that contains the application version." DESCRIPTION = "Puts a file in the image that contains the application version." LICENSE = "Proprietary" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-l

Re: [yocto] Preventing a variable from being cached

2017-12-07 Thread Alexander Kanavin
On 12/07/2017 10:22 PM, Paul Knopf wrote: I have all my meta-layers and build conf files checked into a single repository (submodules for layers). I want a recipe to look at the git repository, and place a file in the build. I'd like this repository to read the HEAD, and decide if it needs to b

Re: [yocto] Preventing a variable from being cached

2017-12-07 Thread Paul Knopf
If I add whitespace to the recipe, it works. It will read the new BUILD_GIT_POSITION and trigger commands to be re-run if it was changed. How do I make it so that a recipe file is never cached, and reparsed? Parsing is fine, since it BUILD_GIT_POSITION doesn't change, the commands do_compile don't

Re: [yocto] Preventing a variable from being cached

2017-12-07 Thread Paul Knopf
I have all my meta-layers and build conf files checked into a single repository (submodules for layers). I want a recipe to look at the git repository, and place a file in the build. I'd like this repository to read the HEAD, and decide if it needs to be rebuilt (to put new file in image) based off

Re: [yocto] Good example of bbclass customization? maintainer

2017-12-07 Thread Alexander Kanavin
On 12/07/2017 07:08 PM, Marcelo E. Magallon wrote: My concern right now is a *different* case, where your goal is to modify the class in order to affect all the recipes already inheriting from it. For example, where there's a modification to a function in the class. Is there a good example out t

[yocto] Good example of bbclass customization? maintainer

2017-12-07 Thread Marcelo E. Magallon
Hi, I'm in the process of cleaning up our usage of Yocto with the goal of improving longer-term maintainability, basically implementing something like this: http://events.linuxfoundation.org/sites/events/files/slides/Yocto-upgrades-ELC-2017.pdf Right now I'm looking at several .bbclass files whi

Re: [yocto] Preventing a variable from being cached

2017-12-07 Thread Alexander Kanavin
On 12/07/2017 05:47 PM, Paul Knopf wrote: I take it that this is not possible? A recipe will rebuild if you change SRCREV or SRC_URI in it. What are you trying to do? Alex -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.

Re: [yocto] Preventing a variable from being cached

2017-12-07 Thread Paul Knopf
I take it that this is not possible? On Mon, Dec 4, 2017 at 5:15 PM, Paul Knopf wrote: > I have a variable that has a dynamic value that is set from python. > > --- > def get_git_position(d): > import bb.process > (output, error) = bb.process.run("git rev-parse --abbr

Re: [yocto] Allowing a local command to be executed in a recipe.

2017-12-07 Thread Paul Knopf
This command is very complicated to setup. It is easier for us to use it via the "whitelist" method. This isn't being done in a layer that will be released, otherwise I would. This is internal use only. What is the method to whitelist a host command? On Wed, Dec 6, 2017 at 1:27 PM, Alexander Kan

Re: [yocto] [PATCH 10/12] upgradehelper.py: add --apply-failed option

2017-12-07 Thread Alexander Kanavin
On 12/07/2017 09:37 AM, Robert Yang wrote: -f, --apply-failedApply failed patch in the repo after upgrade is done And add "FAILED:" in subject when failed. So that the user can go on working based on the commit. AUH will simple leave all commits in the repo, succeessful and failed. Eve

Re: [yocto] [PATCH 09/12] upgradehelper.py: use git user in commit when recipes are specified

2017-12-07 Thread Alexander Kanavin
On 12/07/2017 09:37 AM, Robert Yang wrote: E.g.,: $ upgradehelper.py less commit d9b551438037e105eebabbbcb2da6d8b8cae7504 Author: Robert Yang Date: Wed Dec 6 16:38:55 2017 +0800 less: upgrade to 529 Signed-off-by: Robert Yang I'm not sure about this one. Commits shouldn't be cr

Re: [yocto] [PATCH 08/12] upgradehelper.py: clean repo only once when recipes are specified

2017-12-07 Thread Alexander Kanavin
On 12/07/2017 09:37 AM, Robert Yang wrote: E.g.: $ upgradehelper.py less strace bash git The commit is removed when failed, and kept when succeed, but it would be removed when next recipe runs, so only run clean_repo once can keep the commit, which is helpful for the user. I have removed the l

Re: [yocto] [PATCH 05/12] modules/steps.py: fix warn when skip compilation

2017-12-07 Thread Alexander Kanavin
On 12/07/2017 09:37 AM, Robert Yang wrote: try: I(" %s: Upgrading to %s" % (pkg_ctx['PN'], pkg_ctx['NPV'])) for step, msg in upgrade_steps: +if step == compile and self.args.skip_compilation: +W(" %s: Sk

Re: [yocto] Q: Kernel SCC files: shouldn't a changed patch trigger a rebuild?

2017-12-07 Thread Bruce Ashfield
On Wed, Dec 6, 2017 at 6:46 PM, Erwin Rieger wrote: > > Hello list, > > i have written a kernel recipe derived from linux-yocto-custom. The > SRC_URI includes a SCC file that in turn includes a kernel patch. > > First of all, this works as expected, the patch is applied to the kernel > source and

Re: [yocto] [PATCH 00/12] [auh] make it easy to use by recipe maintainer

2017-12-07 Thread Alexander Kanavin
On 12/07/2017 09:37 AM, Robert Yang wrote: Robert Yang (12): upgradehelper.py: fix checking for do_checkpkg upgradehelper.py: support upgrade multiple recipes upgradehelper.py: use UniverseUpdater for all cases modules/steps.py: fix warn when skip compilation modules/steps.py: fix