Wind River Support Network

HomeDefectsLIN8-3224
Fixed

LIN8-3224 : wrlinux 8 - Failure installing kernel extra headers (dash)

Created: Apr 11, 2016    Updated: Dec 3, 2018
Resolved Date: Apr 29, 2016
Found In Version: 8.0.0.3
Fix Version: 8.0.0.5
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Build & Config

Description

in wrlinux 8, linux-windriver.inc (and linux-windriver_4.1.bbappend) uses -a instead of -e to check for file existence.

This causes issues when /bin/sh points to dash instead of bash (Ubuntu hosts)

The results:

- No errors are generated 
- In the log "[: -a: unexpected operator" 
- No headers are copied 

Workaround

 -a with -e in the .inc file, solves the issue.

Steps to Reproduce

1 configure a wrl8, rcpl3 project based on a intel-x86-64 BSP, standard kernel, glibc_std

2. make sure that the active shell on the development host is dash

3. use a linux-windriver-custom.bbappend file in which use:

KERNEL_INSTALL_HEADER += "myheader.h" <- make sure this points to a valid header file that oculd contain anything

4. run make bbs

5. bitbake -f -v -c install_kernel_headers virtual/kernel 

Other Downloads


Live chat
Online