]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
xen/arm: make platform specific code dependent on ALL32_PLAT or ALL64_PLAT
authorStefano Stabellini <sstabellini@kernel.org>
Mon, 24 Sep 2018 22:55:03 +0000 (15:55 -0700)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 30 Oct 2018 17:58:29 +0000 (10:58 -0700)
Compile platform code that doesn't have its own specific kconfig option
only if ALL32_PLAT or ALL64_PLAT depending on the architecture. The
benefit is that choosing one of the platforms available as a menu
option allows the user not to build other unnecessary platform code.

Signed-off-by: Stefano Stabellini <stefanos@xilinx.com>
Reviewed-by: Andrii Anisov <andrii_anisov@epam.com>
xen/arch/arm/platforms/Makefile

index a79bdb9c08b86e3acdfd7db9a0ea15b58141f8b3..bd724a1dadcd7b8d18bc30a3698a0a9fc009db65 100644 (file)
@@ -1,11 +1,11 @@
-obj-y += vexpress.o
-obj-$(CONFIG_ARM_32) += brcm.o
-obj-$(CONFIG_ARM_32) += exynos5.o
-obj-$(CONFIG_ARM_32) += midway.o
-obj-$(CONFIG_ARM_32) += omap5.o
-obj-$(CONFIG_ARM_32) += rcar2.o
-obj-$(CONFIG_ARM_64) += seattle.o
-obj-y += sunxi.o
-obj-$(CONFIG_ARM_64) += thunderx.o
-obj-$(CONFIG_ARM_64) += xgene-storm.o
+obj-$(CONFIG_ALL32_PLAT) += vexpress.o
+obj-$(CONFIG_ALL32_PLAT) += brcm.o
+obj-$(CONFIG_ALL32_PLAT) += exynos5.o
+obj-$(CONFIG_ALL32_PLAT) += midway.o
+obj-$(CONFIG_ALL32_PLAT) += omap5.o
+obj-$(CONFIG_ALL32_PLAT) += rcar2.o
+obj-$(CONFIG_ALL64_PLAT) += seattle.o
+obj-$(CONFIG_ALL_PLAT)   += sunxi.o
+obj-$(CONFIG_ALL64_PLAT) += thunderx.o
+obj-$(CONFIG_ALL64_PLAT) += xgene-storm.o
 obj-$(CONFIG_MPSOC_PLATFORM)  += xilinx-zynqmp.o