linux-bl808/arch/m68k/coldfire
Masahiro Yamada 3216484550 kbuild: use obj-y instead extra-y for objects placed at the head
The objects placed at the head of vmlinux need special treatments:

 - arch/$(SRCARCH)/Makefile adds them to head-y in order to place
   them before other archives in the linker command line.

 - arch/$(SRCARCH)/kernel/Makefile adds them to extra-y instead of
   obj-y to avoid them going into built-in.a.

This commit gets rid of the latter.

Create vmlinux.a to collect all the objects that are unconditionally
linked to vmlinux. The objects listed in head-y are moved to the head
of vmlinux.a by using 'ar m'.

With this, arch/$(SRCARCH)/kernel/Makefile can consistently use obj-y
for builtin objects.

There is no *.o that is directly linked to vmlinux. Drop unneeded code
in scripts/clang-tools/gen_compile_commands.py.

$(AR) mPi needs 'T' to workaround the llvm-ar bug. The fix was suggested
by Nathan Chancellor [1].

[1]: https://lore.kernel.org/llvm/YyjjT5gQ2hGMH0ni@dev-arch.thelio-3990X/

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
2022-10-02 18:04:05 +09:00
..
amcore.c
cache.c
clk.c
device.c
dma_timer.c
entry.S
firebee.c
gpio.c
head.S
intc-2.c m68k: Fix syntax errors in comments 2022-07-25 09:01:09 +10:00
intc-525x.c
intc-5249.c
intc-5272.c
intc-simr.c
intc.c
m53xx.c
m54xx.c
m520x.c
m523x.c
m525x.c
m527x.c
m528x.c
m5206.c
m5249.c
m5272.c
m5307.c
m5407.c
m5441x.c
Makefile kbuild: use obj-y instead extra-y for objects placed at the head 2022-10-02 18:04:05 +09:00
mcf8390.c
nettel.c
pci.c
pit.c
reset.c
sltimers.c
stmark2.c
timers.c
vectors.c