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

common: configure_cache_path: Use PROOT to avoid hardcoding absolute path #26

Open
NGenetzky opened this issue Jan 7, 2021 · 0 comments

Comments

@NGenetzky
Copy link

Problem

In the CACHE_DIR variable below is an absolute path. Consider using ${PROOT} instead. This has the same result for the current builds but will have the added result of allowing the project to build even if it is moved to a new location.

bash ${PETALINUX_CONFIGS_FOLDER}/project/config.cache.sh $ARCH $CACHE_DIR

NOTE: that other parts of this function suffer from #25 .

Solution

You can fix this by changing the value passed to the other script.

bash "${PETALINUX_CONFIGS_FOLDER}/project/config.cache.sh" "$ARCH" "\${PROOT}/../cache"

Tested on

commit 3a0b3c39f758b0578e12b13bb209daa4547c883f (HEAD, upstream/2020.1)
Author: Tom Curran <tom.curran@avnet.com>
Date:   Fri Dec 11 15:54:32 2020 -0500

    Change mz7010 to build avnet-image-full
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