aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/serial.c
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2018-10-10 09:58:02 +1030
committerMichael Ellerman <mpe@ellerman.id.au>2018-10-13 22:21:25 +1100
commit5e9dcb6188a40e604e66dc30fab30c2be89aa1cc (patch)
tree1f01d80ceecc00d73524a52c5b294adec7f75f9e /arch/powerpc/boot/serial.c
parentpowerpc: remove redundant 'default n' from Kconfig-s (diff)
downloadlinux-dev-5e9dcb6188a40e604e66dc30fab30c2be89aa1cc.tar.xz
linux-dev-5e9dcb6188a40e604e66dc30fab30c2be89aa1cc.zip
powerpc/boot: Expose Kconfig symbols to wrapper
Currently the wrapper is built without including anything in $(src)/include/, which means there are no CONFIG_ symbols defined. This means the platform specific serial drivers were never enabled. We now copy the definitions into the boot directory, so any C file can now include autoconf.h to depend on configuration options. Fixes: 866bfc75f40e ("powerpc: conditionally compile platform-specific serial drivers") Signed-off-by: Joel Stanley <joel@jms.id.au> [mpe: Fix to use $(objtree) to find autoconf.h] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to '')
-rw-r--r--arch/powerpc/boot/serial.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/boot/serial.c b/arch/powerpc/boot/serial.c
index 48e3743faedf..f045f8494bf9 100644
--- a/arch/powerpc/boot/serial.c
+++ b/arch/powerpc/boot/serial.c
@@ -18,6 +18,7 @@
#include "stdio.h"
#include "io.h"
#include "ops.h"
+#include "autoconf.h"
static int serial_open(void)
{