OpenCloudOS-Kernel/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
..
Makefile kbuild: use obj-y instead extra-y for objects placed at the head 2022-10-02 18:04:05 +09:00
amcore.c m68k: add Sysam AMCORE open board support 2016-12-05 08:53:27 +10:00
cache.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
clk.c m68k: coldfire: return success for clk_enable(NULL) 2021-08-23 08:40:04 +10:00
device.c m68k: coldfire/device.c: protect FLEXCAN blocks 2022-07-25 09:01:09 +10:00
dma_timer.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
entry.S m68k: Remove set_fs() 2021-09-24 13:35:07 +02:00
firebee.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
gpio.c m68k: coldfire: Include the GPIO driver header 2019-09-09 09:32:32 +10:00
head.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
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 genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
intc-simr.c m68k: coldfire: fix irq ranges 2021-04-23 15:33:40 +10:00
intc.c m68k: fix typos in comments 2022-05-16 13:18:30 +10:00
m53xx.c m68k: fix typos in comments 2022-05-16 13:18:30 +10:00
m54xx.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m520x.c m68k: coldfire: remove private clk_get/clk_put 2021-06-08 17:00:09 +02:00
m523x.c m68k: coldfire: make symbol m523x_clk_lookup static 2022-07-25 09:01:09 +10:00
m525x.c m68k/coldfire: change pll var. to clk_pll 2021-07-26 08:41:38 +10:00
m527x.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m528x.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m5206.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m5249.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m5272.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m5307.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m5407.c m68k: coldfire: use clkdev_lookup on most coldfire 2021-06-08 17:00:09 +02:00
m5441x.c m68k: m5441x: remove erroneous clock disable 2022-03-07 14:51:12 +10:00
mcf8390.c
nettel.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci.c m68k: fix typos in comments 2022-05-16 13:18:30 +10:00
pit.c m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
reset.c
sltimers.c m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
stmark2.c m68k: stmark2: update board setup 2021-08-23 08:40:04 +10:00
timers.c m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
vectors.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00