Skip to contentSkip to conversation

Enable user directory configure script for cross compile

PATCH RESEND In review Jerone Young 2 participants 5 messages Oct 9, 2007 2 messages not in the archive KVM

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/2 Enable user directory configure script for cross compile

This patch enables configure script in user directory for cross compile.

user/configure +23 -1
diff -r b0a20b1a7339 user/configure
@@ -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

#1 lore raw
Quoted 3 lines · Jerone Young

This patch enables configure script in user directory for cross compile.

Still doesn't apply. What are you generating the patches against?

Signature · 8 lines
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/

A message that is not in the archive (sent off-list or not yet received): 470B8175.6060806-atKUWr5tajBWk0Htik3J/[email protected]

#3 lore raw

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.

Quoted 8 lines · Avi Kivity
Quoted 3 lines · Jerone Young

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/

#4 lore raw
Quoted 6 lines · Jerone Young

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?

Signature · 8 lines
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/

A message that is not in the archive (sent off-list or not yet received): 470BA612.5010700-atKUWr5tajBWk0Htik3J/[email protected]

#6 lore raw

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.

Quoted 8 lines · Avi Kivity
Quoted 6 lines · Jerone Young

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.

Quoted 4 lines

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/