Wind River Support Network

HomeDefectsLIN1022-1894
Fixed

LIN1022-1894 : linux-yocto-rt_%.bbappend should not use ${AUTOREV}

Created: Sep 26, 2022    Updated: Nov 1, 2022
Resolved Date: Sep 28, 2022
Previous ID: LIN1021-4448
Found In Version: 10.22.33.1
Fix Version: 10.22.33.2
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: Build & Config

Description

linux-yocto-rt_%.bbappend should not use SRCREV_meta = "${AUTOREV}" since this is known to cause issues in environments that prevent network access. 

https://docs.yoctoproject.org/dev-manual/common-tasks.html#replicating-a-build-offline

"The offline build does not work if recipes attempt to find the latest version of software by setting SRCREV to ${AUTOREV}:"

In a build with no network connection and without premirrors or otherwise locally downloaded data, running yocto-check-layer script would fail because of SRCREV_meta = "${AUTOREV}" in linux-yocto-rt_%.bbappend attempts to checkout from git://git.yoctoproject.org/yocto-kernel-cache

Log with reported error attached. Log with error from customer also attached.

Workaround

Comment SRCREV_meta = "${AUTOREV}" from linux-yocto-rt_%.bbappend

Steps to Reproduce

1. Clone and setup FRESH project (BSP not relevant)
git clone --branch WRLINUX_10_21_LTS https://gateway.delivers.windriver.com/git/linux-lts/release/wrlinux-lts.21/WRLinux-lts-21-Core/wrlinux-x
./wrlinux-x/setup.sh --machines=marvell-cn106xx --accept-eula=yes

2. Set the environment and build directory, we'll use a basic conf:
./environment-setup-x86_64-wrlinuxsdk-linux
TEMPLATECONF=meta/conf/ source ./oe-init-build-env layer-check

3. Add to conf/local.conf:
BB_NO_NETWORK = '1'
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"
DISTRO ??= "nodistro"

4. Back to prj_dir
cd ..

5. Run yocto-layer-check script, make sure to always use the above created build directory (layer-check):
TEMPLATECONF=meta/conf/ source ./oe-init-build-env layer-check && \
../scripts/yocto-check-layer --no-auto-dependency --dependency \
`find ../layers -name layer.conf |xargs dirname | \
xargs dirname |grep -v oe-core |grep -v meta-yocto/scripts` \
--additional-layers ../layers/meta-openembedded/meta-oe -- ../layers/wrlinux/wrlinux-distro
Live chat
Online