[yocto] do_fetch_append: syntax error

2019-10-01 Thread Damien LEFEVRE
Hi,

I have the following bbappend

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += " \
file://tegra186_cti_defconfig \
"

do_fetch_append(){
mv ${WORKDIR}/tegra186_cti_defconfig ${WORKDIR}/defconfig
}

For this I get an error:
  File "autogenerated", line 3
mv ${WORKDIR}/tegra186_cti_defconfig ${WORKDIR}/defconfig
  ^
SyntaxError: invalid syntax

Can someone explain why? I get the same in do_fetch_append. Starts working
with do_configure_append but that's too late in case of rebuild.

Thanks,
-Damien
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] RPI Kernel compile error (meta-raspberrypi)

2019-10-01 Thread Łukasz Michalski

Hi,

I am trying to bitbake meta-raspberrypi image from current warrior branch:

Build Configuration:
BB_VERSION   = "1.42.0"
BUILD_SYS= "x86_64-linux"
NATIVELSBSTRING  = "universal"
TARGET_SYS   = "arm-poky-linux-gnueabi"
MACHINE  = "raspberrypi3"
DISTRO   = "poky"
DISTRO_VERSION   = "2.7.1"
TUNE_FEATURES= "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"
TARGET_FPU   = "hard"
meta
meta-poky
meta-yocto-bsp   = "warrior:6d2e12e79211b31cdf5ea824fb9a8be54ba9a9eb"
meta-oe
meta-python
meta-networking  = "warrior:3bdbf72e3a4bf18a4a2c7afbde4f7ab773aeded9"
meta-raspberrypi = "warrior:0750d5d2bc9596f35d5d61bb0ff657be4b02bfdc"

Kernel compilation fails with this error:

| make[3]: *** No rule to make target 
'arch/arm/boot/dts/overlays/hifiberry-dacplusdsp.dtbo'.  Stop.
| make[2]: *** [arch/arm/Makefile:345: overlays/hifiberry-dacplusdsp.dtbo] 
Error 2
| make[1]: *** [Makefile:146: sub-make] Error 2
| make: *** [Makefile:24: __sub-make] Error 2
| ERROR: oe_runmake failed
| WARNING: 
/home/zork/data/yocto-wallscreen-build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1_4.19.71+gitAUTOINC+13ce09db83-r0/temp/run.do_compile.26619:1
 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at 
/home/zork/data/yocto-wallscreen-build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1_4.19.71+gitAUTOINC+13ce09db83-r0/temp/log.do_compile.26619)
ERROR: Task 
(/home/zork/sources/homehq/yocto/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.19.bb:do_compile)
 failed with exit code '1'

I checked BUILD_DIR/work-shared/rasbperrypi3/kernel-source and there is no such 
file:
[zork@serenity arm]$ ls -l boot/dts/overlays/hifiberry-*
-rw-r--r-- 1 zork users  575 Sep 30 20:12 
boot/dts/overlays/hifiberry-amp-overlay.dts
-rw-r--r-- 1 zork users  490 Sep 30 20:12 
boot/dts/overlays/hifiberry-dac-overlay.dts
-rw-r--r-- 1 zork users 1260 Sep 30 20:12 
boot/dts/overlays/hifiberry-dacplusadc-overlay.dts
-rw-r--r-- 1 zork users 1198 Sep 30 20:12 
boot/dts/overlays/hifiberry-dacplusadcpro-overlay.dts
-rw-r--r-- 1 zork users 1050 Sep 30 20:12 
boot/dts/overlays/hifiberry-dacplus-overlay.dts
-rw-r--r-- 1 zork users  639 Sep 30 20:12 
boot/dts/overlays/hifiberry-digi-overlay.dts
-rw-r--r-- 1 zork users  705 Sep 30 20:12 
boot/dts/overlays/hifiberry-digi-pro-overlay.dts

bitbake checked kernel sources version:

[zork@serenity arm]$ cd 
yocto-wallscreen-build/tmp/work-shared/raspberrypi3/kernel-source
[zork@serenity arm]$ git status
On branch rpi-4.19.y
Your branch is behind 'origin/rpi-4.19.y' by 413 commits, and can be 
fast-forwarded.

[zork@serenity arm]$ git rev-parse HEAD
13ce09db830e0c2fe524460b0673afb974359bc2

So it seems that bitbake checked out old version of rpi-4.19.y branch. In this 
version there is no hifiberry-dacplusdsp overlay.

I am new to yocto/bitbake and kernel recipe is a complicated one. Anyone can 
help me fix this error?

Thanks,
Łukasz
--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] do_fetch_append: syntax error

2019-10-01 Thread Nicolas Dechesne
On Tue, Oct 1, 2019 at 10:36 AM Damien LEFEVRE  wrote:
>
> Hi,
>
> I have the following bbappend
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> SRC_URI += " \
> file://tegra186_cti_defconfig \
> "
>
> do_fetch_append(){
> mv ${WORKDIR}/tegra186_cti_defconfig ${WORKDIR}/defconfig
> }
>
> For this I get an error:
>   File "autogenerated", line 3
> mv ${WORKDIR}/tegra186_cti_defconfig ${WORKDIR}/defconfig
>   ^
> SyntaxError: invalid syntax
>
> Can someone explain why? I get the same in do_fetch_append. Starts working 
> with do_configure_append but that's too late in case of rebuild.

do_fetch is a Python function, not a shell function. See
meta/classes/base.bbclass

you can use do_configure_prepend() if you need to do something
*before* the actual do_configure.

>
> Thanks,
> -Damien
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] do_fetch_append: syntax error

2019-10-01 Thread Martin Jansa
On Tue, Oct 01, 2019 at 11:35:21AM +0300, Damien LEFEVRE wrote:
> Hi,
> 
> I have the following bbappend
> 
> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> SRC_URI += " \
> file://tegra186_cti_defconfig \
> "
> 
> do_fetch_append(){
> mv ${WORKDIR}/tegra186_cti_defconfig ${WORKDIR}/defconfig
> }
> 
> For this I get an error:
>   File "autogenerated", line 3
> mv ${WORKDIR}/tegra186_cti_defconfig ${WORKDIR}/defconfig
>   ^
> SyntaxError: invalid syntax
> 
> Can someone explain why? I get the same in do_fetch_append. Starts working
> with do_configure_append but that's too late in case of rebuild.

do_fetch is python task, you cannot append shell code to it.

-- 
Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com


signature.asc
Description: Digital signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Cannot use "LICENSE_CREATE_PACKAGE = 1" when building the image with mdns

2019-10-01 Thread Stefano Cappa
Hi thank you for the answer.

In my rootfs I have this nsswitch.conf:
---
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: compat
group:  compat
shadow: compat

hosts:  files myhostname  mdns dns
networks:   files

protocols:  db files
services:   db files
ethers: db files
rpc:db files

netgroup:   nis
---

I'm not familiar with this file.
Also changing "hosts: files myhostname  mdns dns" to "hosts: files
mdns4_minimal [NOTFOUND=return] dns" (copied from a raspberry pi 3) I'm
still having the same problem.

What should I change to fix this issue?


Il lun 30 set 2019, 22:45 Khem Raj  ha scritto:

>
>
> On 9/30/19 8:17 AM, Stefano Cappa wrote:
> > I saw your last patch to upgrade mdns, so I'm sending this email also to
> > you to try to get help.
> >
> > mdns is working correctly, however, when I try to build my image with
> > "LICENSE_CREATE_PACKAGE = "1"" in my local.conf as described
> > here
> https://www.yoctoproject.org/docs/2.8/dev-manual/dev-manual.html#providing-license-text
>  I
> > get this error message:
> >
> > ERROR: mydevice-image-1.0-r0 do_rootfs: Postinstall scriptlets of
> > ['mdns'] have failed. If the intention is to defer them to first boot,
> > then please place them into pkg_postinst_ontarget_${PN} ().
> > Deferring to first boot via 'exit 1' is no longer supported.
> > Details of the failure are in
> >
> /home/user/git/poky/build/tmp/work/mydevice1-image-poky-linux-gnueabi/mydevice-image/1.0-r0/temp/log.do_rootfs.
> > ERROR: mydevice-image-1.0-r0 do_rootfs: Function failed: do_rootfs
> > ERROR: Logfile of failure stored in:
> >
> /home/user/git/poky/build/tmp/work/mydevice1-poky-linux-gnueabi/mydevice-image/1.0-r0/temp/log.do_rootfs.14586
> > ERROR: Task (MY CUSTOM LAYER
> > PATH/recipes-core/images/mydevice-image.bb:do_rootfs) failed with exit
> > code '1'
> > NOTE: Tasks Summary: Attempted 4871 tasks of which 4654 didn't need to
> > be rerun and 1 failed.
> >
> > Do you have a solution? Why is it happening?
> >
>
> see mdns recipe especially
>
> pkg_postinst_${PN} (), that function is not able to execute offline
> during build. It could be that nsswitch.conf does not exist in your
> image rootfs
>
> > thank u.
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] do_fetch_append: syntax error

