[arch-releng] [PATCH 3/3] Parse CARCH not from running kernel

Gerhard Brauer gerbra at archlinux.de
Tue Jun 30 06:43:25 EDT 2009


We set ARCH either from command line (make ARCH=i686 <target>) or
dynamically from 'uname -m'. In chroots we get a problem if we not
explicit set the ARCH; ex.: runnig kernel is x86_64 but we wan't to
build for i686.
So it may better to parse the needed ARCH from makepkg.conf->CARCH.

Signed-off-by: Gerhard Brauer <gerbra at archlinux.de>
---
 configs/install-iso/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configs/install-iso/Makefile b/configs/install-iso/Makefile
index cfdf6e6..c18abae 100644
--- a/configs/install-iso/Makefile
+++ b/configs/install-iso/Makefile
@@ -3,7 +3,7 @@ kver=2.6.30-ARCH
 
 WORKDIR=work
 
-ARCH?=`uname -m`
+ARCH?=$(shell grep CARCH /etc/makepkg.conf | cut -d'"' -f2)
 BOOTLOADER?=grub-gfx
 
 PWD:=`pwd`
-- 
1.6.3.3



More information about the arch-releng mailing list