Re: [yocto] questions about writing a recipe

2012-11-16 Thread Jerrod Peach
On Fri, Nov 16, 2012 at 12:33 AM, Joshua Immanuel  wrote:

> Hello Liu,
>
> On Fri, 2012-11-16 at 11:06 +0800, Liu wrote:
> > I'm writing a recipe and come up with a question.I want to invoke
> > the the workdir of package A in my recipe of package B. I tried to use
> > the variable WORKDIR,but it represent for the workdir of B in the
> > recipe of package B. So is there any good ideas about this ?
>
> IMHO, depending on files from another package's workdir is a bad idea.
>
>
I agree with this -- it's not a good idea to depend on files from another
package's workdir.  If you're needing headers or libraries, you should be
installing those headers or objects to the sysroot and then getting them
from there.

Kind regards,

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


Re: [yocto] Virtual machine images from yocto developer day

2012-11-16 Thread Scott Garman

On 11/15/2012 10:57 AM, William Mills wrote:

Is it possible to get the vdi-files or appliances (which ever it was)
used for the labs? It would save some valuable time when doing labs
with
beginners here at work.

Best regards
/Fredrik Hugosson


Which labs? For the intro labs, the computers were running Linux
natively. I
took some notes on how I set up those machines I can send you
off-list if
you'd like - let me know.

Things *should* just work if you're using a recent release of Ubuntu,
Fedora, or OpenSUSE and follow the setup instructions in our Quick Start
Guide:

https://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html


Just a side note that I should have materials available on the website
by the end of this week


I would encourage the presenters to share the setup instructions also so
that some one can follow the course ware.  Some of the steps in the labs
assume setup has been done.


I'm all for sharing the info so that this training material can scale as 
much as possible. Looking over the notes I took, they were mostly about 
how to set up the desktop environment for the lab computers. I do intend 
to improve that to include further details about the actual build 
environment setup.


I'm taking my last bit of vacation time for the year starting today and 
will be back on Nov 26th, so I've added an item to my todo list and will 
get back to this eventually.


Scott

--
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Slides from the Yocto Developer Day

2012-11-16 Thread Scott Garman

On 11/15/2012 03:14 PM, Trevor Woerner wrote:

Thank you.

These are interesting slides. As I was not able to attend the sessions
in Barcelona, I decided to "follow along at home" with the information
posted in this thread.

The slides pdf (ypdd_2012_barcelona_intro_hands_on_lab.pdf) describes
the first line of the contents of the
meta-ypdd/recipes-ypdd/images/ypdd-image.bb  as
follows:

IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} \
${POKY_EXTRA_INSTALL} psplash dropbear"

The _worksheets.pdf modifies it as follows:

IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} \
${CORE_IMAGE_EXTRA_INSTALL} psplash dropbear"


I tried both variations using both today's latest HEAD and denzil-7.0.1.
Neither variation worked in either release.

If anyone else is following along, I was able to get the latest HEAD to
work with the following first line:

IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} \
${CORE_IMAGE_EXTRA_INSTALL} psplash dropbear"

For me "latest HEAD" is defined as:

Build Configuration:
BB_VERSION= "1.16.0"
TARGET_ARCH   = "i586"
TARGET_OS = "linux"
MACHINE   = "qemux86"
DISTRO= "poky"
DISTRO_VERSION= "1.3+snapshot-20121115"
TUNE_FEATURES = "m32 i586"
TARGET_FPU= ""
meta
meta-yocto
meta-yocto-bsp= "master:9e0d3c0faa9cc80ce8f2ce0eb31dcd20ef875955"
meta-ypdd = ":"

denzil-7.0.1 never worked for me in any way. At best it would fail with
some obscure perl problem:

| ERROR: Function failed: do_configure (see
/home/trevor/devel/yocto/denzil-7.0.1/ypdd/tmp/work/x86_64-linux/openssl-native-1.0.0i-r0.2/temp/log.do_configure.30074
for further information)
| Can't locate find.pl  in @INC (@INC contains:
/usr/lib/perl5/site_perl/5.16.0/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.16.0
/usr/lib/perl5/vendor_perl/5.16.0/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.16.0
/usr/lib/perl5/5.16.0/x86_64-linux-thread-multi /usr/lib/perl5/5.16.0
/usr/lib/perl5/site_perl/5.16.0/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.16.0 /usr/lib/perl5/site_perl .) at
perlpath.pl  line 7.
NOTE: package openssl-native-1.0.0i-r0.2: task do_configure: Failed


The CORE_IMAGE_EXTRA_INSTALL issue must have been a typo I carried 
forward from when the labs were done with the edison release. As for the 
openssl-native failure, I'm not sure, but I'm guessing this may be due 
to a host contamination issue that wasn't triggered with the host OS 
setup we had for the lab computers.


Scott

--
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Slides from the Yocto Developer Day

2012-11-16 Thread Trevor Woerner
Okay, thanks for the comments.

I also want to highlight the change from "task-core-boot" to
"packagegroup-core-boot" for anyone wanting to try these steps on the
latest (although I'm not sure which string denzil prefers).
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Using vendo kernel with Yocto

2012-11-16 Thread João Henrique Freitas
Hello, just a report

As my vendor never will release patch to a recent kernel and our
applications needs some recent fetures found in a recent kernel. I decided
to make the patchs by myself.

I missed one week reading datasheet, git log, studying the old
implementation made by Mindspeed  and so on.

Now the kernel 3.4.18 boot and runs in our board using yocto 1.3. Of course
I have learned a lot of things.

Maybe some adjusts will be need to do. However I am very happy to track
Yocto project with Mindspeed hardware. This is going to speedup the release
cicles and  tools of our products.

Thanks.




>
>
>> Have you contacted the vendor to see if they can provide an updated patch?
>>
>>
> Yes, I contacted they. They said that the kernel is 2.6.22.19 and did not
> have plans to upgrade it.
>
>
>
-- 
---
João Henrique Freitas - joaohf_at_gmail.com
Campinas-SP-Brasil
BSD051283
LPI 1
http://www.joaohfreitas.eti.br
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto