powerpc/boot: Expose Kconfig symbols to wrapper
authorJoel Stanley <joel@jms.id.au>
Tue, 9 Oct 2018 23:28:02 +0000 (09:58 +1030)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 13 Oct 2018 11:21:25 +0000 (22:21 +1100)
commit5e9dcb6188a40e604e66dc30fab30c2be89aa1cc
tree1f01d80ceecc00d73524a52c5b294adec7f75f9e
parent719736e1cc12b2fc28eba2122893a449eee66d08
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>
arch/powerpc/boot/.gitignore
arch/powerpc/boot/Makefile
arch/powerpc/boot/serial.c