build: run targets csopes,tags,.. without Rules.mk
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 6 Mar 2020 09:15:49 +0000 (10:15 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 6 Mar 2020 09:15:49 +0000 (10:15 +0100)
commita213de3f2977aaf0736815d7b5a34ec4dfd3e0fd
treeedb6121d26d73f5ebc28dbf67200440be1a90a33
parent5446def53a3ed8785db0e708f349be2bd781f838
build: run targets csopes,tags,.. without Rules.mk

Those targets make use of $(all_sources) which depends on TARGET_ARCH,
so we just need to set TARGET_ARCH earlier and once.

XEN_TARGET_ARCH isn't expected to change during the build, so
TARGET_SUBARCH and TARGET_ARCH aren't going to change either. Set them
once and for all in the Xen root Makefile. This allows to run more
targets without Rules.mk.

XEN_TARGET_ARCH is actually changed in arch/x86/boot/build32.mk, but
it doesn't use the TARGET_{,SUB}ARCH variables either, and doesn't use
Rules.mk (it replaces it).

TARGET_{,SUB}ARCH are no longer overridden because that would have
no effect on the values that Rules.mk will use.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/Makefile
xen/Rules.mk