linux/arch/powerpc
Masahiro Yamada 4ba7f80f42 powerpc/boot: pass CONFIG options in a simpler and more robust way
Commit 5e9dcb6188 ("powerpc/boot: Expose Kconfig symbols to wrapper")
was wrong, but commit e41b93a6be ("powerpc/boot: Fix build failures
with -j 1") was also wrong.

The correct dependency is:

  $(obj)/serial.o: $(obj)/autoconf.h

However, I do not see the reason why we need to copy autoconf.h to
arch/power/boot/. Nor do I see consistency in the way of passing
CONFIG options.

decompress.c references CONFIG_KERNEL_GZIP and CONFIG_KERNEL_XZ, which
are passed via the command line.

serial.c includes autoconf.h to reference a couple of CONFIG options,
but this is fragile because we often forget to include "autoconf.h"
from source files.

In fact, it is already broken.

ppc_asm.h references CONFIG_PPC_8xx, but utils.S is not given any way
to access CONFIG options. So, CONFIG_PPC_8xx is never defined here.

Pass $(LINUXINCLUDE) to make sure CONFIG options are accessible from
all .c and .S files in arch/powerpc/boot/.

I also removed the -traditional flag to make include/linux/kconfig.h
work. This flag makes the preprocessor imitate the behavior of the
pre-standard C compiler, but I do not understand why it is necessary.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190705100144.28785-2-yamada.masahiro@socionext.com
2019-07-10 13:20:44 +10:00
..
boot powerpc/boot: pass CONFIG options in a simpler and more robust way 2019-07-10 13:20:44 +10:00
configs powerpc: Enable CONFIG_IPV6 in ppc64_defconfig 2019-07-04 21:04:06 +10:00
crypto treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
include powerpc: Move PPC_HA() PPC_HI() and PPC_LO() to ppc-opcode.h 2019-07-06 00:29:50 +10:00
kernel powerpc/irq: Don't WARN continuously in arch_local_irq_restore() 2019-07-10 13:20:43 +10:00
kvm powerpc/book3s: Use config independent helpers for page table walk 2019-07-05 00:43:50 +10:00
lib powerpc/64: flush_inval_dcache_range() becomes flush_dcache_range() 2019-07-05 01:35:10 +10:00
math-emu powerpc: math-emu: remove unneeded header search paths 2019-01-14 20:39:27 +11:00
mm powerpc/64: flush_inval_dcache_range() becomes flush_dcache_range() 2019-07-05 01:35:10 +10:00
net Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf 2019-03-16 12:20:08 -07:00
oprofile Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
perf powerpc/perf/24x7: use rb_entry 2019-07-04 17:09:37 +10:00
platforms powerpc/8xx: Add microcode patch to move SMC parameter RAM. 2019-07-05 02:06:38 +10:00
purgatory powerpc: disable KASAN instrumentation on early/critical files. 2019-05-03 01:20:26 +10:00
sysdev powerpc/8xx: move CPM1 related files from sysdev/ to platforms/8xx 2019-07-05 02:06:37 +10:00
tools powerpc/tools/checkpatch: Ignore DT_SPLIT_BINDING_PATCH 2018-12-04 19:45:01 +11:00
xmon powerpc/book3s: Use config independent helpers for page table walk 2019-07-05 00:43:50 +10:00
Kbuild
Kconfig powerpc/boot: Add lzo support for uImage 2019-07-05 02:06:38 +10:00
Kconfig.debug powerpc/xmon: add read-only mode 2019-05-03 02:54:57 +10:00
Makefile treewide: prefix header search paths with $(srctree)/ 2019-05-18 11:49:57 +09:00
Makefile.postlink