Skip to content

Commit

Permalink
app-emulation/qemu: Make CONFIG_CHECK CPU-model dependent
Browse files Browse the repository at this point in the history
Closes: gentoo#6285
Signed-off-by: George Gaydarov <[email protected]>
Signed-off-by: Matthias Maier <[email protected]>
  • Loading branch information
gg7 authored and tamiko committed Dec 21, 2017
1 parent b48940b commit 98bce0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,11 @@ pkg_pretend() {
ERROR_VHOST_NET+=" support"

if use amd64 || use x86 || use amd64-linux || use x86-linux; then
CONFIG_CHECK+=" ~KVM_AMD ~KVM_INTEL"
if grep -q AuthenticAMD /proc/cpuinfo; then
CONFIG_CHECK+=" ~KVM_AMD"
elif grep -q GenuineIntel /proc/cpuinfo; then
CONFIG_CHECK+=" ~KVM_INTEL"
fi
fi

use python && CONFIG_CHECK+=" ~DEBUG_FS"
Expand Down
6 changes: 5 additions & 1 deletion app-emulation/qemu/qemu-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,11 @@ pkg_pretend() {
ERROR_VHOST_NET+=" support"

if use amd64 || use x86 || use amd64-linux || use x86-linux; then
CONFIG_CHECK+=" ~KVM_AMD ~KVM_INTEL"
if grep -q AuthenticAMD /proc/cpuinfo; then
CONFIG_CHECK+=" ~KVM_AMD"
elif grep -q GenuineIntel /proc/cpuinfo; then
CONFIG_CHECK+=" ~KVM_INTEL"
fi
fi

use python && CONFIG_CHECK+=" ~DEBUG_FS"
Expand Down

0 comments on commit 98bce0c

Please sign in to comment.