From: proski Date: Thu, 29 Jan 2009 05:58:17 +0000 (+0000) Subject: Fix ARCH calculation for PowerPC in Linux 2.6.28 and newer X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;ds=sidebyside;h=94e68b9e4914477c65ccf616688db51ad328aa9f;p=madwifi%2F.git Fix ARCH calculation for PowerPC in Linux 2.6.28 and newer If $(KERNELPATH)/arch/ppc is missing, ARCH should be "powerpc", not "ppc". CONFIG_PPC_MERGE disappeared in Linux 2.6.28. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3935 0192ed92-7a03-0410-a25b-9323aeb14dbd --- diff --git a/scripts/get_arch.mk b/scripts/get_arch.mk index 0a239f0..0c27025 100644 --- a/scripts/get_arch.mk +++ b/scripts/get_arch.mk @@ -43,6 +43,12 @@ ARCH-y = $(ARCH) endif endif +ifeq (ppc,$(ARCH-y)) +ifeq (,$(wildcard $(KERNELPATH)/arch/ppc)) +ARCH-y = powerpc +endif +endif + # Don't allow ARCH to be overridden by a different value. ifeq (,$(ARCH)) ARCH = $(ARCH-y)