Closed Charlie9830 closed 3 years ago
Hi @Charlie9830
Are you following the steps in the readme?
Raspberry PI 3/4 (aarch64)
export MACHINE=raspberrypi4-64
or
export MACHINE=raspberrypi3-64
mkdir rpi_yocto && cd rpi_yocto
repo init -u https://github.com/jwinarske/manifests.git -m rpi64.xml -b dunfell
repo sync -j20
source ./setup-environment $MACHINE
bitbake-layers add-layer ../sources/meta-clang ../sources/meta-flutter
echo -e 'FLUTTER_CHANNEL = "dev"' >> conf/local.conf
echo -e 'IMAGE_INSTALL_append = " flutter-pi"' >> conf/local.conf
echo -e 'IMAGE_INSTALL_append = " flutter-gallery"' >> conf/local.conf
bitbake core-image-minimal
Hi Joel, I was lacking in some of my own knowledge of Yocto and Bitbake, specifically Variable contexts and where they can be declared, Package recipes vs Image Recipes vs Distro recipes etc.
I have fixed the issue now. Thankyou, closing this now.
Hi @jwinarske.
Firstly thank you for the work you have put into this repo. I am relatively new to Yocto, I have been building a solution based off your work here for the past few weeks. Up until now the majority of my configuration exists within local.conf, adding my own recipes and building using
bitbake core-image-base
.It's come to a point where I want to make my own image recipe based off
core-image-base
. And move most of the config out of local.conf before things get to unmanageable.Broadly speaking, I created my a new layer with an image recipe that pulls in core-image-base via require. Moved a lot of the specific configuration (originally from this repo) into that recipe, adjusted references to
CORE-IMAGE-EXTRA
etc, removed references to the specific configuration details from local.conf and rebuilt using the custom image recipe. However the flutter-pi and sony embedder build tasks fail with cmake unable to locatelibsystemd
.It however works if the specific config is instead inside local.conf and I build using
bitbake core-image-base
.Below I have included the custom image recipe, the original working local.conf and finally the build output from bitbake when trying to build from the custom image recipe.
Does anything stand out to you that would be causing the build failure?
Custom Image Recipe
Original Working local.conf
Output from
bitbake cb-image-dev
(Custom Image recipe)