mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
rules.mak: Allow .mo-objs and .mo-cflags in -y variables
Expand %.mo-objs in -y nested objects, so that we can write combined object -cflags rules like what will be done in the coming patch. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
4239e2dc01
commit
2d38853239
1 changed files with 5 additions and 0 deletions
|
@ -362,4 +362,9 @@ define unnest-vars
|
|||
# Include all the .d files
|
||||
$(eval -include $(addsuffix *.d, $(sort $(dir $($v)))))
|
||||
$(eval $v := $(filter-out %/,$($v))))
|
||||
|
||||
# For all %.mo objects that are directly added into -y, expand them to %.mo-objs
|
||||
$(foreach v,$2,
|
||||
$(eval $v := $(foreach o,$($v),$(if $($o-objs),$($o-objs),$o))))
|
||||
|
||||
endef
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue