mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 05:48:05 +00:00
UFFD related makefiles cleanup
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
7c78a48b06
commit
10ef427623
@ -35,12 +35,8 @@ endif
|
||||
export DEFINES += $(FEATURE_DEFINES)
|
||||
export CFLAGS += $(FEATURE_DEFINES)
|
||||
|
||||
ifeq ($(call try-cc,$(FEATURE_TEST_UFFD)),y)
|
||||
export UFFD := 1
|
||||
endif
|
||||
|
||||
FEATURES_LIST := TCP_REPAIR STRLCPY STRLCAT PTRACE_PEEKSIGINFO \
|
||||
SETPROCTITLE_INIT MEMFD TCP_REPAIR_WINDOW
|
||||
SETPROCTITLE_INIT MEMFD TCP_REPAIR_WINDOW UFFD
|
||||
|
||||
# $1 - config name
|
||||
define gen-feature-test
|
||||
@ -61,10 +57,6 @@ $(call map,gen-feature-test,$(FEATURES_LIST))
|
||||
ifeq ($$(VDSO),y)
|
||||
$(Q) @echo '#define CONFIG_VDSO' >> $$@
|
||||
$(Q) @echo '' >> $$@
|
||||
endif
|
||||
ifeq ($$(UFFD),1)
|
||||
$(Q) @echo '#define CONFIG_HAS_UFFD' >> $$@
|
||||
$(Q) @echo '' >> $$@
|
||||
endif
|
||||
$(Q) @echo '#endif /* __CR_CONFIG_H__ */' >> $$@
|
||||
endef
|
||||
|
@ -82,6 +82,7 @@ obj-y += uts_ns.o
|
||||
obj-y += path.o
|
||||
obj-y += autofs.o
|
||||
obj-y += fdstore.o
|
||||
obj-y += uffd.o
|
||||
|
||||
ifeq ($(VDSO),y)
|
||||
obj-y += pie-util-vdso.o
|
||||
@ -92,8 +93,6 @@ obj-$(CONFIG_COMPAT) += vdso-compat.o
|
||||
CFLAGS_REMOVE_vdso-compat.o += $(CFLAGS-ASAN) $(CFLAGS-GCOV)
|
||||
endif
|
||||
|
||||
obj-y += uffd.o
|
||||
|
||||
PROTOBUF_GEN := scripts/protobuf-gen.sh
|
||||
|
||||
$(obj)/protobuf-desc.d: $(obj)/protobuf-desc-gen.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user