perf build: Move feature checks code under tools/build
Moving feature checks code under tools/build directory. Changing also $feature_dir to point to new feature directory location and perf Makefiles to include Makefile.feature from new location. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <david.ahern@oracle.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/n/tip-3lamtb30dhf4wo99y1n8kxg0@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
970e87b338
commit
e6c76d6203
|
@ -1,7 +1,7 @@
|
|||
feature_dir := $(srctree)/tools/perf/config/feature-checks
|
||||
feature_dir := $(srctree)/tools/build/feature
|
||||
|
||||
ifneq ($(OUTPUT),)
|
||||
OUTPUT_FEATURES = $(OUTPUT)config/feature-checks/
|
||||
OUTPUT_FEATURES = $(OUTPUT)feature/
|
||||
$(shell mkdir -p $(OUTPUT_FEATURES))
|
||||
endif
|
||||
|
|
@ -521,7 +521,7 @@ $(INSTALL_DOC_TARGETS):
|
|||
#
|
||||
config-clean:
|
||||
$(call QUIET_CLEAN, config)
|
||||
$(Q)$(MAKE) -C config/feature-checks clean >/dev/null
|
||||
$(Q)$(MAKE) -C $(srctree)/tools/build/feature/ clean >/dev/null
|
||||
|
||||
clean: $(LIBTRACEEVENT)-clean $(LIBAPI)-clean config-clean
|
||||
$(call QUIET_CLEAN, core-objs) $(RM) $(LIB_FILE) $(OUTPUT)perf-archive $(OUTPUT)perf-with-kcore $(LANG_BINDINGS)
|
||||
|
|
|
@ -176,7 +176,7 @@ LDFLAGS += -Wl,-z,noexecstack
|
|||
|
||||
EXTLIBS = -lpthread -lrt -lm -ldl
|
||||
|
||||
include $(src-perf)/config/Makefile.feature
|
||||
include $(srctree)/tools/build/Makefile.feature
|
||||
|
||||
ifeq ($(feature-stackprotector-all), 1)
|
||||
CFLAGS += -fstack-protector-all
|
||||
|
|
Loading…
Reference in New Issue