Re: [OE-core] [PATCH V2 1/8] populate_sdk_ext.bbclass: break the long lines

2016-12-14 Thread Ulf Magnusson
ild_env_path} > $target_sdk_dir >> $LOGFILE && \ > + python $target_sdk_dir/ext-sdk-prepare.py $LOGFILE > '${SDK_INSTALL_TARGETS}'" > + if [ $? -ne ]; then > + echo "printf 'ERROR: this SDK was not fully installed > and needs reinstalling\n'" >> $env_setup_script > + exit 1 > + rm $target_sdk_dir/ext-sdk-prepare.py Unreachable code. > + fi > fi > echo done > } > -- > 2.10.2 > > -- > ___ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core Cheers, Ulf -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

Re: [OE-core] migrating simple tarballs over to OE recipes?

2016-11-23 Thread Ulf Magnusson
; > rday bin_package.bbclass might be useful as well, especially if the files are already arranged like in the rootfs inside the tarballs. Cheers, Ulf -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

[OE-core] [PATCH v2 1/1] package.bbclass: Remove unused variables and imports

2016-10-26 Thread Ulf Magnusson
Probably leftovers. Verified with a full core-image-sato build. For imports, I tried to find helper functions that might use an import from the parent function as well. Signed-off-by: Ulf Magnusson --- meta/classes/package.bbclass | 13 + 1 file changed, 1 insertion(+), 12 deletions

[OE-core] [PATCH v2 0/1] Remove unused variables and imports from package.bbclass

2016-10-26 Thread Ulf Magnusson
Changes since v1: Remove accidentally omitted 's' variable too. Ulf Magnusson (1): package.bbclass: Remove unused variables and imports meta/classes/package.bbclass | 13 + 1 file changed, 1 insertion(+), 12 deletions(-)

[OE-core] [PATCH 1/1] package.bbclass: Remove unused variables and imports

2016-10-26 Thread Ulf Magnusson
Probably leftovers. Verified with a full core-image-sato build. For imports, I tried to find helper functions that might use an import from the parent function as well. Signed-off-by: Ulf Magnusson --- meta/classes/package.bbclass | 11 --- 1 file changed, 11 deletions(-) diff --git a

Re: [OE-core] [PATCH v3] package.py: New EXTRA_STRIPFLAGS variable

2016-10-26 Thread Ulf Magnusson
" --remove-section=.comment --remove-section=.note" Another approach would be to use STRIPFLAGS and STRIPFLAGS_EXTRA_{MODULE,SO,EXE} variables with default values in metadata. Not sure if that's overengineering things for little benefit though. > >

Re: [OE-core] [PATCH v2] package.py: New EXTRA_STRIPFLAGS variable

2016-10-25 Thread Ulf Magnusson
On Tue, Oct 25, 2016 at 1:18 PM, Ulf Magnusson wrote: > On Tue, Oct 25, 2016 at 12:23 PM, Michael Blättler > wrote: >> The EXTRA_STRIPFLAGS variable can be used to pass additional parameters to >> the strip command. >> This can be used to remove additional sections or

Re: [OE-core] Howto find the providing recipe for a specific package?

2016-10-25 Thread Ulf Magnusson
g/docs/2.2/ref-manual/ref-manual.html#viewing-package-information-with-oe-pkgdata-util Cheers, Ulf -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

Re: [OE-core] [PATCH v2] package.py: New EXTRA_STRIPFLAGS variable

2016-10-25 Thread Ulf Magnusson
+= "--remove-section=.comment --remove-section=.note > --strip-unneeded" > # shared or executable: > elif elftype & 8 or elftype & 4: > -extraflags = "--remove-section=.comment --remove-section=.note" > +

Re: [OE-core] in what recipe context can "bb" show me TOOLCHAIN_HOST_TASK?

2016-10-22 Thread Ulf Magnusson
#x27;t: To see which recipes inherit a particular class (either directly or indirectly), you can use a command like the following one: $ bitbake-layers show-recipes -i populate_sdk_base The TOOLCHAIN_HOST_TASK and TOOLCHAIN_TARGET_TASK variables could use some more documentation.

[OE-core] [PATCH 1/1] task-time: Add simple buildstats analysis script

2016-10-21 Thread Ulf Magnusson
ompile: real 0m54.560s user 0m46.028s sys 0m2.772s 20161005225856/gettext-0.19.8.1-r0/do_compile: real 0m41.520s user 2m17.312s sys 0m7.536s Signed-off-by: Ulf Magnusson --- scripts/task-time | 132 ++ 1 file changed, 132 insertions(+)

[OE-core] [PATCH 0/1] Add 'task-time' buildstats helper script

2016-10-21 Thread Ulf Magnusson
If this goes in, I could also submit some documentation to the manuals. I suspect many people don't use the buildstats since getting useful information out of them is a bit of work. Ulf Magnusson (1): task-time: Add simple buildstats analysis script scripts/task-time

Re: [OE-core] Two kmeta's not allowed for master?

2016-10-18 Thread Ulf Magnusson
tfilter.scc" > +KERNEL_FEATURES_append += "cfg/net/netfilter.scc" Unrelated nit: += is never needed with _append (though an initial space would need to be added). See the note in http://www.yoctoproject.org/docs/2.2/bitbake-user-manual/bitbake-user-manual.html#override-style-operation-advantages. > > After this it seems to compile nicely with master. > > Thanks, > Vesa Jääskeläinen Cheers, Ulf -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

Re: [OE-core] [PATCH v2] bitbake: bitbake-layers: Make show-recipes show PR

2016-10-17 Thread Ulf Magnusson
On Mon, Oct 17, 2016 at 11:42 PM, Paul Eggleton wrote: > Hi Ulf, > > On Mon, 17 Oct 2016 20:30:27 Ulf Magnusson wrote: >> Only PE and PV were shown, which might have been an oversight. The >> tuples passed to version_str() contain three elements (PE, PV, and PR), >> n

[OE-core] [PATCH v2] bitbake: bitbake-layers: Make show-recipes show PR

2016-10-17 Thread Ulf Magnusson
Changes since v1: Remove now-redundant default 'pr' argument in QueryPlugin.version_str(). Ulf Magnusson (1): bitbake: bitbake-layers: Make show-recipes show PR bitbake/lib/bblayers/query.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[OE-core] [PATCH v2] bitbake: bitbake-layers: Make show-recipes show PR

2016-10-17 Thread Ulf Magnusson
Only PE and PV were shown, which might have been an oversight. The tuples passed to version_str() contain three elements (PE, PV, and PR), not two. Also remove now-redundant default 'pr' argument in QueryPlugin.version_str(). Signed-off-by: Ulf Magnusson --- bitbake/lib/bblayers/qu

[OE-core] [PATCH] bitbake: bitbake-layers: Make show-recipes show PR

2016-10-17 Thread Ulf Magnusson
Only PE and PV were shown, which might have been an oversight. The tuples passed to version_str() contain three elements (PE, PV, and PR), not two. Signed-off-by: Ulf Magnusson --- bitbake/lib/bblayers/query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitbake/lib

Re: [OE-core] [PATCH v2] scripts: add new script 'native'

2016-10-05 Thread Ulf Magnusson
an oe prefix. >> oe-native, oe-run-native, or oe-exec-native would work for me. > > Well, someone needs to send a patch, any volunteers? > > Cheers, > Paul Sent one (and caved in to peer pressure re. the prefix). Cheers, Ulf -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

[OE-core] [PATCH] scripts: Rename 'native' to 'oe-run-native'

2016-10-05 Thread Ulf Magnusson
Makes it a bit more descriptive and potentially more discoverable. Most people seemed to prefer an oe- prefix, so let's go with that. Signed-off-by: Ulf Magnusson --- scripts/{native => oe-run-native} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename scripts/{native => oe

Re: [OE-core] [PATCH 22/22] cmake: Use bb.fatal() instead of raising FuncFailed

2016-10-05 Thread Ulf Magnusson
On Thu, Oct 6, 2016 at 12:15 AM, Richard Purdie wrote: > On Wed, 2016-10-05 at 22:26 +0200, Ulf Magnusson wrote: >> On Sat, Oct 1, 2016 at 4:47 AM, Ulf Magnusson >> wrote: >> > >> > This sets a good example and avoids unnecessarily contributing to >> &

Re: [OE-core] [PATCH 22/22] cmake: Use bb.fatal() instead of raising FuncFailed

2016-10-05 Thread Ulf Magnusson
On Sat, Oct 1, 2016 at 4:47 AM, Ulf Magnusson wrote: > This sets a good example and avoids unnecessarily contributing to > perceived complexity and cargo culting. > > Motivating quote below: > > < kergoth> the *original* intent was for the function/task to error v

Re: [OE-core] [PATCH v2 1/2] classes/uboot-extlinux-config: Add class

2016-10-03 Thread Ulf Magnusson
On Tue, Oct 4, 2016 at 12:24 AM, Ulf Magnusson wrote: > On Tue, Oct 4, 2016 at 12:08 AM, Ulf Magnusson wrote: >> Hello, >> >> On Mon, Oct 3, 2016 at 2:17 PM, Fabio Berton >> wrote: >>> This class allow the extlinux.conf generation for U-Boot use. >>>

Re: [OE-core] [PATCH v2 1/2] classes/uboot-extlinux-config: Add class

2016-10-03 Thread Ulf Magnusson
On Tue, Oct 4, 2016 at 12:08 AM, Ulf Magnusson wrote: > Hello, > > On Mon, Oct 3, 2016 at 2:17 PM, Fabio Berton > wrote: >> This class allow the extlinux.conf generation for U-Boot use. >> The U-Boot support for it is given to allow the Generic Distribution >> Conf

Re: [OE-core] [PATCH v2 1/2] classes/uboot-extlinux-config: Add class

2016-10-03 Thread Ulf Magnusson
ription, kernel_image, fdtdir)) > +else: > +cfgfile.write('LABEL %s\n\tKERNEL %s\n' % (menu_description, > kernel_image)) > + > +kernel_args = localdata.getVar('UBOOT_EXTLINUX_KERNEL_ARGS', > True) > + > +initrd = localdata.getVar('UBOOT_EXTLINUX_INITRD', True) > +if initrd: > +cfgfile.write('\tINITRD %s\n'% initrd) > + > +kernel_args = root + " " + kernel_args > +cfgfile.write('\tAPPEND %s %s\n' % (kernel_args, > extlinux_console)) > + > +cfgfile.close() Using Python's 'with' syntax would be a better way to handle the file. That way, the file is guaranteed to be close()d immediately even if the function exits via bb.fatal(). It is possible to use 'with' even after opening the file by the way. Just do the following: with cfgfile: ... > +} > + > +do_install[prefuncs] += "create_extlinux_config" > -- > 2.1.4 > > -- I'm not familiar with the functionality itself, so hard to say anything constructive there. Cheers, Ulf -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

Re: [OE-core] [PATCH v2] scripts: add new script 'native'

2016-10-02 Thread Ulf Magnusson
On Sun, Oct 2, 2016 at 4:30 PM, Ulf Magnusson wrote: > On Sun, Oct 2, 2016 at 4:15 PM, Jérémy Rosen wrote: >> "native" might be a bit too generic... >> >> could I suggest oe_native-run or bitbake-native ? >> >> something that says it's yocto-ga

Re: [OE-core] [PATCH v2] scripts: add new script 'native'

2016-10-02 Thread Ulf Magnusson
n-native" if a prefix is added? That's consistent with the naming scheme used for many other scripts in scripts/ too. Cheers, Ulf > > > > On 30/09/2016 17:02, Ed Bartosh wrote: >> >> Added 'native' convenience shell script to run native tools.

[OE-core] [PATCH 16/22] chrpath.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/chrpath.bbclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/m

[OE-core] [PATCH 17/22] testsdk.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/testsdk.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m

[OE-core] [PATCH 21/22] testimage.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/testimage.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[OE-core] [PATCH 20/22] utility-tasks.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/utility-tasks.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[OE-core] [PATCH 18/22] libc-package.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/libc-package.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[OE-core] [PATCH 14/22] useradd.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/useradd.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m

[OE-core] [PATCH 19/22] package.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/package.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m

[OE-core] [PATCH 22/22] cmake: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/recipes-devtools/cmake/cmake_3.6.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[OE-core] [PATCH 15/22] sstate.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/sstate.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/

[OE-core] [PATCH 13/22] gtk-immodules-cache.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/gtk-immodules-cache.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

[OE-core] [PATCH 12/22] systemd.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/systemd.bbclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/m

[OE-core] [PATCH 09/22] gummiboot.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/gummiboot.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[OE-core] [PATCH 11/22] license.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/license.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[OE-core] [PATCH 10/22] update-rc.d.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/update-rc.d.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --gi

[OE-core] [PATCH 07/22] syslinux.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/syslinux.bbclass | 8 1 file changed, 4 insertions(+), 4 deletions(-)

[OE-core] [PATCH 08/22] systemd-boot.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/systemd-boot.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[OE-core] [PATCH 05/22] useradd-staticids.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/useradd-staticids.bbclass | 8 1 file changed, 4 insertions(+), 4 deletions(

[OE-core] [PATCH 06/22] grub-efi.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/grub-efi.bbclass | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[OE-core] [PATCH 04/22] package_rpm.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/package_rpm.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) di

[OE-core] [PATCH 02/22] package_ipk.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/package_ipk.bbclass | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) di

[OE-core] [PATCH 03/22] package_deb.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/package_deb.bbclass | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) di

