ppc: fix build of DCR bits on 4xx
PATCH 1/1 ppc: fix build of DCR bits on 4xx
The new dcr.c file shouldn't be compiled on arch/ppc, and dcr-low.S should only be built if CONFIG_PPC_DCR_NATIVE is set.
Signed-off-by Benjamin Herrenschmidt <[email protected]>
arch/powerpc/sysdev/Makefile +2 -1
@@ -5,7 +5,7 @@ endif obj-$(CONFIG_MPIC) += mpic.o obj-$(CONFIG_PPC_INDIRECT_PCI) += indirect_pci.o obj-$(CONFIG_PPC_MPC106) += grackle.o -obj-$(CONFIG_PPC_DCR) += dcr.o dcr-low.o +obj-$(CONFIG_PPC_DCR_NATIVE) += dcr-low.o obj-$(CONFIG_U3_DART) += dart_iommu.o obj-$(CONFIG_MMIO_NVRAM) += mmio_nvram.o obj-$(CONFIG_FSL_SOC) += fsl_soc.o
@@ -14,6 +14,7 @@ obj-$(CONFIG_QUICC_ENGINE) += qe_lib/ obj-$(CONFIG_OF_SERIAL) += of_serial.o ifeq ($(CONFIG_PPC_MERGE),y) +obj-$(CONFIG_PPC_DCR) += dcr.o obj-$(CONFIG_PPC_I8259) += i8259.o obj-$(CONFIG_PPC_83xx) += ipic.o obj-$(CONFIG_PPC_MPC52xx) += mpc52xx_pic.o
Quoted 4 lines · Benjamin Herrenschmidt
The new
dcr.cfile shouldn't be compiled onarch/ppc, anddcr-low.Sshould only be built ifCONFIG_PPC_DCR_NATIVEis set.Signed-off-by Benjamin Herrenschmidt <[email protected]>
Hrm... it collides with Kumar's patch, sorry, I'll send a fixed one
Ben.