On 13/02/19 10:49, Markus Armbruster wrote: > * Define QAPI_COMMON_MODULES, QAPI_TARGET_MODULES and QAPI_MODULES in > Makefile.obj > > * Add to util-obj-y in Makefile.obj > > * Add to obj-y in Makefile.target
Why can't both be in Makefile.objs, or in qapi/Makefile.objs? Paolo > No go, because QAPI_TARGET_MODULES is blank there. To make progress, > I duplicated its definition there, marked FIXME. > > Message-Id: <[email protected]> > https://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg01652.html > Diff appended for your convenience. > > I've since realized QAPI_TARGET_MODULES is blank there because it only > gets defined further down, via include $(SRC_PATH)/Makefile.objs. > > This leads me to my problem: > > * On the one hand, I want to add to obj-y after the include defines > QAPI_TARGET_MODULES. > > * On the other hand, I need to be done with adding to obj-y before the > all-obj-y := $(obj-y) line. > > Can't satisfy both. Any ideas on how to better distribute the work > between the makefiles?
