Skip to content

Commit a217ace

Browse files
author
Alex J Lennon
committed
ci: fix BitBake dependency for yocto-check-layer validation
Add missing BitBake repository clone and environment setup: - Clone BitBake 2.8 branch (matches scarthgap release) - Set PYTHONPATH and PATH for BitBake before oe-init-build-env - This resolves the error: 'The bitbake directory does not exist!' The oe-init-build-env script requires BitBake to be available in the environment for proper yocto-check-layer validation to work.
1 parent 8eac861 commit a217ace

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/kas-build-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ jobs:
9494
echo "📦 Cloning essential repositories..."
9595
git clone --depth 1 --branch scarthgap https://github.com/openembedded/openembedded-core.git layers/openembedded-core
9696
git clone --depth 1 --branch scarthgap https://github.com/openembedded/meta-openembedded.git layers/meta-openembedded
97+
git clone --depth 1 --branch 2.8 https://github.com/openembedded/bitbake.git layers/bitbake
9798
9899
# Create minimal build environment
99100
mkdir -p build/conf
@@ -115,6 +116,8 @@ jobs:
115116
echo 'EXTRA_IMAGE_FEATURES = "debug-tweaks"' >> conf/local.conf
116117
117118
# Initialize BitBake environment
119+
export PYTHONPATH="../layers/bitbake/lib:$PYTHONPATH"
120+
export PATH="../layers/bitbake/bin:$PATH"
118121
source ../layers/openembedded-core/oe-init-build-env .
119122
120123
# Find yocto-check-layer script

0 commit comments

Comments
 (0)