06 Oct, 2016

1 commit

  • Add new rule to compile .cpp file to .o use g++. C++ support is required
    for built-in clang and LLVM support.

    Linker side support will be introduced by following commits.

    Signed-off-by: Wang Nan
    Cc: Alexei Starovoitov
    Cc: He Kuang
    Cc: Jiri Olsa
    Cc: Zefan Li
    Cc: pi3orama@163.com
    Link: http://lkml.kernel.org/r/1474874832-134786-2-git-send-email-wangnan0@huawei.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Wang Nan
     

03 Oct, 2016

1 commit

  • In some cases, like for fixdep and shortly for jevents, we need to build a tool
    to run on the host that will be used in building a tool, such as perf, that is
    being cross compiled, so do like the kernel and provide HOSTCC, HOSTLD and HOSTAR
    to do that.

    Signed-off-by: Jiri Olsa
    Requested-by: Andi Kleen
    Requested-and-Tested-by: Arnaldo Carvalho de Melo
    Cc: Madhavan Srinivasan
    Cc: Peter Zijlstra
    Cc: Sukadev Bhattiprolu
    Cc: linuxppc-dev@lists.ozlabs.org
    Link: http://lkml.kernel.org/r/20160927141846.GA6589@krava
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     

29 Sep, 2015

2 commits

  • Making the fixdep helper to be invoked within dep-cmd.

    Each user of the build framework needs to make sure fixdep exists before
    executing the build itself.

    If the build doesn't find fixdep, it falls back to the old style
    dependency tracking.

    Signed-off-by: Jiri Olsa
    Cc: David Ahern
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1443004442-32660-6-git-send-email-jolsa@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     
  • So it's easier to add more functionality in the following commit.

    Signed-off-by: Jiri Olsa
    Cc: David Ahern
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1443004442-32660-5-git-send-email-jolsa@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     

12 Feb, 2015

1 commit

  • Adding new build framework into 'tools/build' to be used by tools.

    There's no change for actual building at this point, it comes in the
    next patches.

    The idea and more details are explained in the
    'tools/build/Documentation/Build.txt' file.

    I adopted everything from the kernel build system, with some changes to
    allow for multiple binaries build definitions.

    While the kernel's build output is single image (forget modules) we need
    to be able to build several binaries/libraries.

    The basic idea is that sser provides 'Build' files with objects
    definitions like:

    perf-y += a.o
    perf-y += b.o
    libperf-y += c.o
    libperf-y += d.o

    and the build framework outputs files:

    perf-in.o # a.o, b.o compiled in
    libperf-in.o # c.o, d.o compiled in

    Signed-off-by: Jiri Olsa
    Tested-by: Sukadev Bhattiprolu
    Tested-by: Will Deacon
    Cc: Alexis Berlemont
    Cc: Borislav Petkov
    Cc: Corey Ashford
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-fbj22h4av0otlxupwcmrxgpa@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa