build: avoid building arm/arm/*/head.o twice
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 12 Oct 2021 09:53:47 +0000 (11:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Oct 2021 09:53:47 +0000 (11:53 +0200)
commite5ba9f79ef4517321e80e0eb6e4aafc3a978e689
tree27c5ded1c0c1e8593035789f3bb92024513c26fd
parentaa44f3c0a697cc387f79958d73e21594a9059cf6
build: avoid building arm/arm/*/head.o twice

head.o is been built twice, once because it is in $(ALL_OBJS) and a
second time because it is in $(extra-y) and thus it is rebuilt when
building "arch/arm/built_in.o".

Fix this by adding a dependency of "head.o" on the directory
"arch/arm/".

Also, we should avoid building object that are in subdirectories, so
move the declaration in there. This doesn't change anything as
"arch/arm/built_in.o" depends on "arch/arm/$subarch/built_in.o" which
depends on $(extra-y), so we still need to depend on
"arch/arm/built_in.o".

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