2019-10-01 Thread Damien LEFEVRE
OK understood!

I'll find another way.

Thanks,
-Damien

On Tue, Oct 1, 2019 at 12:13 PM Martin Jansa  wrote:

> On Tue, Oct 01, 2019 at 11:35:21AM +0300, Damien LEFEVRE wrote:
> > Hi,
> >
> > I have the following bbappend
> >
> > FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> > SRC_URI += " \
> > file://tegra186_cti_defconfig \
> > "
> >
> > do_fetch_append(){
> > mv ${WORKDIR}/tegra186_cti_defconfig ${WORKDIR}/defconfig
> > }
> >
> > For this I get an error:
> >   File "autogenerated", line 3
> > mv ${WORKDIR}/tegra186_cti_defconfig ${WORKDIR}/defconfig
> >   ^
> > SyntaxError: invalid syntax
> >
> > Can someone explain why? I get the same in do_fetch_append. Starts
> working
> > with do_configure_append but that's too late in case of rebuild.
>
> do_fetch is python task, you cannot append shell code to it.
>
> --
> Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] QtCreator, CMake, fsl-imx-x11 toolchain

2019-10-01 Thread Mauro Ziliani

Hi all.

Maybe this is a post I have already sent.

I'm working with

imx6dlsabresd,  yocto krogoth/jetro, QtCreator, 
fsl-imx-x11-glibc-meta-toolchan-qt4



I configured qtcreator with a kit for this tool chain using gcc g++ and 
from the meta-toolchain package.



If I try to run cmake to generate the project cmake fails because it 
cannot found /lib/ld-linux-armhf.so.3.


This file i in 
/opt/fsl-imx-x11/4.1.15-2.0.1/sysroots/cortexa9fh-neon-poky-linux/lib



Cmake anche make try to find it in /lib


Why?


MZ


-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Yocto Project Status WW40’19

2019-10-01 Thread Stephen K Jolley
Current Dev Position: YP 2.8 M4 Feature Freeze

Next Deadline: YP 3.0 Final Release 25th Oct

SWAT Team Rotation:

   -

   SWAT lead is currently: Armin
   -

   SWAT team rotation: Armin -> Chen on Oct. 4, 2019
   -

   SWAT team rotation: Chen -> Anuj on Oct. 11, 2019
   -

   https://wiki.yoctoproject.org/wiki/Yocto_Build_Failure_Swat_Team


Next Team Meetings:

   -

   Bug Triage meeting Thursday Oct. 3rd at 7:30am PDT (
   https://zoom.us/j/454367603)
   -

   Monthly Project Meeting Tuesday Oct. 1st at 8am PDT (
   https://zoom.us/j/990892712) 
   -

   Weekly Engineering Sync Tuesday Oct. 8th at 8am PDT (
   https://zoom.us/j/990892712) 
   -

   Twitch - Next event is Tuesday Octt. 8th at 8am PDT (
   https://www.twitch.tv/yocto_project)


Key Status/Updates:

   -

   We’re now in feature freeze in M4 for 3.0 and working on bug fixing for
   final release
   -

   We have a QA report for M3 and this is due for release this week
   -

   The known issues to be addressed before M4 rc1 is built:
   -

  Strace kernel timeout problems
  -

  Better solution for systemd hwdb timeout
  -

  Fixes for the lsb->altcfg release directory names
  -

  Fix for hashserv bitbake-selftest server shutdown issue
  -

  There is bitbake upgrade problem where an older OE-Core doesn’t work
  with a newer bitbake due to bb.build.FuncFailed being missing#
  -

   The aim is to build M4 rc1 this week if at all possible but it depends
   on the above issues being fixed (there are open high bugs for these)
   -

   A significant performance problem has been found on the autobuilder
   where some builds are scaling in time badly as the sstate cache grows,
   taking 12 hours or more in some cases. Unfortunately nobody seems motivated
   to help work on this kind of issue.
   -

   If anyone has any status items for the project they’d like to add to the
   weekly reports, please email Richard+Stephen.


Planned Releases for YP 3.0 {2.8}:

   -

   M3 Release this week.
   -

   M4 Cutoff 30th Sept - this will be YP 3.0.
   -

   YP 3.0 {2.8 (M4)} Final Release 25th Oct


Planned upcoming dot releases:

   -

   YP 2.7.2 (Warrior) is planned for after YP 3.0 release.
   -

   YP 2.6.4 (Thud) is planned for after YP 2.7.2  release.


Tracking Metrics:

   -

   WDD 2552 (last week 2505) (
   https://wiki.yoctoproject.org/charts/combo.html)
   -

   Poky Patch Metrics
   -

  Total patches found: 1440 (last week 1427)
  -

  Patches in the Pending State: 587 (41%) [last week 587 (41%)]


Key Status Links for YP:

https://wiki.yoctoproject.org/wiki/Yocto_Project_v2.8_Status

https://wiki.yoctoproject.org/wiki/Yocto_2.8_Schedule

https://wiki.yoctoproject.org/wiki/Yocto_2.8_Features

The Yocto Project’s technical governance is through its Technical Steering
Committee, more information is available at:

https://wiki.yoctoproject.org/wiki/TSC

The Status reports are now stored on the wiki at:
https://wiki.yoctoproject.org/wiki/Weekly_Status

[If anyone has suggestions for other information you’d like to see on this
weekly status update, let us know!]

-- 

Thanks,



*Stephen K. Jolley*

*Yocto Project Program Manager*

*7867 SW Bayberry Dr., Beaverton, OR 97007*

(*Cell*:(208) 244-4460

* *Email*: *s
jolley.yp...@gmail.com *
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [OE-core] OpenEmbedded Developer Meeting on Day 2 of Yocto Project Summit after ELCE

2019-10-01 Thread Jon Mason
T-shirts for OEDEM are happening.  If you plan on attending, please
add yourself to the list.  If you already are on the list, please
verify the size is correct.  Please use this size chart if there are
any questions or doubts:
https://www.customink.com/items/sizing/04600_lineup/standard.htm

I will be ordering in ~24 hours, to allow enough time for them to be
made and delivered to me prior to the event.  So, please sign-up ASAP!

Thanks,
Jon

FAQ:
Q: Can I get one?
A: If you are coming, yes.  If you are not coming, only if there are
extras and you arrange for someone present to transport it to you.

Q: Who is paying for it?
A: Arm is paying for it and there will be a logo somewhere on the shirt


On Mon, Sep 16, 2019 at 12:38 PM Philip Balister  wrote:
>
> Boy that is a mouthful. The date is November 1 2019 in Lyon, France.
>
> On day 2 of the Yocto Project Summit after the Embedded Linux
> Conference, we are hosting an OpenEmbedded Developer meeting. This
> meeting is part of an ongoing series of meetings held for OpenEmbedded
> developers and users to exchange information about the project's
> direction and to explain to developers problems people face in the real
> world.
>
> Please sign up here (attendance is capped at 40):
>
> https://www.openembedded.org/wiki/OEDEM_2019
>
> Please add ideas for topics also. (Also add your T-shirt size after your
> name, no promises but the information might help us)
>
> More info and sign up information for the Yocto Project Summit is here:
>
> https://wiki.yoctoproject.org/wiki/Yocto_Project_Summit_2019
>
> Based on talk abstracts I've seen, Day 1 should be very interesting!
>
> Philip
>
> PS: For some historical perspective, here is the page from 2007:
> https://www.openembedded.org/wiki/Oedem2007
> --
> ___
> Openembedded-core mailing list
> openembedded-c...@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Monthly Technical call notes

2019-10-01 Thread Stephen K Jolley
See:
https://docs.google.com/document/d/1Y5IIuE-z0Ykdl-DwuzUJh52flOZuhN_TSAfw2tdU9pg/edit


-- 

Thanks,



*Stephen K. Jolley*

*Yocto Project Program Manager*

*7867 SW Bayberry Dr., Beaverton, OR 97007*

(*Cell*:(208) 244-4460

* *Email*: *s
jolley.yp...@gmail.com *
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] FYI: [RFC][PATCH 0/3] Move Rust support from meta-rust to oe-core

2019-10-01 Thread Randy MacLeod



I'd like to make people aware of a discussion on the oe-core email list
about adding Rust support to the oe-core layer.

If you are interested in helping to define requirements and
better still to work on adapting the meta-rust code so that it's
suitable for inclusion in oe-core, reply of this thread:

http://lists.openembedded.org/pipermail/openembedded-core/2019-September/287185.html

If you don't subscribe to oe-core, we can discuss issues on this
list since most people who subscribe to oe-core also subscribe to
this list.

--
# Randy MacLeod
# Wind River Linux
--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] QtCreator, CMake, fsl-imx-x11 toolchain

2019-10-01 Thread Sergei Nikulov
вт, 1 окт. 2019 г. в 16:19, Mauro Ziliani :
>
> Hi all.
>
> Maybe this is a post I have already sent.
>
> I'm working with
>
> imx6dlsabresd,  yocto krogoth/jetro, QtCreator, 
> fsl-imx-x11-glibc-meta-toolchan-qt4
>
>
> I configured qtcreator with a kit for this tool chain using gcc g++ and from 
> the meta-toolchain package.
>
>
> If I try to run cmake to generate the project cmake fails because it cannot 
> found /lib/ld-linux-armhf.so.3.
>
> This file i in 
> /opt/fsl-imx-x11/4.1.15-2.0.1/sysroots/cortexa9fh-neon-poky-linux/lib
>
>
> Cmake anche make try to find it in /lib
>
>
> Why?
>
>
> MZ
>
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

Not sure your question related to yocto project.

Try to read this
https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/CrossCompiling
and this https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html
first.

HTH.
-- 
Best Regards,
Sergey Nikulov
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [OE-core] Yocto Project Status WW40’19

2019-10-01 Thread Alexander Kanavin
On Tue, 1 Oct 2019 at 16:54, Stephen K Jolley 
wrote:

> A significant performance problem has been found on the autobuilder where
> some builds are scaling in time badly as the sstate cache grows, taking 12
> hours or more in some cases. Unfortunately nobody seems motivated to help
> work on this kind of issue.
>

Wait a moment, I believe there is a patch for this issue?
http://lists.openembedded.org/pipermail/openembedded-core/2019-September/287445.html

Alex
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [OE-core] Yocto Project Status WW40’19

2019-10-01 Thread richard . purdie
On Tue, 2019-10-01 at 21:16 +0200, Alexander Kanavin wrote:
> On Tue, 1 Oct 2019 at 16:54, Stephen K Jolley <
> sjolley.yp...@gmail.com> wrote:
> > A significant performance problem has been found on the autobuilder
> > where some builds are scaling in time badly as the sstate cache
> > grows, taking 12 hours or more in some cases. Unfortunately nobody
> > seems motivated to help work on this kind of issue.
> > 
> 
> Wait a moment, I believe there is a patch for this issue?
> http://lists.openembedded.org/pipermail/openembedded-core/2019-September/287445.html

Sorry, that was copied form last week and should have been updated but
I became distracted in completing the blockers list.

There is a patch and the plan is to test that on the autobuilder to
compare performance, I appreciate the patch!

Cheers,

Richard

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [layerindex-web][PATCH 0/3] More minor fixes [cover letter only]

2019-10-01 Thread Paul Eggleton
A few miscellaneous minor improvements from the Clear Linux Dissector.


The following changes since commit db51830ab238ed1a7ce33d43519c630b1c74c70b:

  update_classic_status: ensure fields are correctly ordered (2019-10-02 
14:13:47 +1300)

are available in the Git repository at:

  git://git.yoctoproject.org/layerindex-web paule/dissector-backports3
  
http://git.yoctoproject.org/cgit.cgi/layerindex-web/log/?h=paule/dissector-backports3

Paul Eggleton (3):
  README: add basic documentation on db backup and restore
  requirements.txt: update
  Add a space between text and glyphicons

 README | 17 +
 requirements.txt   | 21 ++---
 templates/layerindex/detail.html   |  2 +-
 templates/layerindex/recipedetail.html |  2 +-
 templates/layerindex/recipes.html  |  2 +-
 5 files changed, 30 insertions(+), 14 deletions(-)

-- 
2.20.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto