Skip to contentSkip to conversation

xen: x86_64 build fixes

PATCH New Christoph Egger 1 participant 1 message Oct 19, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: x86_64 build fixes

Hi!

Attached patch allows x86_64 build on *BSD.
- Config.mk: uname -m prints "amd64". Deal with this.
- do not assume, python is always in /usr/bin
- get-fields.sh: make it a portable and non-bash specific shell-script

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
Config.mk +1 -1
diff -r 2372f89c0447 Config.mk
@@ -4,7 +4,7 @@ debug ?= n
 debug ?= n
 
 XEN_COMPILE_ARCH    ?= $(shell uname -m | sed -e s/i.86/x86_32/ \
-                         -e s/ppc/powerpc/ -e s/i86pc/x86_32/)
+                         -e s/ppc/powerpc/ -e s/i86pc/x86_32/ -e s/amd64/x86_64/)
 XEN_TARGET_ARCH     ?= $(XEN_COMPILE_ARCH)
 XEN_OS              ?= $(shell uname -s)
 
xen/include/Makefile +1 -1
diff -r 2372f89c0447 xen/include/Makefile
@@ -61,7 +61,7 @@ compat/xlat.h: xlat.lst $(filter-out com
 compat/xlat.h: xlat.lst $(filter-out compat/xlat.h,$(headers-y)) $(BASEDIR)/tools/get-fields.sh Makefile
 	grep -v '^[	 ]*#' xlat.lst | \
 	while read what name hdr; do \
-		/bin/bash $(BASEDIR)/tools/get-fields.sh "$$what" compat_$$name $$(echo compat/$$hdr | sed 's,@arch@,$(compat-arch-y),g') || exit $$?; \
+		/bin/sh $(BASEDIR)/tools/get-fields.sh "$$what" compat_$$name $$(echo compat/$$hdr | sed 's,@arch@,$(compat-arch-y),g') || exit $$?; \
 	done >[email protected]
 	mv -f [email protected] $@
 
xen/tools/compat-build-header.py +1 -1
diff -r 2372f89c0447 xen/tools/compat-build-header.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import re,sys
 
xen/tools/compat-build-source.py +1 -1
diff -r 2372f89c0447 xen/tools/compat-build-source.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import re,sys
 
xen/tools/get-fields.sh +26 -18

134 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel