1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/qemu/qemu.conf
5 # Copyright (C) 2004 - 2021 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
17 var_remove_regex confopt ' ' '--host=.*'
18 var_remove_regex makeopt ' ' 'CPP=.*'; unset CPP
20 if atstage cross; then
21 export PKG_CONFIG=pkg-config
22 var_append extraconfopt ' ' "--cross-prefix=$arch_target-"
25 if [ "$SDECFG_PKG_QEMU_ALL" = 0 ]; then
26 qemu_arch=$(echo $arch_machine | arch2uname)
27 qemu_arch=${qemu_arch/i?86/i386}
28 var_append extraconfopt ' ' \
29 "--target-list=$qemu_arch-softmmu,$qemu_arch-linux-user"
32 var_append GCC_WRAPPER_INSERT ' ' "-c?:-L`pkgprefix libdir glib`"
33 # does not correctly locate libX11 itself
34 pkginstalled libx11 && var_append GCC_WRAPPER_INSERT ' ' "-c?:-L`pkgprefix libdir libx11`"
35 pkginstalled virglrenderer && var_append GCC_WRAPPER_INSERT ' ' "-I`pkgprefix includedir virglrenderer`"
36 pkginstalled alsa-lib && var_append extraconfopt ' ' '--audio-drv-list=alsa'