see if we can solve the arch problem
authorBdale Garbee <bdale@gag.com>
Mon, 2 Nov 2009 05:21:14 +0000 (22:21 -0700)
committerBdale Garbee <bdale@gag.com>
Mon, 2 Nov 2009 05:21:14 +0000 (22:21 -0700)
Make.defaults

index f5dca13b103f023f405dad5c9a7783117630c6fe..27f217554400936183e6138004463c293a4fac7b 100644 (file)
@@ -62,7 +62,7 @@ EFICRT0          = /usr/lib
 CDIR    := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
 TOPDIR  =
 
-ARCH      = $(shell uname -m | sed s,i[3456789]86,ia32,)
+ARCH      = $(shell dpkg-architecture -qDEB_BUILD_ARCH | sed s,i[3456789]86,ia32,)
 INCDIR    = -I. -I$(TOPDIR) -I$(EFIINC) -I$(EFIINC)/$(ARCH) -I$(EFIINC)/protocol -I$(TOPDIR)/efi110
 CPPFLAGS   = -DCONFIG_$(ARCH)