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

Dmitry Safonov 0x7f454c46 at gmail.com
Tue Nov 1 16:36:24 PDT 2016


2016-11-02 2:17 GMT+03:00 Pavel Emelyanov <xemul at virtuozzo.com>:
> 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).

Oh, you are capable in creating an intrigue ;)
Will check how it works in kernel and what we can do here.
(if no one does it in advance)

-- 
             Dmitry


More information about the CRIU mailing list