Commit 10ef4276 authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

UFFD related makefiles cleanup

Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 7c78a48b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment