* [PATCH 1/2] [RESEND] Enable user directory configure script for cross compile
@ 2007-10-09 5:19 Jerone Young
2007-10-09 13:26 ` Avi Kivity
0 siblings, 1 reply; 5+ messages in thread
From: Jerone Young @ 2007-10-09 5:19 UTC (permalink / raw)
To: kvm-devel
[-- Attachment #1: Type: text/plain, Size: 154 bytes --]
This patch enables configure script in user directory for cross compile.
Signed-off-by: Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
[-- Attachment #2: [PATCH 1\2] user_dir_config_script_cross_compile --]
[-- Type: text/x-patch, Size: 1176 bytes --]
diff -r b0a20b1a7339 user/configure
--- a/user/configure Mon Oct 08 23:48:50 2007 -0500
+++ b/user/configure Mon Oct 08 23:49:22 2007 -0500
@@ -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
[-- Attachment #3: Type: text/plain, Size: 314 bytes --]
-------------------------------------------------------------------------
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/
[-- Attachment #4: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] [RESEND] Enable user directory configure script for cross compile
2007-10-09 5:19 [PATCH 1/2] [RESEND] Enable user directory configure script for cross compile Jerone Young
@ 2007-10-09 13:26 ` Avi Kivity
[not found] ` <470B8175.6060806-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Avi Kivity @ 2007-10-09 13:26 UTC (permalink / raw)
To: jyoung5-r/Jw6+rmf7HQT0dZR+AlfA; +Cc: kvm-devel
Jerone Young wrote:
> This patch enables configure script in user directory for cross compile.
>
>
Still doesn't apply. What are you generating the patches against?
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] [RESEND] Enable user directory configure script for cross compile
[not found] ` <470B8175.6060806-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2007-10-09 16:00 ` Jerone Young
2007-10-09 16:02 ` Avi Kivity
0 siblings, 1 reply; 5+ messages in thread
From: Jerone Young @ 2007-10-09 16:00 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel
I believe the problem is that I am not generating my patches in git
format. I have been using a mercuial mq tree to generate the patches I
have been sending. While they apply fine with patch command, apparently
git needs the patches fomatted correctly.
I'll get everything together again and use git tools (like guilt) to
make a new patch.
On Tue, 2007-10-09 at 15:26 +0200, Avi Kivity wrote:
> Jerone Young wrote:
> > This patch enables configure script in user directory for cross compile.
> >
> >
>
> Still doesn't apply. What are you generating the patches against?
>
>
-------------------------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] [RESEND] Enable user directory configure script for cross compile
2007-10-09 16:00 ` Jerone Young
@ 2007-10-09 16:02 ` Avi Kivity
[not found] ` <470BA612.5010700-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Avi Kivity @ 2007-10-09 16:02 UTC (permalink / raw)
To: jyoung5-r/Jw6+rmf7HQT0dZR+AlfA; +Cc: kvm-devel
Jerone Young wrote:
> I believe the problem is that I am not generating my patches in git
> format. I have been using a mercuial mq tree to generate the patches I
> have been sending. While they apply fine with patch command, apparently
> git needs the patches fomatted correctly.
>
>
git generally knows how to apply things... perhaps your mq tree is stale
and you're generating patches against an older snapshot?
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] [RESEND] Enable user directory configure script for cross compile
[not found] ` <470BA612.5010700-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2007-10-09 16:44 ` Jerone Young
0 siblings, 0 replies; 5+ messages in thread
From: Jerone Young @ 2007-10-09 16:44 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel
The patches are based on an older snapshot. Grabbing todays git tree I
see there have been changes in user/Makefile. This would be why it is
failing.
On Tue, 2007-10-09 at 18:02 +0200, Avi Kivity wrote:
> Jerone Young wrote:
> > I believe the problem is that I am not generating my patches in git
> > format. I have been using a mercuial mq tree to generate the patches I
> > have been sending. While they apply fine with patch command, apparently
> > git needs the patches fomatted correctly.
> >
> >
>
> git generally knows how to apply things... perhaps your mq tree is stale
> and you're generating patches against an older snapshot?
>
>
-------------------------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-10-09 16:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-09 5:19 [PATCH 1/2] [RESEND] Enable user directory configure script for cross compile Jerone Young
2007-10-09 13:26 ` Avi Kivity
[not found] ` <470B8175.6060806-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-09 16:00 ` Jerone Young
2007-10-09 16:02 ` Avi Kivity
[not found] ` <470BA612.5010700-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-09 16:44 ` Jerone Young
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox