rootfs folder in yocto
Asked Answered
D

2

8

I have been using buildroot till now and recently switched to Yocto. In buildroot, the root file system is present in the "target" folder. What is the location of the root file system in Yocto. I know it will be in "build/tmp" folder and it is not "sysroots" folder.

Correct me If I am wrong.

Thanks for your time

Diophantus answered 27/3, 2018 at 12:48 Comment(0)
S
8

Since Honister (Yocto 3.4/BitBake 1.52), you can use bitbake-getvar instead of bitbake -e | grep .... Replace $target with your image name (e.g. core-image-minimal):

# Get variable name, value and history:
bitbake-getvar -r $target IMAGE_ROOTFS

# Get just the value:
bitbake-getvar -r $target --value IMAGE_ROOTFS

The last example is especially nice for scripting:

cd "$(bitbake-getvar -r $target --value IMAGE_ROOTFS)"
Seigniorage answered 7/2, 2023 at 17:44 Comment(0)
E
21

You can find it with the following command:

bitbake -e <image> | grep ^IMAGE_ROOTFS=

Englert answered 27/3, 2018 at 13:25 Comment(0)
S
8

Since Honister (Yocto 3.4/BitBake 1.52), you can use bitbake-getvar instead of bitbake -e | grep .... Replace $target with your image name (e.g. core-image-minimal):

# Get variable name, value and history:
bitbake-getvar -r $target IMAGE_ROOTFS

# Get just the value:
bitbake-getvar -r $target --value IMAGE_ROOTFS

The last example is especially nice for scripting:

cd "$(bitbake-getvar -r $target --value IMAGE_ROOTFS)"
Seigniorage answered 7/2, 2023 at 17:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.