Skip to content

Commit 76cff2a

Browse files
author
Alex J Lennon
committed
Fix BitBake distro configuration for CI testing
- Ensure lmp.conf is available in global distro path for distro configs - Add proper fallback handling for meta-lmp layer setup - Copy lmp.conf to build/conf/distro/ so 'require conf/distro/lmp.conf' works - Add debugging output for layer structure verification - Fix distro dependency resolution for yocto-check-layer This resolves the BitBake parsing error where lmp-dynamicdevices.conf couldn't find the required lmp.conf file.
1 parent 9b0e7fa commit 76cff2a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/distro-layer-validation.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ jobs:
117117
118118
# Create minimal meta-lmp-base if meta-lmp clone failed
119119
if [ ! -d "build/layers/meta-lmp" ]; then
120+
echo "Creating fallback meta-lmp-base layer..."
120121
mkdir -p build/layers/meta-lmp-base/conf
121122
cat > build/layers/meta-lmp-base/conf/layer.conf << 'EOF'
122123
BBPATH .= ":${LAYERDIR}"
@@ -138,6 +139,8 @@ jobs:
138139
DISTRO_FEATURES:remove = "sysvinit"
139140
VIRTUAL-RUNTIME_init_manager = "systemd"
140141
EOF
142+
else
143+
echo "Using real meta-lmp layer"
141144
fi
142145
143146
- name: Validate Distro Layer Structure
@@ -268,6 +271,14 @@ jobs:
268271
SSTATE_DIR ?= "\${TOPDIR}/sstate-cache"
269272
EOF
270273
274+
# Ensure lmp.conf is available in the global distro path for our distro configs
275+
mkdir -p build/conf/distro
276+
if [ -f "build/layers/meta-lmp/meta-lmp-base/conf/distro/lmp.conf" ]; then
277+
cp build/layers/meta-lmp/meta-lmp-base/conf/distro/lmp.conf build/conf/distro/
278+
elif [ -f "build/layers/meta-lmp-base/conf/distro/lmp.conf" ]; then
279+
cp build/layers/meta-lmp-base/conf/distro/lmp.conf build/conf/distro/
280+
fi
281+
271282
# Test BitBake environment first
272283
cd build
273284
echo "Testing BitBake environment..."

0 commit comments

Comments
 (0)