perf build: Move feature checks code under tools/build
authorJiri Olsa <jolsa@kernel.org>
Sun, 1 Mar 2015 20:19:44 +0000 (21:19 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 21 Mar 2015 17:53:35 +0000 (14:53 -0300)
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>
35 files changed:
tools/build/Makefile.feature [moved from tools/perf/config/Makefile.feature with 97% similarity]
tools/build/feature/.gitignore [moved from tools/perf/config/feature-checks/.gitignore with 100% similarity]
tools/build/feature/Makefile [moved from tools/perf/config/feature-checks/Makefile with 100% similarity]
tools/build/feature/test-all.c [moved from tools/perf/config/feature-checks/test-all.c with 100% similarity]
tools/build/feature/test-backtrace.c [moved from tools/perf/config/feature-checks/test-backtrace.c with 100% similarity]
tools/build/feature/test-bionic.c [moved from tools/perf/config/feature-checks/test-bionic.c with 100% similarity]
tools/build/feature/test-compile.c [moved from tools/perf/config/feature-checks/test-compile.c with 100% similarity]
tools/build/feature/test-cplus-demangle.c [moved from tools/perf/config/feature-checks/test-cplus-demangle.c with 100% similarity]
tools/build/feature/test-dwarf.c [moved from tools/perf/config/feature-checks/test-dwarf.c with 100% similarity]
tools/build/feature/test-fortify-source.c [moved from tools/perf/config/feature-checks/test-fortify-source.c with 100% similarity]
tools/build/feature/test-glibc.c [moved from tools/perf/config/feature-checks/test-glibc.c with 100% similarity]
tools/build/feature/test-gtk2-infobar.c [moved from tools/perf/config/feature-checks/test-gtk2-infobar.c with 100% similarity]
tools/build/feature/test-gtk2.c [moved from tools/perf/config/feature-checks/test-gtk2.c with 100% similarity]
tools/build/feature/test-hello.c [moved from tools/perf/config/feature-checks/test-hello.c with 100% similarity]
tools/build/feature/test-libaudit.c [moved from tools/perf/config/feature-checks/test-libaudit.c with 100% similarity]
tools/build/feature/test-libbabeltrace.c [moved from tools/perf/config/feature-checks/test-libbabeltrace.c with 100% similarity]
tools/build/feature/test-libbfd.c [moved from tools/perf/config/feature-checks/test-libbfd.c with 100% similarity]
tools/build/feature/test-libdw-dwarf-unwind.c [moved from tools/perf/config/feature-checks/test-libdw-dwarf-unwind.c with 100% similarity]
tools/build/feature/test-libelf-getphdrnum.c [moved from tools/perf/config/feature-checks/test-libelf-getphdrnum.c with 100% similarity]
tools/build/feature/test-libelf-mmap.c [moved from tools/perf/config/feature-checks/test-libelf-mmap.c with 100% similarity]
tools/build/feature/test-libelf.c [moved from tools/perf/config/feature-checks/test-libelf.c with 100% similarity]
tools/build/feature/test-libnuma.c [moved from tools/perf/config/feature-checks/test-libnuma.c with 100% similarity]
tools/build/feature/test-libperl.c [moved from tools/perf/config/feature-checks/test-libperl.c with 100% similarity]
tools/build/feature/test-libpython-version.c [moved from tools/perf/config/feature-checks/test-libpython-version.c with 100% similarity]
tools/build/feature/test-libpython.c [moved from tools/perf/config/feature-checks/test-libpython.c with 100% similarity]
tools/build/feature/test-libslang.c [moved from tools/perf/config/feature-checks/test-libslang.c with 100% similarity]
tools/build/feature/test-libunwind-debug-frame.c [moved from tools/perf/config/feature-checks/test-libunwind-debug-frame.c with 100% similarity]
tools/build/feature/test-libunwind.c [moved from tools/perf/config/feature-checks/test-libunwind.c with 100% similarity]
tools/build/feature/test-pthread-attr-setaffinity-np.c [moved from tools/perf/config/feature-checks/test-pthread-attr-setaffinity-np.c with 100% similarity]
tools/build/feature/test-stackprotector-all.c [moved from tools/perf/config/feature-checks/test-stackprotector-all.c with 100% similarity]
tools/build/feature/test-sync-compare-and-swap.c [moved from tools/perf/config/feature-checks/test-sync-compare-and-swap.c with 100% similarity]
tools/build/feature/test-timerfd.c [moved from tools/perf/config/feature-checks/test-timerfd.c with 100% similarity]
tools/build/feature/test-zlib.c [moved from tools/perf/config/feature-checks/test-zlib.c with 100% similarity]
tools/perf/Makefile.perf
tools/perf/config/Makefile

similarity index 97%
rename from tools/perf/config/Makefile.feature
rename to tools/build/Makefile.feature
index ea83a92..c6f4489 100644 (file)
@@ -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
 
index e323eab..d5b9e0d 100644 (file)
@@ -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)
index 0127842..6d1918a 100644 (file)
@@ -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