build,arm: Fix deps check of head.o
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 31 Mar 2020 10:30:47 +0000 (11:30 +0100)
committerJulien Grall <jgrall@amazon.com>
Wed, 1 Apr 2020 09:49:49 +0000 (10:49 +0100)
arm*/head.o isn't in obj-y or extra-y, so make don't load the
associated .*.d file (or .*.cmd file when if_changed will be used).
There is a workaround where .*.d file is added manually into DEPS.

Changing DEPS isn't needed, we can simply add head.o into extra-y and
the dependency files will be loaded.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/Makefile

index 12f92a4bd3f94d46e70a8fe9aa887fde4eac39f2..7273f356f1900d47789db6fdbcd05f769f491c2b 100644 (file)
@@ -62,6 +62,7 @@ obj-$(CONFIG_SBSA_VUART_CONSOLE) += vpl011.o
 obj-y += vsmc.o
 obj-y += vpsci.o
 obj-y += vuart.o
+extra-y += $(TARGET_SUBARCH)/head.o
 
 #obj-bin-y += ....o
 
@@ -72,8 +73,6 @@ endif
 
 ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS)
 
-DEPS += $(TARGET_SUBARCH)/.head.o.d
-
 ifdef CONFIG_LIVEPATCH
 all_symbols = --all-symbols
 ifdef CONFIG_FAST_SYMBOL_LOOKUP