[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 2/8] rule.mak: allow per object cflags and li
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v6 2/8] rule.mak: allow per object cflags and libs |
Date: |
Thu, 12 Sep 2013 08:34:09 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 |
Il 12/09/2013 04:52, Fam Zheng ha scritto:
>>> > > define unnest-dir
>>> > > $(foreach var,$(nested-vars),$(call push-var,$(var),$1/))
>>> > > $(eval obj-parent-$1 := $(obj))
>>> > > $(eval obj := $(if $(obj),$(obj)/$1,$1))
>>> > > $(eval include $(SRC_PATH)/$1/Makefile.objs)
>>> > > +$(foreach v,$(nested-vars),$(call fix-obj-vars,$v,$(if
>>> > > $(obj),$(obj)/)))
>>> > > $(eval obj := $(obj-parent-$1))
>>> > > $(eval obj-parent-$1 := )
>>> > > $(foreach var,$(nested-vars),$(call pop-var,$(var),$1/))
>>> > >
>> >
>> > I'm not sure this will work for targets in the toplevel directory when
>> > obj-base is not empty. This can be fixed later though, as part of a
>> > general revamping of obj-base. Please add a FIXME comment.
>> >
> I'm not sure about the problem, can you give an example, so I can be specific
> in the comment?
Can you try using vl.o-cflags instead of a per-target QEMU_CFLAGS? I
think it won't work, because the toplevel Makefile.objs is included
directly and not through unnest-dir.
Paolo
- Re: [Qemu-devel] [PATCH v6 1/8] make.rule: fix $(obj) to a real relative path, (continued)
[Qemu-devel] [PATCH v6 2/8] rule.mak: allow per object cflags and libs, Fam Zheng, 2013/09/11
[Qemu-devel] [PATCH v6 3/8] Makefile: introduce common-obj-m and block-obj-m for DSO, Fam Zheng, 2013/09/11
[Qemu-devel] [PATCH v6 4/8] module: implement module loading function, Fam Zheng, 2013/09/11