configure: factor out adding disas configure
Every arch adds its disas configury to both its own config as well config_disas_all. Make a small function do to both at once. Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com> Message-Id: <1440844439-19391-1-git-send-email-crosthwaite.peter@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
f42bf6a262
commit
c765fcac96
65
configure
vendored
65
configure
vendored
@ -5483,91 +5483,76 @@ fi
|
|||||||
cflags=""
|
cflags=""
|
||||||
ldflags=""
|
ldflags=""
|
||||||
|
|
||||||
|
disas_config() {
|
||||||
|
echo "CONFIG_${1}_DIS=y" >> $config_target_mak
|
||||||
|
echo "CONFIG_${1}_DIS=y" >> config-all-disas.mak
|
||||||
|
}
|
||||||
|
|
||||||
for i in $ARCH $TARGET_BASE_ARCH ; do
|
for i in $ARCH $TARGET_BASE_ARCH ; do
|
||||||
case "$i" in
|
case "$i" in
|
||||||
alpha)
|
alpha)
|
||||||
echo "CONFIG_ALPHA_DIS=y" >> $config_target_mak
|
disas_config "ALPHA"
|
||||||
echo "CONFIG_ALPHA_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
aarch64)
|
aarch64)
|
||||||
if test -n "${cxx}"; then
|
if test -n "${cxx}"; then
|
||||||
echo "CONFIG_ARM_A64_DIS=y" >> $config_target_mak
|
disas_config "ARM_A64"
|
||||||
echo "CONFIG_ARM_A64_DIS=y" >> config-all-disas.mak
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
arm)
|
arm)
|
||||||
echo "CONFIG_ARM_DIS=y" >> $config_target_mak
|
disas_config "ARM"
|
||||||
echo "CONFIG_ARM_DIS=y" >> config-all-disas.mak
|
|
||||||
if test -n "${cxx}"; then
|
if test -n "${cxx}"; then
|
||||||
echo "CONFIG_ARM_A64_DIS=y" >> $config_target_mak
|
disas_config "ARM_A64"
|
||||||
echo "CONFIG_ARM_A64_DIS=y" >> config-all-disas.mak
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
cris)
|
cris)
|
||||||
echo "CONFIG_CRIS_DIS=y" >> $config_target_mak
|
disas_config "CRIS"
|
||||||
echo "CONFIG_CRIS_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
hppa)
|
hppa)
|
||||||
echo "CONFIG_HPPA_DIS=y" >> $config_target_mak
|
disas_config "HPPA"
|
||||||
echo "CONFIG_HPPA_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
i386|x86_64|x32)
|
i386|x86_64|x32)
|
||||||
echo "CONFIG_I386_DIS=y" >> $config_target_mak
|
disas_config "I386"
|
||||||
echo "CONFIG_I386_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
ia64*)
|
ia64*)
|
||||||
echo "CONFIG_IA64_DIS=y" >> $config_target_mak
|
disas_config "IA64"
|
||||||
echo "CONFIG_IA64_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
lm32)
|
lm32)
|
||||||
echo "CONFIG_LM32_DIS=y" >> $config_target_mak
|
disas_config "LM32"
|
||||||
echo "CONFIG_LM32_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
m68k)
|
m68k)
|
||||||
echo "CONFIG_M68K_DIS=y" >> $config_target_mak
|
disas_config "M68K"
|
||||||
echo "CONFIG_M68K_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
microblaze*)
|
microblaze*)
|
||||||
echo "CONFIG_MICROBLAZE_DIS=y" >> $config_target_mak
|
disas_config "MICROBLAZE"
|
||||||
echo "CONFIG_MICROBLAZE_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
mips*)
|
mips*)
|
||||||
echo "CONFIG_MIPS_DIS=y" >> $config_target_mak
|
disas_config "MIPS"
|
||||||
echo "CONFIG_MIPS_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
moxie*)
|
moxie*)
|
||||||
echo "CONFIG_MOXIE_DIS=y" >> $config_target_mak
|
disas_config "MOXIE"
|
||||||
echo "CONFIG_MOXIE_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
or32)
|
or32)
|
||||||
echo "CONFIG_OPENRISC_DIS=y" >> $config_target_mak
|
disas_config "OPENRISC"
|
||||||
echo "CONFIG_OPENRISC_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
ppc*)
|
ppc*)
|
||||||
echo "CONFIG_PPC_DIS=y" >> $config_target_mak
|
disas_config "PPC"
|
||||||
echo "CONFIG_PPC_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
s390*)
|
s390*)
|
||||||
echo "CONFIG_S390_DIS=y" >> $config_target_mak
|
disas_config "S390"
|
||||||
echo "CONFIG_S390_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
sh4)
|
sh4)
|
||||||
echo "CONFIG_SH4_DIS=y" >> $config_target_mak
|
disas_config "SH4"
|
||||||
echo "CONFIG_SH4_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
sparc*)
|
sparc*)
|
||||||
echo "CONFIG_SPARC_DIS=y" >> $config_target_mak
|
disas_config "SPARC"
|
||||||
echo "CONFIG_SPARC_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
xtensa*)
|
xtensa*)
|
||||||
echo "CONFIG_XTENSA_DIS=y" >> $config_target_mak
|
disas_config "XTENSA"
|
||||||
echo "CONFIG_XTENSA_DIS=y" >> config-all-disas.mak
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
if test "$tcg_interpreter" = "yes" ; then
|
if test "$tcg_interpreter" = "yes" ; then
|
||||||
echo "CONFIG_TCI_DIS=y" >> $config_target_mak
|
disas_config "TCI"
|
||||||
echo "CONFIG_TCI_DIS=y" >> config-all-disas.mak
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$ARCH" in
|
case "$ARCH" in
|
||||||
|
Loading…
Reference in New Issue
Block a user