--- utils-2.6.31.patch.orig 2009-11-27 11:26:05.150326214 +0100 +++ utils-2.6.31.patch.orig 2009-11-27 11:26:38.740324900 +0100 @@ -2,13 +2,14 @@ index cca9c4f..a304043 100644 --- a/Makefile +++ b/Makefile -@@ -19,7 +19,14 @@ ifndef KDIR +@@ -19,7 +19,15 @@ ifndef KDIR KDIR = /lib/modules/$(shell uname -r)/build endif +ifndef ARCH +ARCH := $(shell uname -m) +endif ++ARCH := $(shell echo ${ARCH} | sed -e 's/i386$$/x86/') +ARCH := $(shell echo ${ARCH} | sed -e 's/_64$$//') + CFLAGS += -I${KDIR}/include