[PATCH] ppc32: Fix building 32bit kernel for 64bit machines
[linux-2.6.git] / arch / ppc / boot / simple / Makefile
index d8d801fcee10a626c3e454a0e5ae488089c38316..c28061ad5982eb7c89745a66f5b448a37f2b66ba 100644 (file)
@@ -123,10 +123,13 @@ zimageinitrd-$(pcore)                     := zImage.initrd-STRIPELF
          end-$(pcore)                  := pcore
    cacheflag-$(pcore)                  := -include $(clear_L2_L3)
 
+# Really only valid if CONFIG_6xx=y
       zimage-$(CONFIG_PPC_PREP)                := zImage-PPLUS
 zimageinitrd-$(CONFIG_PPC_PREP)                := zImage.initrd-PPLUS
+ifeq ($(CONFIG_6xx),y)
      extra.o-$(CONFIG_PPC_PREP)                := prepmap.o
         misc-$(CONFIG_PPC_PREP)                += misc-prep.o mpc10x_memory.o
+endif
          end-$(CONFIG_PPC_PREP)                := prep
 
          end-$(CONFIG_SANDPOINT)       := sandpoint