make: Be able to force turning off piegen

For testing purpose we need to disable using of
piegen utility. So lets add PIEGEN make option
thus one can "PIEGEN=no make" to build criu
without piegen at all.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2015-06-16 12:31:00 +03:00 committed by Pavel Emelyanov
parent 2a0c8db72b
commit bf4243e303
4 changed files with 21 additions and 8 deletions

View file

@ -40,6 +40,9 @@ ifeq ($(VDSO),y)
endif
ifeq ($(call try-cc,$(SETPROCTITLE_INIT_TEST),-lbsd),y)
$(Q) @echo '#define CONFIG_HAS_SETPROCTITLE_INIT' >> $@
endif
ifeq ($(piegen-y),y)
$(Q) @echo '#define CONFIG_PIEGEN' >> $@
endif
$(Q) @echo '#endif /* __CR_CONFIG_H__ */' >> $@