[OE-core] [PATCH 01/22] base.bbclass: Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
raise it yourself FuncFailed.__init__ takes a 'name' argument rather than a 'msg' argument, which also shows that the original purpose got lost. Signed-off-by: Ulf Magnusson --- meta/classes/base.bbclass | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --g

[OE-core] [PATCH 00/22] Use bb.fatal() instead of raising FuncFailed

2016-09-30 Thread Ulf Magnusson
ROR: gettext-0.19.8.1-r0 do_fetch: Function failed: Fetcher failure for URL: 'http://ftp.gnu.org/gnu/gettext/gettext-0.19.8.1.tar.gz'. ... ERROR: Logfile of failure stored in: /home/ulf/poky/build/tmp/work/i586-poky-linux/gettext/0.19.8.1-r0/temp/log.do_fetch.19715 Here's what

Re: [OE-core] [PATCH 1/2] classes/uboot-extlinux-config: Add class

2016-09-30 Thread Ulf Magnusson
On Sat, Oct 1, 2016 at 12:54 AM, Ulf Magnusson wrote: > On Fri, Sep 30, 2016 at 10:33 PM, Fabio Berton > wrote: >> This class allow the extlinux.conf generation for U-Boot use. >> The U-Boot support for it is given to allow the Generic Distribution >> Configurat

Re: [OE-core] [PATCH 1/2] classes/uboot-extlinux-config: Add class

2016-09-30 Thread Ulf Magnusson
else: > +cfgfile.write('LABEL %s\n\tKERNEL %s\n' % (menu_description, > kernel_image)) > + > +kernel_args = localdata.getVar('UBOOT_EXTLINUX_KERNEL_ARGS', > True) > + > +initrd = localdata.getVar('UBOOT_EXTLINUX_INITRD', True) > +if initrd: > +cfgfile.write('\tINITRD %s\n'% initrd) > + > +kernel_args = root + " " + kernel_args > +cfgfile.write('\tAPPEND %s %s\n' % (kernel_args, > extlinux_console)) > + > +cfgfile.close() > +} > + > +do_install[prefuncs] += "create_extlinux_config" > -- > 2.1.4 > > -- Out of personal curiosity, when would 'raise bb.build.FuncFailed(msg)' be preferred over bb.fatal(msg)? Looking at the FuncFailed() constructor, it seems the argument was originally meant to be the name of the function, though no one seems to use it like that. It's still called 'name'. Cheers, Ulf -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

Re: [OE-core] [PATCH] e2fsprogs: add packageconfig for -file-

2016-09-19 Thread Ulf Magnusson
On Mon, Sep 19, 2016 at 7:00 AM, Ulf Magnusson wrote: > On Mon, Sep 19, 2016 at 5:42 AM, Robert Yang > wrote: >> >> >> On 09/19/2016 11:32 AM, Randy MacLeod wrote: >>> >>> On 2016-09-18 10:37 PM, Christopher Larson wrote: >>>> &g

Re: [OE-core] [PATCH] e2fsprogs: add packageconfig for -file-

2016-09-18 Thread Ulf Magnusson
ww.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#checking-for-missing-build-time-dependencies >> >> Ah right and now I see some uses where there would not be a >> package dependency required. >> >> I'll likely send a v2 adding just: >>PACKAGECONFIG ??= "fil

Re: [OE-core] [PATCH 2/2] package_manager.py: Change diagnostic messages per IRC

2016-09-15 Thread Ulf Magnusson
ed unless ALLOW_EMPTY_ = > '1' is used.)") > bb.warn(err_msg) > else: > new_pkgs.append(new_pkg) > -- > 2.5.5 > > -- > ___ > Openembedded-core mai

Re: [OE-core] [PATCH] bitbake: fetch2: Make SRCREV_FORMAT name substitution safer

2016-09-12 Thread Ulf Magnusson
On Mon, Sep 12, 2016 at 10:11 PM, Ulf Magnusson wrote: > Given two names "foo" and "foobar" and SRCREV_FORMAT = "foo_foobar", > "foo" might currently get substituted twice. Work around the issue by > sorting the list of names by length and substi

[OE-core] [PATCH] bitbake: fetch2: Make SRCREV_FORMAT name substitution safer

2016-09-12 Thread Ulf Magnusson
Given two names "foo" and "foobar" and SRCREV_FORMAT = "foo_foobar", "foo" might currently get substituted twice. Work around the issue by sorting the list of names by length and substituting longer names first. Signed-off-by: Ulf Magnusson --- bitbak

[OE-core] [PATCH v4 0/1] useradd.bbclass: Simplify target overrides

2016-08-23 Thread Ulf Magnusson
Changes since v3: Add Signed-off-by line. Changes since v2: Like SYSROOTFUNC, USERADDSETSCENEDEPS needs to be set to "" for non-target classes. Otherwise, "${USERADDSETSCENEDEPS}" will be kept unexpanded as is for those. Ulf Magnusson (1): useradd.bblass: Simplify tar

[OE-core] [PATCH v4 1/1] useradd.bblass: Simplify target overrides

2016-08-23 Thread Ulf Magnusson
The current style might be a leftover from when _class-target did not exist. Also change the assignment to SSTATECLEANFUNCS to an append, which makes more sense. useradd.bbclass is the only user of SSTATECLEANFUNCS as of writing, so it won't make any functional difference. Signed-off-by

[OE-core] [PATCH v3 1/1] useradd.bblass: Simplify target overrides

2016-08-23 Thread Ulf Magnusson
The current style might be a leftover from when _class-target did not exist. Also change the assignment to SSTATECLEANFUNCS to an append, which makes more sense. useradd.bbclass is the only user of SSTATECLEANFUNCS as of writing, so it won't make any functional difference. --- meta/classes/userad

[OE-core] [PATCH v3 0/1] useradd.bbclass: Simplify target overrides

2016-08-23 Thread Ulf Magnusson
Changes since v2: Like SYSROOTFUNC, USERADDSETSCENEDEPS needs to be set to "" for non-target classes. Otherwise, "${USERADDSETSCENEDEPS}" will be kept unexpanded as is for those. Ulf Magnusson (1): useradd.bblass: Simplify target overrides meta/classes/

Re: [OE-core] [PATCH] useradd.bblass: Simplify target overrides

2016-08-23 Thread Ulf Magnusson
On Tue, Aug 23, 2016 at 10:19 PM, Burton, Ross wrote: > > On 9 August 2016 at 02:48, Ulf Magnusson wrote: >> >> The current style might be a leftover from when _class-target did not >> exist. > > > Can you rebase and resend this please? It's a great patch

[OE-core] [PATCH v2] useradd.bblass: Simplify target overrides

2016-08-23 Thread Ulf Magnusson
The current style might be a leftover from when _class-target did not exist. Also change the assignment to SSTATECLEANFUNCS to an append, which makes more sense. useradd.bbclass is the only user of SSTATECLEANFUNCS as of writing, so it won't make any functional difference. --- meta/classes/userad

Re: [OE-core] Broken "bitbake -S printdiff" in current OE

2016-08-23 Thread Ulf Magnusson
; to work as advertised. They write a file locked-sigs.inc too, which seems to be undocumented. I relegated the bitbake -S documentation to the end of the new section and kept it as it was before. Cheers, Ulf -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

Re: [OE-core] subtle weirdness when you combine "_append" with "+="?

2016-08-17 Thread Ulf Magnusson
ble to me. Using _append rather than += can also be a bug in certain situations. For example, the following does not guarantee that " value1 value2" appears right after "--flag": FLAGS = "--flag" FLAGS_append = " value1" FLAGS_append = " value2"

Re: [OE-core] subtle weirdness when you combine "_append" with "+="?

2016-08-16 Thread Ulf Magnusson
On Tue, Aug 16, 2016 at 5:49 PM, Robert P. J. Day wrote: > On Tue, 16 Aug 2016, Ulf Magnusson wrote: > >> On Tue, Aug 16, 2016 at 4:02 PM, Robert P. J. Day >> wrote: >> > >> > was about to submit a small number of patches to clean up redundancy >

Re: [OE-core] subtle weirdness when you combine "_append" with "+="?

2016-08-16 Thread Ulf Magnusson
"DEPENDS_append_class-nativesdk", gets back the empty string, and adds a space followed by "flex-nativesdk" to that. The resulting " flex-nativesdk" is then interpreted as usual when the overrides are handled. You might like the note I added to https://www.yoct

[OE-core] [PATCH] useradd.bblass: Simplify target overrides

2016-08-08 Thread Ulf Magnusson
The current style might be a leftover from when _class-target did not exist. Also change the assignment to SSTATECLEANFUNCS to an append, which makes more sense. useradd.bbclass is the only user of SSTATECLEANFUNCS as of writing, so it won't make any functional difference. --- meta/classes/userad

Re: [OE-core] Build failures due to libtdb racing with libbsd

2016-04-13 Thread Ulf Magnusson
On Wed, Apr 13, 2016 at 11:34 AM, Burton, Ross wrote: > > On 13 April 2016 at 10:07, Ulf Magnusson wrote: >> >> The problem seems to be a race with building libbsd (and unlucky >> timing in my build). Adding libbsd to DEPENDS fixes the problem. >> >> F

Re: [OE-core] Build failures due to libtdb racing with libbsd

2016-04-13 Thread Ulf Magnusson
On Wed, Apr 13, 2016 at 11:07 AM, Ulf Magnusson wrote: > Hello, > > I get libtdb build failures like the following. The failing file > varies between runs. > > ERROR: oe_runmake failed > ERROR: Function failed: do_compile > Log data follows: > | DEBUG: Executing shell f

[OE-core] Build failures due to libtdb racing with libbsd

2016-04-13 Thread Ulf Magnusson
based on a configuration utility called Waf that I'm a complete noob on. Perhaps there is some way to disable libbsd support instead. Cheers, Ulf -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.opene

[OE-core] [PATCH] classes/packagegroup: Refactor code to be simpler

2016-04-01 Thread Ulf Magnusson
This was originally going to be a fix for ALLOW_EMPTY not being set on complementary package groups, but that was already fixed by d96ea299b3b5a44b1959 (classes/packagegroup: fix dbg/dev/ptest complementary packages). Since I also spent some time refactoring the code, I'll submit a patch (against

Re: [OE-core] Avoiding getting the login prompt on the LCD at boot

2014-07-03 Thread Ulf Samuelsson
2014-07-03 22:31, Burton, Ross skrev: On 3 July 2014 18:19, Ulf Samuelsson wrote: Between 2 and 3, I get an ugly login prompt. So something is chvt'ing away from psplash too early. Is the Qt application running on framebuffer, or Wayland, or X11, or what? Ross Running eglfs usin

[OE-core] Avoiding getting the login prompt on the LCD at boot

2014-07-03 Thread Ulf Samuelsson
FRAMEBUFFER_CONSOLE from the kernel build, but then I do not get a Boot LOGO. The screen is black, blinks and then psplash starts. Any ideas? Ulf Samuelsson -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http

Re: [OE-core] meta-toolchain-sdk LDFLAGS fails for ARMv7 (beagleboard)

2014-04-08 Thread Ulf Samuelsson
8 apr 2014 kl. 08:50 skrev Ulf Samuelsson : > Clearing LDFLAGS allows U-Boot to build. > > Now trying to build a busybox with static linking, but the SDK only provides > the lib.so > and not the lib.a static libraries. > > Any easy way to make it include both? F

Re: [OE-core] meta-toolchain-sdk LDFLAGS fails for ARMv7 (beagleboard)

2014-04-07 Thread Ulf Samuelsson
Clearing LDFLAGS allows U-Boot to build. Now trying to build a busybox with static linking, but the SDK only provides the lib.so and not the lib.a static libraries. Any easy way to make it include both? Best Regards Ulf Samuelsson 7 apr 2014 kl. 22:17 skrev Denys Dmytriyenko : > On

[OE-core] meta-toolchain-sdk LDFLAGS fails for ARMv7 (beagleboard)

2014-04-07 Thread Ulf Samuelsson
msize.o miiphyutil.o s_record.o splash.o stdio.o usb.o usb_hub.o usb_storage.o xyzModem.o arm-poky-linux-gnueabi-ld.bfd: unrecognized option '-Wl,-O1' arm-poky-linux-gnueabi-ld.bfd: use the --help option for usage information make[1]: *** [libcommon.o] Fel 1 make[1]: Lämnar katal

Re: [OE-core] [PATCH] local.conf.sample: Add automatic defaults for BB_NUMBER_THREADS and PARALLEL_MAKE

2014-02-03 Thread Ulf Samuelsson
1 feb 2014 kl. 10:21 skrev Mike Looijmans : > On 01/29/2014 01:56 PM, Richard Purdie wrote: >> On Wed, 2014-01-29 at 13:09 +0100, Ulf Samuelsson wrote: >>> We discussed this 2.3 months ago. >>> Did some studies on my dual hex-core machine (24 H/W treads) while >&g

Re: [OE-core] [PATCH] local.conf.sample: Add automatic defaults for BB_NUMBER_THREADS and PARALLEL_MAKE

2014-01-29 Thread Ulf Samuelsson
2014-01-29 13:56, Richard Purdie skrev: On Wed, 2014-01-29 at 13:09 +0100, Ulf Samuelsson wrote: We discussed this 2.3 months ago. Did some studies on my dual hex-core machine (24 H/W treads) while building a cloud9-gnome-image derivative. This did about 7500 tasks. Enabled the CPU supervisors

Re: [OE-core] [PATCH] local.conf.sample: Add automatic defaults for BB_NUMBER_THREADS and PARALLEL_MAKE

2014-01-29 Thread Ulf Samuelsson
t; for that part of the build. Got my build down to 83 minutes. Since I have 96 GB of RAM, I tried creating an 80 GB tmpfs for the build, and copied the download and the recipes to the ram. That shaved only 2 monutes from the build, and some stuff, still built using only a single CPU. BR Ulf Sa

Re: [OE-core] Can OE build it's own make?

2013-12-10 Thread Ulf Samuelsson
manually add synaptic, then add gnome + git + ssh keys. Then I download the script and let it run. Suggest you adopt a similar approach. Best Regards Ulf Samuelsson u...@emagii.com +46 (722) 427 437 10 dec 2013 kl. 17:36 skrev Mats Kärrman : > Hi, > > I have run into problems

Re: [OE-core] [PATCH v2] curlpp: add curl c++ bindings

2013-12-03 Thread Ulf Samuelsson
quite useful when you dont have a screen connected. Thinking of checking that in somewhere. Would meta-openembedded/meta-networking/recipes-support be OK? Best Regards Ulf Samuelsson u...@emagii.com 3 dec 2013 kl. 13:24 skrev Paul Eggleton : > Hi Ulf, > > On Monday 02 December 2013 1

[OE-core] [PATCH v2] curlpp: add curl c++ bindings

2013-12-02 Thread ulf
From: Ulf Samuelsson Signed-off-by: Ulf Samuelsson --- .../curlpp/curlpp/pkgconfig_fix.patch | 38 + meta/recipes-support/curlpp/curlpp_0.7.3.bb| 89 2 files changed, 127 insertions(+) create mode 100644 meta/recipes-support/curlpp/curlpp

[OE-core] [PATCH] curlpp: add curl c++ bindings

2013-12-02 Thread Ulf Samuelsson
Signed-off-by: Ulf Samuelsson --- .../curlpp/curlpp/pkgconfig_fix.patch | 38 + meta/recipes-support/curlpp/curlpp_0.7.3.bb| 90 2 files changed, 128 insertions(+) create mode 100644 meta/recipes-support/curlpp/curlpp/pkgconfig_fix.patch

Re: [OE-core] Improving Build Speed

2013-11-23 Thread Ulf Samuelsson
2013-11-21 14:53, Richard Purdie skrev: On Thu, 2013-11-21 at 09:04 +0100, Ulf Samuelsson wrote: Why restrict PARALLEL_MAKE to anything less than the number of H/W threads in the machine? Came up with a construct PARALLEL_HIGH which is defined alongside PARALLEL_MAKE in conf

Re: [OE-core] Improving Build Speed

2013-11-21 Thread Ulf Samuelsson
j12" PARALLEL_HIGH = "-j24" BB_NUMBER_THREADS = "24" real83m24.093s Second build PARALLEL_MAKE = "-j12" PARALLEL_HIGH = "-j12" BB_NUMBER_THREADS = "24" real85m12.007s BR Ulf Cheers, Richard ___

Re: [OE-core] Improving Build Speed

2013-11-20 Thread Ulf Samuelsson
2013-11-21 01:19, Martin Jansa skrev: On Wed, Nov 20, 2013 at 11:43:13PM +0100, Ulf Samuelsson wrote: 2013-11-20 22:29, Richard Purdie skrev: Another idea: I suspect that there is a lot of unpacking and patching of recipes for the target when the native stuff is built. Does it make sense to

Re: [OE-core] Improving Build Speed

2013-11-20 Thread Ulf Samuelsson
2013-11-20 22:29, Richard Purdie skrev: Hi Ulf, Nice to see someone else looking at this. I've shared some of my thoughts and observations below based on some of the work I've done trying to speed things up. On Wed, 2013-11-20 at 22:05 +0100, Ulf Samuelsson wrote: Finally got my

Re: [OE-core] FOSDEM 2014 Embedded dev room CFP

2013-11-20 Thread Ulf Samuelsson
which can be considered to be generic as open-source, maybe with the boost license or the MIT license. Then they can be used by other projects without license issues. Thinking of a title: Proprietary application, still benefiting open source. What do you guys think? Would it be appropriate to show

[OE-core] Improving Build Speed

2013-11-20 Thread Ulf Samuelsson
Finally got my new build machine running. so I thought I'd measure the performance vs the old machine Home Built Core i7-980X 6 core/12 threads @ 3,33GHz 12 GB RAM @ 1333 Mhz. WD Black 1 TB @ 7200 rpm Precision 7500 2 x (X5670 6 core 2,93 MHz) 2 x (24 GB RAM @ 1333 MHz)

Re: [OE-core] [Angstrom-devel] Mix of systemd version in Angstrom Master

2013-11-04 Thread Ulf Samuelsson
On 2013-11-04 01:01, Ulf Samuelsson wrote: Have built the Angstrom master for a Beaglebone. Trying to create a simple systemd service (non-forking). This fails to start. When I look into the systemd log (log_level=debug), there are references to "/org/freedesktop/systemd1" which does

[OE-core] Mix of systemd version in Angstrom Master

2013-11-03 Thread Ulf Samuelsson
quot; exist, which I believe is present in newer systemd's. The service uses the boost, curl, curlpp and thread libraries. Uses UDP and serial port for communication. I do not use D-Bus directly, but it seems to be related to D-Bus anyway. Anyone got a clue on how to proceed? BR Ulf Samuels

[OE-core] Mix of systemd version in Angstrom Master

2013-11-03 Thread Ulf Samuelsson80200++
quot; exist, which I believe is present in newer systemd's. The service uses the boost, curl, curlpp and thread libraries. Uses UDP and serial port for communication. I do not use D-Bus directly, but it seems to be related to D-Bus anyway. Anyone got a clue on how to proceed? BR Ulf Samuels

[OE-core] elfutils-native-0.148 does not build on Ubuntu-13.10

2013-10-28 Thread Ulf Samuelsson
elfutils-native-0.148-r11/elfutils-0.148/src' | make[1]: *** [all-recursive] Error 1 | make[1]: Leaving directory `/home2/Angstrom/build/tmp-angstrom_v2012_12-eglibc/work/i686-linux/elfutils-native-0.148-r11/elfutils-0.148' | make: *** [all] Error 2 | ERROR: oe_runmak

Re: [OE-core] Using the correct "xserver-xf86-config_0.1.bbappend

2013-10-21 Thread Ulf Samuelsson
On 2013-10-21 22:21, Khem Raj wrote: Ulf On Mon, Oct 21, 2013 at 9:30 AM, Ulf Samuelsson wrote: Trying to build a systemd-gnome-image raspberrypi under Angstrom, with a few extra layers. This fails on "xserver-xf86-config_0.1.[bb|bbappend]" The extra layer has BBPRIORITY

Re: [OE-core] Installing files in the /home/xxx directory

2013-10-21 Thread Ulf Samuelsson
On 2013-10-17 23:25, Ulf Samuelsson wrote: Would like to install some files in under the "/home" directory. A simplfied recipe looks like this: do_install () { install -d ${D}/${base_dir}/home/root install-m 0644${S}/my.conf ${D}/${base_dir}/home/root/my.conf } FILES

[OE-core] Using the correct "xserver-xf86-config_0.1.bbappend

2013-10-21 Thread Ulf Samuelsson
* * When I change to: *SRC_URI_append_raspberrypi = " file://xorg.conf.d/10-evdev.conf "* the raspberry pi version completes. /Wildcards are not allowed?/ -- Best Regards Ulf Samuelsson eMagii ___ Openembedded-core mailing list Openembedded-co

Re: [OE-core] [PATCH] Add tune for Cortex-A5 chips

2013-10-21 Thread Ulf Samuelsson
On 2013-10-21 13:17, Martin Jansa wrote: On Mon, Oct 21, 2013 at 10:59:57AM +0200, Ulf Samuelsson wrote: Signed-off-by: Ulf Samuelsson --- meta/conf/machine/include/tune-cortexa5.inc | 24 1 file changed, 24 insertions(+) create mode 100644 meta/conf/machine

[OE-core] [PATCH] Add tune for Cortex-A5 chips

2013-10-21 Thread Ulf Samuelsson
Signed-off-by: Ulf Samuelsson --- meta/conf/machine/include/tune-cortexa5.inc | 24 1 file changed, 24 insertions(+) create mode 100644 meta/conf/machine/include/tune-cortexa5.inc diff --git a/meta/conf/machine/include/tune-cortexa5.inc b/meta/conf/machine/include

Re: [OE-core] Issues with PREFERRED_VERSION/PREFERRED_PROVIDER for the kernel

2013-10-18 Thread Ulf Samuelsson
In some cases, you might want to override a few things in the DISTRO. Maybe an easy way to handle this would be if the DISTRO conf file included an empty file at the end, which can be overridden by a file in your own layer. Best Regards Ulf Samuelsson 18 okt 2013 kl. 18:31 skrev Koen Kooi

[OE-core] Issues with PREFERRED_VERSION/PREFERRED_PROVIDER for the kernel

2013-10-18 Thread Ulf Samuelsson
sage, but ignored? (4) If bitbake cannot find a recommended PROVIDER, and selects something else, why not use the PREFERRED_VERSION if it exists? BR Ulf Samuelsson ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

  1   2   >