Enable configure script in user directory for cross compile
PATCH 2/5 Enable configure script in user directory for cross compile
This patch enables configure script in "user" directory fro cross compile.
configure +1 -0
@@ -20,6 +20,7 @@ usage() { --with-patched-kernel don't use external module --kerneldir=DIR kernel build directory ($kerneldir) --qemu-cc="$qemu_cc" compiler for qemu (needs gcc3.x) ($qemu_cc) + --target-cpu target cpu model for qemu --disable-gcc-check don't insist on gcc-3.x - this will break running without kvm EOF
user/configure +23 -1
@@ -2,13 +2,20 @@ prefix=/usr/local kerneldir=/lib/modules/$(uname -r)/build +cc=gcc +ld=ld +arch=`uname -m | sed -e s/i.86/i386/` +cross_prefix= usage() { cat <<-EOF Usage: $0 [options] Options include: - + --arch=ARCH architecture to compile for ($arch) + --cc=CC c compiler to use ($cc) + --cross-prefix=PREFIX cross compiler prefix + --ld=LD ld linker to use ($ld) --prefix=PREFIX where to install things ($prefix) --kerneldir=DIR kernel build directory for kvm.h ($kerneldir) EOF
@@ -29,6 +36,18 @@ while [[ "$1" = -* ]]; do --kerneldir) kerneldir="$arg" ;; + --arch) + arch="$arg" + ;; + --cc) + cc="$arg" + ;; + --ld) + ld="$arg" + ;; + --cross-prefix) + cross_prefix="$arg" + ;; --help) usage ;;
@@ -41,4 +60,7 @@ cat <<EOF > config.mak cat <<EOF > config.mak PREFIX=$prefix KERNELDIR=$(readlink -f $kerneldir) +ARCH=$arch +CC=$cross_prefix$cc +LD=$cross_prefix$ld EOF
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel
Quoted 4 lines · Jerone Young
This patch enables configure script in "user" directory fro cross compile.
I applied the new 1/, but this doesn't?
Also, 3-5 ought to be one patch, otherwise bisection breaks.
Signature · 8 lines
Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
I'll redo 3-5 .. I'll also see what is up with this one. it applies fine in my repo. Plus need to redo patch 3 anyway. Removing the CFLAGS+= was not the best thing as the arch specific files had no way to ad CFLAGS.
Will submit even more patches shortly :-)
Quoted 10 lines · Avi Kivity
Quoted 4 lines · Jerone Young
This patch enables configure script in "user" directory fro cross compile.
I applied the new 1/, but this doesn't?
Also, 3-5 ought to be one patch, otherwise bisection breaks.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/