[CRIU] [PATCH 1/2] make: Add .config file processing

Pavel Emelyanov xemul at virtuozzo.com
Tue Nov 1 16:17:29 PDT 2016


On 11/01/2016 02:30 PM, Dmitry Safonov wrote:
> 2016-11-01 6:19 GMT+03:00 Pavel Emelyanov <xemul at virtuozzo.com>:
>> In this file one can add options with which to build CRIU.
>> Each line is (for now) expanded into CONFIG_$(TEXT) macros
>> defined in config.h that can be tested later in the code.
>>
>> Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
> 
> Looks good
> Reviewed-by: Dmirty Safonov <dsafonov at virtuozzo.com>
> 
> Anyway, I also thought about some thing like that - maybe we
> can enhance it by making those options not only C-defines,
> but also makefile variables, so we can use obj-y the same way
> as in kernel like:
> obj-$(CONFIG_AWESOME_FEATURE) += foobar.c
> 
> Not sure, if we need this right at this moment - but that would
> be nice to have in future.

You're welcome :) Right now there's another issue -- once you
touch .config the whole project gets re-compiled effectively.
This what kernel guys has solved (with pretty huge hammer, but
still).

-- Pavel



More information about the CRIU mailing list