Wind River Support Network

HomeDefectsLIN1022-12247
Fixed

LIN1022-12247 : do_install workaround added in meta-tegra recipe for CentOS compilation

Created: Dec 18, 2024    Updated: Mar 12, 2025
Resolved Date: Feb 27, 2025
Found In Version: 10.22.33.19
Fix Version: 10.22.33.20
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: BSP

Description

The default "install -D" is not working as expected in CentOS7 like on Ubuntu as host.

Created meta-tegra recipe bbappend file to override the "install -D" with "install -d" for CentOS compatibilty.

Workaround

After added one line for creating directory by "install -d ...", it works good.

layers/meta-tegra/recipes-bsp/tegra-binaries/tegra-eks-image_36.3.0.bb

do_install() {
+   install -d ${D}${datadir}/tegraflash
    install -D -m 0644 ${B}/eks.img -t ${D}${datadir}/tegraflash
}


layers/meta-tegra/recipes-bsp/tegra-binaries/tegra-storage-layout_36.3.0.bb

do_install() {
+   install -d ${D}${datadir}/tegraflash
    install -D -m 0644 -t ${D}${datadir}/tegraflash ${B}/internal-flash.xml
    if [ -e ${B}/bupgen-internal-flash.xml ]; then
         install -m 0644 ${B}/bupgen-internal-flash.xml ${D}${datadir}/tegraflash/bupgen-internal-flash.xml
    else
        ln -sf internal-flash.xml ${D}${datadir}/tegraflash/bupgen-internal-flash.xml
    fi
    if [ -e ${B}/external-flash.xml ]; then
        install -m 0644 ${B}/external-flash.xml ${D}${datadir}/tegraflash/
    fi
}


layers/meta-tegra/recipes-devtools/cuda/cuda-compatibility-workarounds_1.0.bb

do_install:aarch64() {
+   install -d ${D}${includedir}/cuda-compat-workarounds/bits
    install -D -m 0644 -t ${D}${includedir}/cuda-compat-workarounds/bits ${UNPACKDIR}/math-vector.h
}

Steps to Reproduce

layers/nvidia-orin/README
4. Build Instructions

$ ./wrlinux-x/setup.sh --machine nvidia-orin --distro wrlinux-graphics --dl-layers
$ . ./environment-setup-x86_64-wrlinuxsdk-linux
$ . ./oe-init-build-env

BB_NO_NETWORK = '0'
require conf/machine/include/nvidia-orin-proprietary-license-recipes.inc

$ bitbake wrlinux-image-std


NOTE: This issue was able to reproduce on CentOS-7.9.

$ cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)

Live chat
Online