OSDN Git Service

x86: Allow generating user-space headers without a compiler
authorBen Hutchings <ben@decadent.org.uk>
Wed, 29 Aug 2018 19:43:17 +0000 (20:43 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 31 Aug 2018 15:08:22 +0000 (17:08 +0200)
commit829fe4aa9ac16417a904ad1de1307de906854bcf
tree88ce51cc7bcf33e82882aec78a7f2e2350a7608e
parent342db04ae71273322f0011384a9ed414df8bdae4
x86: Allow generating user-space headers without a compiler

When bootstrapping an architecture, it's usual to generate the kernel's
user-space headers (make headers_install) before building a compiler.  Move
the compiler check (for asm goto support) to the archprepare target so that
it is only done when building code for the target.

Fixes: e501ce957a78 ("x86: Force asm-goto")
Reported-by: Helmut Grohne <helmutg@debian.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20180829194317.GA4765@decadent.org.uk
arch/x86/Makefile