1. 03 1月, 2017 1 次提交
  2. 11 12月, 2016 1 次提交
  3. 25 10月, 2016 1 次提交
  4. 04 10月, 2016 1 次提交
  5. 13 7月, 2016 1 次提交
  6. 05 7月, 2016 1 次提交
  7. 19 3月, 2016 1 次提交
  8. 03 3月, 2016 1 次提交
    • J
      objtool: Support CROSS_COMPILE · c1d45c3a
      Josh Poimboeuf 提交于
      When building with CONFIG_STACK_VALIDATION on a ppc64le host with an x86
      cross-compiler, Stephen Rothwell saw the following objtool build errors:
      
          DESCEND  objtool
          CC       /home/sfr/next/x86_64_allmodconfig/tools/objtool/builtin-check.o
          CC       /home/sfr/next/x86_64_allmodconfig/tools/objtool/special.o
          CC       /home/sfr/next/x86_64_allmodconfig/tools/objtool/elf.o
          CC       /home/sfr/next/x86_64_allmodconfig/tools/objtool/objtool.o
          MKDIR    /home/sfr/next/x86_64_allmodconfig/tools/objtool/arch/x86/insn/
          CC       /home/sfr/next/x86_64_allmodconfig/tools/objtool/libstring.o
        elf.c:22:23: fatal error: sys/types.h: No such file or directory
        compilation terminated.
          CC       /home/sfr/next/x86_64_allmodconfig/tools/objtool/exec-cmd.o
          CC       /home/sfr/next/x86_64_allmodconfig/tools/objtool/help.o
        builtin-check.c:28:20: fatal error: string.h: No such file or directory
        compilation terminated.
        objtool.c:28:19: fatal error: stdio.h: No such file or directory
        compilation terminated.
      
      It fails to build because it tries to compile objtool with the
      cross-compiler instead of the host compiler.
      
      Ensure that it always uses the host compiler by ignoring CROSS_COMPILE.
      
      In order to do that properly, the libsubcmd.a library needs to be built
      in tools/objtool/ rather than tools/lib/subcmd/.  The latter directory
      contains the cross-compiled version which is needed for perf and
      possibly other tools.
      
      Note that cross-compiling for x86 on a _big_ endian system would result
      in a bunch of false positive objtool warnings during the kernel build
      because it isn't endian-aware.  But that's generally a rare edge case
      and there haven't been any reports of anybody needing that.
      Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NJosh Poimboeuf <jpoimboe@redhat.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: http://lkml.kernel.org/r/55b63eefc347f1bb28573f972d8d1adbf1f1c31d.1456962210.git.jpoimboe@redhat.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      c1d45c3a
  9. 12 1月, 2016 1 次提交
    • J
      tools subcmd: Add missing NORETURN define for parse-options.h · 24b1e5d7
      Josh Poimboeuf 提交于
      parse-options.h uses the NORETURN macro without defining it.  perf
      doesn't see a build error because it defines the macro in util.h before
      including parse-options.h.  But any other tool including it will see an
      error.
      
      Define the macro in parse-options.h (if not already defined) so that
      other tools can include it.
      Signed-off-by: NJosh Poimboeuf <jpoimboe@redhat.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Andi Kleen <andi@firstfloor.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Andy Lutomirski <luto@kernel.org>
      Cc: Bernd Petrovitsch <bernd@petrovitsch.priv.at>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Chris J Arges <chris.j.arges@canonical.com>
      Cc: Jiri Slaby <jslaby@suse.cz>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Michal Marek <mmarek@suse.cz>
      Cc: Namhyung Kim <namhyung@gmail.com>
      Cc: Pedro Alves <palves@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: live-patching@vger.kernel.org
      Cc: x86@kernel.org
      Link: http://lkml.kernel.org/r/6c16294ac6dbe5e2ca28fd935fe4389996588564.1450442274.git.jpoimboe@redhat.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      24b1e5d7
  10. 18 12月, 2015 2 次提交