Skip to contentSkip to conversation

perf tests: Add static build make test

PATCH In review Jiri Olsa 3 participants 3 messages Apr 29, 2014 – May 1, 2014 perf events

lore
Share & tools
lore

Jiri Olsa

author reviewer
#0 lore raw

PATCH 1/1 perf tests: Add static build make test

Adding test for building static perf build into the automated suite. Also available via following commands:

  $ make -f tests/make make_static
  - make_static: cd . && make -f Makefile DESTDIR=/tmp/tmp.7u5MlB4njo LDFLAGS=-static
  $ make -f tests/make make_static_O
  - make_static_O: cd . && make -f Makefile O=/tmp/tmp.Ay6r3wEmtX DESTDIR=/tmp/tmp.vK0KQwO0Vi LDFLAGS=-static
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Corey Ashford <[email protected]>
Cc David Ahern <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
---
 tools/perf/tests/make | 2 ++
 1 file changed, 2 insertions(+)
tools/perf/tests/make +2 -0
index 5daeae1..2f92d6e 100644
@@ -46,6 +46,7 @@ make_install_man    := install-man
 make_install_html   := install-html
 make_install_info   := install-info
 make_install_pdf    := install-pdf
+make_static         := LDFLAGS=-static
 
 # all the NO_* variable combined
 make_minimal        := NO_LIBPERL=1 NO_LIBPYTHON=1 NO_NEWT=1 NO_GTK2=1
@@ -87,6 +88,7 @@ run += make_install_bin
 # run += make_install_info
 # run += make_install_pdf
 run += make_minimal
+run += make_static
 
 ifneq ($(call has,ctags),)
 run += make_tags
Signature · 1 line
1.8.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 35 lines · Jiri Olsa

Adding test for building static perf build into the automated suite. Also available via following commands:

   $ make -f tests/make make_static
   - make_static: cd . && make -f Makefile DESTDIR=/tmp/tmp.7u5MlB4njo LDFLAGS=-static
   $ make -f tests/make make_static_O
   - make_static_O: cd . && make -f Makefile O=/tmp/tmp.Ay6r3wEmtX DESTDIR=/tmp/tmp.vK0KQwO0Vi LDFLAGS=-static
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Corey Ashford <[email protected]>
Cc David Ahern <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
---
  tools/perf/tests/make | 2 ++
  1 file changed, 2 insertions(+)
tools/perf/tests/make +1 -0
index 5daeae1..2f92d6e 100644
@@ -46,6 +46,7 @@ make_install_man    := install-man
  make_install_html   := install-html
  make_install_info   := install-info
  make_install_pdf    := install-pdf
+make_static         := LDFLAGS=-static
 
  # all the NO_* variable combined
  make_minimal        := NO_LIBPERL=1 NO_LIBPYTHON=1 NO_NEWT=1 NO_GTK2=1

tools/perf/tests/make run += make_install_bin · line 94

Quoted 7 lines
tools/perf/tests/make +1 -0
@@ -87,6 +88,7 @@ run += make_install_bin
  # run += make_install_info
  # run += make_install_pdf
  run += make_minimal
+run += make_static
 
  ifneq ($(call has,ctags),)
  run += make_tags
#2 lore raw
In reply to Jiri Olsa
perf tests: Add static build make test
Commit-ID:  611ec127165b572f02823e152d6774e2145305a3
Gitweb:     http://git.kernel.org/tip/611ec127165b572f02823e152d6774e2145305a3
Author:     Jiri Olsa <[email protected]>
AuthorDate: Tue, 29 Apr 2014 09:53:40 +0200
Committer:  Jiri Olsa <[email protected]>
CommitDate: Wed, 30 Apr 2014 16:48:57 +0200

perf tests: Add static build make test

Adding test for building static perf build into the automated suite. Also available via following commands:

  $ make -f tests/make make_static
  - make_static: cd . && make -f Makefile DESTDIR=/tmp/tmp.7u5MlB4njo LDFLAGS=-static
  $ make -f tests/make make_static_O
  - make_static_O: cd . && make -f Makefile O=/tmp/tmp.Ay6r3wEmtX DESTDIR=/tmp/tmp.vK0KQwO0Vi LDFLAGS=-static
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Corey Ashford <[email protected]>
Cc David Ahern <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
---
 tools/perf/tests/make | 2 ++
 1 file changed, 2 insertions(+)
tools/perf/tests/make +2 -0
index 5daeae1..2f92d6e 100644
@@ -46,6 +46,7 @@ make_install_man    := install-man
 make_install_html   := install-html
 make_install_info   := install-info
 make_install_pdf    := install-pdf
+make_static         := LDFLAGS=-static
 
 # all the NO_* variable combined
 make_minimal        := NO_LIBPERL=1 NO_LIBPYTHON=1 NO_NEWT=1 NO_GTK2=1
@@ -87,6 +88,7 @@ run += make_install_bin
 # run += make_install_info
 # run += make_install_pdf
 run += make_minimal
+run += make_static
 
 ifneq ($(call has,ctags),)
 run += make_tags