see if we can fix the 32 bit userspace on 64 bit kernel build problem
authorBdale Garbee <bdale@gag.com>
Mon, 2 Nov 2009 05:07:11 +0000 (22:07 -0700)
committerBdale Garbee <bdale@gag.com>
Mon, 2 Nov 2009 05:07:11 +0000 (22:07 -0700)
Make.defaults

index 1f3d989287d2f416283e8fe51e3fe0071828022b..8ec559d47cf2f26a4a195d3e4e727b241231afe1 100644 (file)
@@ -62,8 +62,8 @@ EFICRT0          = /usr/lib
 CDIR    := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
 TOPDIR  =
 
-HOSTARCH   = $(shell uname -m | sed s,i[3456789]86,ia32,)
-ARCH      := $(shell uname -m | sed s,i[3456789]86,ia32,)
+HOSTARCH   = $(dpkg-architecture -qDEB_BUILD_ARCH | sed s,i[3456789]86,ia32,)
+ARCH      := $(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)