From: Linus Walleij Date: Thu, 21 Jan 2016 12:04:47 +0000 (+0100) Subject: ARM: realview: fix device tree build X-Git-Tag: v4.5-rc1~15^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6551b8c9b76ec3cee1386dbeeab528c019fd732c;p=platform%2Fkernel%2Flinux-exynos.git ARM: realview: fix device tree build As it happens, two obj-$(CONFIG_FOO) += foo.o variables are above obj-y := core.o, which doesn't work: the += directives need to add something to the build and doesn't work if obj-y is not set first, so move the obj-y to be on top and everything builds nicely again. Signed-off-by: Linus Walleij Signed-off-by: Arnd Bergmann --- diff --git a/arch/arm/mach-realview/Makefile b/arch/arm/mach-realview/Makefile index 8be6632..dae8d86 100644 --- a/arch/arm/mach-realview/Makefile +++ b/arch/arm/mach-realview/Makefile @@ -4,10 +4,9 @@ ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \ -I$(srctree)/arch/arm/plat-versatile/include - +obj-y := core.o obj-$(CONFIG_REALVIEW_DT) += realview-dt.o obj-$(CONFIG_SMP) += platsmp-dt.o -obj-y := core.o ifdef CONFIG_ATAGS obj-$(CONFIG_MACH_REALVIEW_EB) += realview_eb.o