diff options
author | Hollis Blanchard <hollisb@us.ibm.com> | 2008-10-29 13:27:51 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-11-02 11:06:05 +0200 |
commit | 0db20eb74920b6664807ace23b5ec1bafdd5d450 (patch) | |
tree | 9a0587d9c38ce6f1d0f656dcbb3869d9e2468c08 /configure | |
parent | 9eb704045f777b2f01aa0a0045a58bce82fd5677 (diff) |
kvm: user: set $PROCESSOR from configure --arch=<arch>-<processor>
Export PROCESSOR in config.mak, and call user/configure with the --processor
option.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -103,6 +103,9 @@ case $arch in ;; esac +processor=${arch#*-} +arch=${arch%%-*} + # see if we have split build and source directories if [ -d "$kerneldir/include2" ]; then kernelsourcedir=${kerneldir%/*}/source @@ -110,7 +113,7 @@ fi #configure user dir (cd user; ./configure --prefix="$prefix" --kerneldir="$libkvm_kerneldir" \ - --arch="$arch" \ + --arch="$arch" --processor="$processor" \ ${cross_prefix:+"--cross-prefix=$cross_prefix"}) #configure qemu @@ -128,6 +131,7 @@ fi cat <<EOF > config.mak ARCH=$arch +PROCESSOR=$processor PREFIX=$prefix KERNELDIR=$kerneldir KERNELSOURCEDIR=$kernelsourcedir |