mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
main: use TARGET_ARCH only for the target-specific #define
Everything else needs to match the executable name, which is TARGET_NAME. Before: $ sh4eb-linux-user/qemu-sh4eb --help usage: qemu-sh4 [options] program [arguments...] Linux CPU emulator (compiled for sh4 emulation) After: $ sh4eb-linux-user/qemu-sh4eb --help usage: qemu-sh4eb [options] program [arguments...] Linux CPU emulator (compiled for sh4eb emulation) Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1370349928-20419-5-git-send-email-pbonzini@redhat.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
b9a7b74f77
commit
2e59915d43
5 changed files with 11 additions and 17 deletions
|
@ -77,16 +77,10 @@ case $line in
|
|||
value=${line#*=}
|
||||
echo "#define $name $value"
|
||||
;;
|
||||
TARGET_ARCH=*) # configuration
|
||||
target_arch=${line#*=}
|
||||
echo "#define TARGET_ARCH \"$target_arch\""
|
||||
;;
|
||||
TARGET_BASE_ARCH=*) # configuration
|
||||
target_base_arch=${line#*=}
|
||||
if [ "$target_base_arch" != "$target_arch" ]; then
|
||||
base_arch_name=`echo $target_base_arch | LC_ALL=C tr '[a-z]' '[A-Z]'`
|
||||
echo "#define TARGET_$base_arch_name 1"
|
||||
fi
|
||||
base_arch_name=`echo $target_base_arch | LC_ALL=C tr '[a-z]' '[A-Z]'`
|
||||
echo "#define TARGET_$base_arch_name 1"
|
||||
;;
|
||||
TARGET_XML_FILES=*)
|
||||
# do nothing
|
||||
|
@ -95,7 +89,8 @@ case $line in
|
|||
# do nothing
|
||||
;;
|
||||
TARGET_NAME=*)
|
||||
# do nothing
|
||||
target_name=${line#*=}
|
||||
echo "#define TARGET_NAME \"$target_name\""
|
||||
;;
|
||||
TARGET_DIRS=*)
|
||||
# do nothing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue