mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
default-configs: remove redundant keys
TARGET_BASE_ARCH and TARGET_ABI_DIR are 99% of the time the same as TARGET_ARCH, remove them if so. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
a9a7490786
commit
fa73168b08
59 changed files with 8 additions and 81 deletions
|
@ -782,6 +782,14 @@ foreach target : target_dirs
|
|||
config_target += keyval.load('default-configs/targets' / target + '.mak')
|
||||
config_target += { 'TARGET_' + config_target['TARGET_ARCH'].to_upper(): 'y' }
|
||||
|
||||
# Add default keys
|
||||
if 'TARGET_BASE_ARCH' not in config_target
|
||||
config_target += {'TARGET_BASE_ARCH': config_target['TARGET_ARCH']}
|
||||
endif
|
||||
if 'TARGET_ABI_DIR' not in config_target
|
||||
config_target += {'TARGET_ABI_DIR': config_target['TARGET_ARCH']}
|
||||
endif
|
||||
|
||||
foreach k, v: disassemblers
|
||||
if config_host['ARCH'].startswith(k) or config_target['TARGET_BASE_ARCH'].startswith(k)
|
||||
foreach sym: v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue