Fixed
Created: Jul 19, 2018
Updated: Mar 27, 2019
Resolved Date: Aug 5, 2018
Found In Version: 8.0.0.25, 8.0.0.26
Fix Version: 8.0.0.27
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Kernel
Standalone build fails when the WR Linux install directory is renamed/removed.
The error is:
ERROR: ExpansionError during parsing /workspace/t2-standalone-2rl8/layers/wr-kernel/recipes-kernel/linux/linux-windriver_4.1.bb: Failure expanding variable do_patch: ExpansionError: Failure expanding variable do_patch, expression was ...
This was reproduced on Ubuntu 16.04 as well as a Debian 8 VM.
After configuring
$cd project/layers/wr-kernel/git/kernel-4.1.x-LB13_8.0_RCPL0026
$cat objects/info/alternates
installationdir/wrlinux-8/layers/wr-kernel/git/kernel-4.1.x.git/objects
$echo project/layers/wr-kernel/git/kernel-4.1.x.git/objects > objects/info/alternates
# use the path of kernel-4.1.x.git/objects of your project to overwrite the original path.
1. Build project with config:
--enable-kernel=preempt-rt --enable-rootfs=glibc-small+readonly-root --enable-build=production --enable-board=qemuppc --enable-stand-alone-project=yes --with-rcpl-version=0026
Note: This was tested on RCPL 0025 and 0026 with the same results. It was also tested with qemuarm and qemumips BSPs.
2. Rename WR Linux install directory to anything else.
3. Try to build again.