image
dependencies into a task-depends.dot
file:bitbake -g <image>
task-depends.dot
for the package you are interested in (i.e. which packages are pulling in llvm
):cat task-depends.dot | grep llvm | grep populate
Note: it is not always obvious what is the final value of any given Yocto variable, since they can be overwritten from different layers. It is therefore highly recommended to check the value with bitbake-getvar
.
bitbake-getvar -r <image> <variable>
i.e. bitbake-getvar -r lmp-devel-arduino-image USERADD_GID_TABLES
.
bitbake
This is i.e. necessary when building the x8h7 kernel modules which are a dependency of meta-partner-arduino.
conf/auto.conf
(vim conf/auto.conf
)# Extra options that can be changed by the user
-INHERIT += "rm_work"
-INHERIT += "buildstats buildstats-summary"
-INHERIT += "buildhistory"
-BUILDHISTORY_COMMIT = "1"
+#INHERIT += "rm_work"
+#INHERIT += "buildstats buildstats-summary"
+#INHERIT += "buildhistory"
+#BUILDHISTORY_COMMIT = "1"
bitbake x8h7 -c do_cleansstate && bitbake x8h7
find . -maxdepth 4 -name x8h7
) within build folder (i.e. build-lmp-base
)#build-lmp-base$ find . -maxdepth 4 -name x8h7
./deploy/licenses/x8h7
./tmp-lmp_base/work/portenta_x8-lmp-linux/x8h7
./tmp-lmp_base/log/cleanlogs/x8h7
./tmp-lmp_base/pkgdata/portenta-x8/x8h7
./tmp-lmp_base/sysroots-components/portenta_x8/x8h7
./tmp-lmp_base/stamps/portenta_x8-lmp-linux/x8h7
./buildhistory/packages/portenta_x8-lmp-linux/x8h7
The x8h7 kernel module source files can be found here: build-lmp-base/tmp-lmp_base/work/portenta_x8-lmp-linux/x8h7/0.1-r1/git
and can be locally edited there.
bitbake -c do_compile
(force the compilation or configure with the modifications you just did in WORKDIR) (and withouth -c do_cleansstate
)bitbake -c do_compile -f x8h7 && bitbake -c do_install x8h7
The compiled kernel modules can be found here: build-lmp-base/tmp-lmp_base/work/portenta_x8-lmp-linux/x8h7/0.1-r1/image/usr/lib/modules/6.1.24-lmp-standard/extra
.