Skip to content

Build path dependency in device-tree SRC_URI invalidates sstate cache between machines #34

@ph1l1p139

Description

@ph1l1p139

Hi,

In dynamic-layers/xilinx-core/recipes-bsp/device-tree/device-tree.bbappend a python function sets up FILESEXTRAPATHS and SRC_URI
with the path to PetaLinux scripts as below:

plnx_scriptspath = d.getVar('PLNX_SCRIPTS_PATH') or ''
if sysconfig_dir:
    d.prependVar('FILESEXTRAPATHS', '%s:' % sysconfig_dir)
if plnx_scriptspath:
    d.prependVar('FILESEXTRAPATHS', '%s:' % plnx_scriptspath)
    d.appendVar('SRC_URI', ' file://%s' % plnx_scriptspath)

The last line appends the full path of the scripts directory to the SRC_URI.

Because meta-xilinx-core layer.conf sets PLNX_SCRIPTS_PATH as PLNX_SCRIPTS_PATH = "${LAYERDIR}/gen-machine-conf/gen-machine-scripts" and PetaLinux extracts meta-xilinx-core under the project components folder this means that SRC_URI contains a full path to a file under the build folder:
file://<...snip machine specific folder...>/components/yocto/layers/meta-xilinx/meta-xilinx-core/gen-machine-conf/gen-machine-scripts

This means that the sstate cache for device-tree and all dependant recipes (including the kernel, drivers and anything that depends on them!) is dependant on the location of the build and shared network sstate cache servers don't work properly.

It seems to me that the final append to SRC_URI probably shouldn't be using plnx_scriptspath but just the names of the particular scripts needed under that path.

Best Regards,
Phil Dawson

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions