Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ph1l1p139 opened this issue Oct 2, 2024 · 0 comments

Comments

@ph1l1p139
Copy link

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

vishwamartur added a commit to vishwamartur/meta-petalinux that referenced this issue Oct 31, 2024
Related to Xilinx#34

Update `SRC_URI` in `device-tree.bbappend` to avoid using the full path to the PetaLinux scripts directory.

* Remove the line that appends `plnx_scriptspath` to `SRC_URI`.
* Append the names of the particular scripts needed under `plnx_scriptspath` to `SRC_URI`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant