mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-07 04:58:57 +00:00
arm/fvp: check that FVP binaries are present
If any of the path computation goes wrong (for example, the compiler changed so FVP_ARCH needs updating) for the real FVP binaries then bindir contains broken link called FVP_*. Solve this by checking that the directory contains FVP binaries and error out if not. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -20,7 +20,11 @@ FVPDIR = "${libdir}/fvp/${BPN}"
|
||||
|
||||
# Used in do_install to create symlinks in $bindir to $FVPDIR
|
||||
fvp_link_binaries() {
|
||||
for FVP in ${D}${FVPDIR}/models/${FVP_ARCH}/FVP_*; do
|
||||
DIR="${D}${FVPDIR}/models/${FVP_ARCH}"
|
||||
|
||||
stat $DIR/FVP_* >/dev/null 2>&1 || bbfatal Cannot find FVP binaries in $DIR
|
||||
|
||||
for FVP in $DIR/FVP_*; do
|
||||
ln -rs $FVP ${D}${bindir}/$(basename $FVP)
|
||||
done
|
||||
# But not the .so files too
|
||||
|
||||
Reference in New Issue
Block a user