configure: Autogenerate default target list
Autogenerate the default target list based on what files exist in default-configs; this allows us to remove one of the places that has to be kept up to date with a complete list of every target we support. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1369062976-301-2-git-send-email-peter.maydell@linaro.org Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
0ded1fe5f3
commit
6e92f823b6
80
configure
vendored
80
configure
vendored
@ -974,78 +974,22 @@ EXTRA_CFLAGS="$CPU_CFLAGS $EXTRA_CFLAGS"
|
||||
|
||||
default_target_list=""
|
||||
|
||||
# these targets are portable
|
||||
if [ "$softmmu" = "yes" ] ; then
|
||||
default_target_list="\
|
||||
i386-softmmu \
|
||||
x86_64-softmmu \
|
||||
alpha-softmmu \
|
||||
arm-softmmu \
|
||||
cris-softmmu \
|
||||
lm32-softmmu \
|
||||
m68k-softmmu \
|
||||
microblaze-softmmu \
|
||||
microblazeel-softmmu \
|
||||
mips-softmmu \
|
||||
mipsel-softmmu \
|
||||
mips64-softmmu \
|
||||
mips64el-softmmu \
|
||||
moxie-softmmu \
|
||||
or32-softmmu \
|
||||
ppc-softmmu \
|
||||
ppcemb-softmmu \
|
||||
ppc64-softmmu \
|
||||
sh4-softmmu \
|
||||
sh4eb-softmmu \
|
||||
sparc-softmmu \
|
||||
sparc64-softmmu \
|
||||
s390x-softmmu \
|
||||
xtensa-softmmu \
|
||||
xtensaeb-softmmu \
|
||||
unicore32-softmmu \
|
||||
"
|
||||
mak_wilds=""
|
||||
|
||||
if [ "$softmmu" = "yes" ]; then
|
||||
mak_wilds="${mak_wilds} $source_path/default-configs/*-softmmu.mak"
|
||||
fi
|
||||
# the following are Linux specific
|
||||
if [ "$linux_user" = "yes" ] ; then
|
||||
default_target_list="${default_target_list}\
|
||||
i386-linux-user \
|
||||
x86_64-linux-user \
|
||||
alpha-linux-user \
|
||||
arm-linux-user \
|
||||
armeb-linux-user \
|
||||
cris-linux-user \
|
||||
m68k-linux-user \
|
||||
microblaze-linux-user \
|
||||
microblazeel-linux-user \
|
||||
mips-linux-user \
|
||||
mipsel-linux-user \
|
||||
mips64-linux-user \
|
||||
mips64el-linux-user \
|
||||
mipsn32-linux-user \
|
||||
mipsn32el-linux-user \
|
||||
or32-linux-user \
|
||||
ppc-linux-user \
|
||||
ppc64-linux-user \
|
||||
ppc64abi32-linux-user \
|
||||
sh4-linux-user \
|
||||
sh4eb-linux-user \
|
||||
sparc-linux-user \
|
||||
sparc64-linux-user \
|
||||
sparc32plus-linux-user \
|
||||
unicore32-linux-user \
|
||||
s390x-linux-user \
|
||||
"
|
||||
if [ "$linux_user" = "yes" ]; then
|
||||
mak_wilds="${mak_wilds} $source_path/default-configs/*-linux-user.mak"
|
||||
fi
|
||||
# the following are BSD specific
|
||||
if [ "$bsd_user" = "yes" ] ; then
|
||||
default_target_list="${default_target_list}\
|
||||
i386-bsd-user \
|
||||
x86_64-bsd-user \
|
||||
sparc-bsd-user \
|
||||
sparc64-bsd-user \
|
||||
"
|
||||
if [ "$bsd_user" = "yes" ]; then
|
||||
mak_wilds="${mak_wilds} $source_path/default-configs/*-bsd-user.mak"
|
||||
fi
|
||||
|
||||
for config in $mak_wilds; do
|
||||
default_target_list="${default_target_list} $(basename "$config" .mak)"
|
||||
done
|
||||
|
||||
if test x"$show_help" = x"yes" ; then
|
||||
cat << EOF
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user