mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
build: generate config.h in the top-make
So, we need CONFIG_HAS_* feature-defines in compel, libsoccr
tools. Let's move this tests upper.
It also reverts commit 411cde8815a4 ("make, soccr: let CRIU depend on
libsoccr"), as we don't need -lsoccr to build feature tests now.
To eliminate any races here, I added $(LIB_FEATURES).
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
20231a3988
commit
ab115f7e36
4 changed files with 29 additions and 25 deletions
18
Makefile
18
Makefile
|
|
@ -177,6 +177,23 @@ endif
|
|||
$(Q) echo "#define CRIU_GITID \"$(GITID)\"" >> $@
|
||||
$(Q) echo "#endif /* __CR_VERSION_H__ */" >> $@
|
||||
|
||||
#
|
||||
# piegen tool might be disabled by hands. Don't use it until
|
||||
# you know what you're doing.
|
||||
ifneq ($(filter ia32 x86 ppc64,$(ARCH)),)
|
||||
ifneq ($(PIEGEN),no)
|
||||
piegen-y := y
|
||||
export piegen-y
|
||||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
# Configure variables.
|
||||
export CONFIG_HEADER := $(SRC_DIR)/criu/include/config.h
|
||||
ifeq ($(filter clean mrproper,$(MAKECMDGOALS)),)
|
||||
include $(SRC_DIR)/Makefile.config
|
||||
endif
|
||||
|
||||
#
|
||||
# Protobuf images first, they are not depending
|
||||
# on anything else.
|
||||
|
|
@ -224,6 +241,7 @@ clean: subclean
|
|||
mrproper: subclean
|
||||
$(Q) $(MAKE) $(build)=images $@
|
||||
$(Q) $(MAKE) $(build)=criu $@
|
||||
$(Q) $(RM) $(CONFIG_HEADER)
|
||||
$(Q) $(RM) $(VERSION_HEADER)
|
||||
$(Q) $(RM) cscope.*
|
||||
$(Q) $(RM) tags TAGS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue