From 94e68b9e4914477c65ccf616688db51ad328aa9f Mon Sep 17 00:00:00 2001 From: proski Date: Thu, 29 Jan 2009 05:58:17 +0000 Subject: [PATCH 1/1] 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 --- scripts/get_arch.mk | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.35.1