On Tue, Jun 16, 2020 at 11:08 AM Michael <[email protected]> wrote:
>
> __________________
>
> On Tue, Jun 16, 2020 at 10:02 AM Michael <[email protected]> wrote:
> >>
> >> Thank you for a quick respond Bruce.
> >>
> >>
> >> __________________
> >>
> >> On Mon, Jun 15, 2020 at 5:37 PM Michael <[email protected]> wrote:
> >> >>
> >> >> Hello all.
> >> >>
> >> >> I'm creating a yocto Warrior branch project to a fakeroot for powerpc 
> >> >> embedded system to replace my old non yocto project. I setup the yocto 
> >> >> project to use kernel 4.19.x. My old build used kernel 3.10.xx and hd 
> >> >> "./usr/lib/debug/lib/modules/<kernel>/vmlinux". However, my current 
> >> >> yocto build does not have the debug vmlinux file created. After doing 
> >> >> some digging, I found out that I missed kernel-debuginfo package. 
> >> >> However, I cannot find a recipe for kernel-debuginfo any where.
> >> >>
> >> >> Does any one know where I can find the recipe for kernel-debuginfo?
> >> >> Is the kernel-debuginfo obsolete already? If it is obsolete, is there a 
> >> >> way to enable yocto project to create 
> >> >> "./usr/lib/debug/lib/modules/<kernel>/vmlinux" file?
> >>
> >> >vmlinux is packaged in: ${KERNEL_PACKAGE_NAME}-vmlinux
> >>
> >> >And you'll find the file on target in /boot :
> >> >FILES_${KERNEL_PACKAGE_NAME}-vmlinux =
> >> >"/boot/vmlinux-${KERNEL_VERSION_NAME}"
> >>
> >> >So if you have kernel-vmlinux in your image install, you'll have
> >> >vmlinux available.
> >>
> >> >Bruce
> >>
> >> I do have the vmlinux-* in the /boot.  What I'm looking for is a debug 
> >> version that was created under /usr/lib/debug/lib/modules/<kernel>/ 
> >> directory with the old kernel.  Is there any thing in the recipe that I 
> >> can set to make that happen?
>
> >Nope. That's not how it is built and packaged in Yocto.
> >
> >But that file has the debug information, what exactly are you looking for ?
>
> >Bruce
>
> I am creating sdk->fakeroot from this yocto build to build my in house 
> embedded powerpc application.  And the embedded powerpc application build is 
> looking for this file in this specific path.  I could make a symbolic.  
> However, before I do that I just want to poke around to see if there is an 
> alternative within yocto setting to make this happen instead of making a 
> symbolic link.  It sounds like I might have to do that...
>
> One other question I have for you...  Is there a way to create 
> kernel-debuginfo and kernel-debuginfo-common from yocto build?
>

If you have your own kernel recipe, you can change the packaging by
appending do_install, and adding a new PACKAGE definition.

If it is a recipe in another layer, you can do the same thing by doing
a bbappend and changing the packaging.

i.e. you can install that file into the directory you want, add a new
PACKAGE name, define a FILES_ variable for it, and it will be
packaged.

I'm covering that quickly, since the Yocto manuals have a better
description of packaging (and this is standard packaging) then I can
ever do in this email :D

Bruce

>
>
>
>
> >
> > Thank you.
> >
> >
> > >
> > > Thanks in advance.
> > >
> > >
> > > Best Regards,
> > > Michael Y. Lim
> > >
> > > Office: 045/C-08
> > > Tie Line: 363-7244
> > > Phone: (512) 286-7244
> > > email: [email protected]
> > >
> > >
> >
> >
> >
> > --
> > - Thou shalt not follow the NULL pointer, for chaos and madness await
> > thee at its end
> > - "Use the force Harry" - Gandalf, Star Trek II
> >
> >
> >
> >
>
>
>
> --
> - Thou shalt not follow the NULL pointer, for chaos and madness await
> thee at its end
> - "Use the force Harry" - Gandalf, Star Trek II
>
>
>
> 



-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8756): 
https://lists.yoctoproject.org/g/linux-yocto/message/8756
Mute This Topic: https://lists.yoctoproject.org/mt/74904720/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to