setup_board: Setup library path for qemu-aarch64

This commit is contained in:
Kai Lüke 2019-11-22 13:39:16 +01:00
parent e6c9122b0b
commit 1c3323507d
No known key found for this signature in database
GPG Key ID: E5601DA3A1D902A8

View File

@ -46,6 +46,9 @@ fi
# Turn on bash debug support if available for backtraces.
shopt -s extdebug 2>/dev/null
# Source qemu library path
. /etc/profile.d/qemu-aarch64.sh 2> /dev/null || true
# Output a backtrace all the way back to the raw invocation, suppressing
# only the _dump_trace frame itself.
_dump_trace() {
@ -936,6 +939,8 @@ setup_qemu_static() {
arm64-usr)
if [[ -f "${root_fs_dir}/sbin/ldconfig" ]]; then
sudo cp /usr/bin/qemu-aarch64 "${root_fs_dir}"/usr/bin/qemu-aarch64-static
echo export QEMU_LD_PREFIX=\"/build/arm64-usr/\" | sudo tee /etc/profile.d/qemu-aarch64.sh
. /etc/profile.d/qemu-aarch64.sh
else
die "Missing basic layout in target rootfs"
fi