Skip to contentSkip to conversation

Howto read bitbake -g files?

yocto Mauro Ziliani 2 participants 3 messages Mar 25, 2021 – Mar 26, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

An example about my question

Inside package-depends.dot I see this
"opencv-dev" [label="opencv-dev(opencv) :3.1+gitAUTOINC+92387b1ef8-r0\n/Sources/softfx/krogoth/sources/meta-openembedded/meta-oe/recipes-support/opencv/opencv_3.1.bb"] I need to remote opencv-dev from final image.
In pn-depends.dot I see
"opencv" -> "opencv-dev" [style=dashed]
I understand that
opencv generates opencv-dev from the recipe opencv_3.1.bb

Sent from Mailspring (https://getmailspring.com/), the best free email app for work

Quoted 16 lines · Mauro Ziliani

Hi all

I have to look for the recipes put in my image the *-dev packages.
I removed dev-pkgs and dng-pkgs from IMAGE_FEATURES and debug tweaks from DISTRO_FEATURES. I don't IMAGE_INSTALL_append any *-dev packages

I generate bitbake -g image, but I don't produce the PDF because is unreadable. So I read the dot source. I use dot and I know the syntax.
But I don't how to read the graph.

MZ

Sent from Mailspring (https://getmailspring.com/), the best free email app for work

#2 lore raw
Quoted 11 lines · Mauro Ziliani

An example about my question

Inside package-depends.dot I see this

"opencv-dev" [label="opencv-dev(opencv) :3.1+gitAUTOINC+92387b1ef8-r0\n/Sources/softfx/krogoth/sources/meta-openembedded/meta-oe/recipes-support/opencv/opencv_3.1.bb"]

I need to remote opencv-dev from final image.

In pn-depends.dot I see

"opencv" -> "opencv-dev" [style=dashed]

this should only happen if opencv-dev has a .so which is not a symlink
and there is a program in opencv package which depends on it. Can you expand the content of opencv-dev and see whats in there ? secondly you can also look at content of opencv package and readelf -d over the binaries in it and see if some binary is dependent on .so from -dev package.

you can do this inside opencv build tree under packages-split/ area. of a built tree.

Quoted 37 lines

I understand that
opencv generates opencv-dev from the recipe opencv_3.1.bb

Sent from Mailspring <https://getmailspring.com/>, the best free email app for work On mar 25 2021, at 8:39 am, Mauro Ziliani <[email protected]> wrote:

Hi all

I have to look for the recipes put in my image the *-dev packages.

I removed dev-pkgs and dng-pkgs from IMAGE_FEATURES and debug tweaks from DISTRO_FEATURES.
I don't IMAGE_INSTALL_append any *-dev packages

I generate bitbake  -g image, but I don't produce the PDF because is unreadable.

So I read the dot source. I use dot and I know the syntax.

But I don't how to read the graph.

MZ

Sent from Mailspring <https://getmailspring.com/>, the best free email app for work

#3 lore raw

Thank you for the answer.
I analyze the problem.

opencv_3.1.bb installs many debug packages by PACKAGES variable
Removing unneeded packages for PACKAGES every *-dev packages disappears from production image. MZ

Quoted 65 lines · Khem Raj
Quoted 4 lines · Mauro Ziliani

An example about my question

Inside package-depends.dot I see this

Quoted 8 lines

"opencv-dev" [label="opencv-dev(opencv) :3.1+gitAUTOINC+92387b1ef8-r0\n/Sources/softfx/krogoth/sources/meta-openembedded/meta-oe/recipes-support/opencv/opencv_3.1.bb"]

I need to remote opencv-dev from final image.

In pn-depends.dot I see

"opencv" -> "opencv-dev" [style=dashed]

this should only happen if opencv-dev has a .so which is not a symlink and there is a program in opencv package which depends on it. Can you expand the content of opencv-dev and see whats in there ? secondly you can also look at content of opencv package and readelf -d over the binaries in it and see if some binary is dependent on .so from -dev package.

you can do this inside opencv build tree under packages-split/ area. of a built tree.

Quoted 38 lines

I understand that
opencv generates opencv-dev from the recipe opencv_3.1.bb

Sent from Mailspring <https://getmailspring.com/>, the best free email app for work
On mar 25 2021, at 8:39 am, Mauro Ziliani <[email protected]> wrote:

Hi all

I have to look for the recipes put in my image the *-dev packages.

I removed dev-pkgs and dng-pkgs from IMAGE_FEATURES and debug tweaks from DISTRO_FEATURES.
I don't IMAGE_INSTALL_append any *-dev packages

I generate bitbake -g image, but I don't produce the PDF because is unreadable.

So I read the dot source. I use dot and I know the syntax.

But I don't how to read the graph.

MZ

Sent from Mailspring <https://getmailspring.com/>, the best free email app for work