1 diff --git a/arch/mips/sgi-ip22/Platform b/arch/mips/sgi-ip22/Platform
2 index e8f6b3a42a48..cffd31e3b230 100644
3 --- a/arch/mips/sgi-ip22/Platform
4 +++ b/arch/mips/sgi-ip22/Platform
6 # current variable will break so for 64-bit kernels we have to raise the start
9 -platform-$(CONFIG_SGI_IP22) += sgi-ip22/
10 +ifdef CONFIG_SGI_IP22
11 +platform-$(CONFIG_SGI_IP22) += sgi-ip22/
12 cflags-$(CONFIG_SGI_IP22) += -I$(srctree)/arch/mips/include/asm/mach-ip22
14 load-$(CONFIG_SGI_IP22) += 0xffffffff88002000
15 @@ -15,6 +16,7 @@ endif
17 load-$(CONFIG_SGI_IP22) += 0xffffffff88004000
22 # SGI IP28 (Indigo2 R10k)
23 @@ -28,7 +30,7 @@ ifdef CONFIG_SGI_IP28
24 ifeq ($(call cc-option-yn,-march=r10000 -mr10k-cache-barrier=store), n)
25 $(error gcc doesn't support needed option -mr10k-cache-barrier=store)
28 -platform-$(CONFIG_SGI_IP28) += sgi-ip22/
29 +platform-$(CONFIG_SGI_IP28) += sgi-ip22/
30 cflags-$(CONFIG_SGI_IP28) += -mr10k-cache-barrier=store -I$(srctree)/arch/mips/include/asm/mach-ip28
31 load-$(CONFIG_SGI_IP28) += 0xa800000020004000
33 diff --git a/arch/mips/sgi-ip32/Platform b/arch/mips/sgi-ip32/Platform
34 index 589930560088..7db2c1f05d89 100644
35 --- a/arch/mips/sgi-ip32/Platform
36 +++ b/arch/mips/sgi-ip32/Platform
38 # a multiple of the kernel stack size or the handling of the current variable
41 +ifdef CONFIG_SGI_IP32
42 platform-$(CONFIG_SGI_IP32) += sgi-ip32/
43 cflags-$(CONFIG_SGI_IP32) += -I$(srctree)/arch/mips/include/asm/mach-ip32
44 cflags-$(CONFIG_CPU_R10000) += -mr10k-cache-barrier=load-store
45 cflags-$(CONFIG_CPU_R12K_R14K_R16K) += -mno-fix-r10000 -mr10k-cache-barrier=load-store
46 load-$(CONFIG_SGI_IP32) += 0xffffffff80004000