linux-user: Create a hostdep.h for each host architecture
commitba4537805da7023ae48cef0cdc06e6724156c596
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Jun 2016 10:57:18 +0000 (13 11:57 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Sun, 26 Jun 2016 10:17:21 +0000 (26 13:17 +0300)
tree9576257834a4ebb1482ce5fe346ddf08a82d86c1
parentc5679026d5748f4f41f1e18a70b35927619d2248
linux-user: Create a hostdep.h for each host architecture

In commit 4d330cee37a21 a new hostdep.h file was added, with the intent
that host architectures which needed one could provide it, and the
build system would automatically fall back to a generic version if
there was no version for the host architecture. Although this works,
it has a flaw: if a subsequent commit switches an architecture from
"uses generic/hostdep.h" to "uses its own hostdep.h" nothing in the
makefile dependencies notices this and so doing a rebuild without
a manual 'make clean' will fail.

So we drop the idea of having a 'generic' version in favour of
every architecture we support having its own hostdep.h, even if
it doesn't have anything in it. (There are only thirteen of these.)

If the dependency files claim that an object file depends on a
nonexistent file, our dependency system means that make will
rebuild the object file, and regenerate the dependencies in
the process. So moving between trees prior to this commit and
trees after this commit works without requiring a 'make clean'.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
13 files changed:
Makefile.target
linux-user/host/aarch64/hostdep.h [copied from linux-user/host/generic/hostdep.h with 55% similarity]
linux-user/host/arm/hostdep.h [copied from linux-user/host/generic/hostdep.h with 55% similarity]
linux-user/host/i386/hostdep.h [copied from linux-user/host/generic/hostdep.h with 55% similarity]
linux-user/host/ia64/hostdep.h [copied from linux-user/host/generic/hostdep.h with 55% similarity]
linux-user/host/mips/hostdep.h [copied from linux-user/host/generic/hostdep.h with 55% similarity]
linux-user/host/ppc/hostdep.h [copied from linux-user/host/generic/hostdep.h with 55% similarity]
linux-user/host/ppc64/hostdep.h [copied from linux-user/host/generic/hostdep.h with 55% similarity]
linux-user/host/s390/hostdep.h [copied from linux-user/host/generic/hostdep.h with 55% similarity]
linux-user/host/s390x/hostdep.h [copied from linux-user/host/generic/hostdep.h with 55% similarity]
linux-user/host/sparc/hostdep.h [copied from linux-user/host/generic/hostdep.h with 55% similarity]
linux-user/host/sparc64/hostdep.h [copied from linux-user/host/generic/hostdep.h with 55% similarity]
linux-user/host/x32/hostdep.h [moved from linux-user/host/generic/hostdep.h with 55% similarity]