Fix ARCH calculation for PowerPC in Linux 2.6.28 and newer
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 29 Jan 2009 05:58:17 +0000 (05:58 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 29 Jan 2009 05:58:17 +0000 (05:58 +0000)
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

index 0a239f0b726c4321e00172b5c05d2e298903f617..0c270253d9f7916dc6fb91f84b98c4798e389f7e 100644 (file)
@@ -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)