File Index
Files and directories
Sign in
FILE

Makefile.postlink

File preview with syntax highlighting.

linux-6.19.14/arch/s390/Makefile.postlink MAKEFILE
 1# SPDX-License-Identifier: GPL-2.0
 2# ===========================================================================
 3# Post-link s390 pass
 4# ===========================================================================
 5#
 6# 1. Separate relocations from vmlinux into relocs.S.
 7# 2. Strip relocations from vmlinux.
 8
 9PHONY := __archpost
10__archpost:
11
12-include include/config/auto.conf
13include $(srctree)/scripts/Kbuild.include
14
15CMD_RELOCS=arch/s390/tools/relocs
16OUT_RELOCS = arch/s390/boot
17quiet_cmd_relocs = RELOCS  $(OUT_RELOCS)/relocs.S
18      cmd_relocs = \
19	mkdir -p $(OUT_RELOCS); \
20	$(CMD_RELOCS) $@ > $(OUT_RELOCS)/relocs.S
21
22vmlinux.unstripped: FORCE
23	$(call cmd,relocs)
24
25clean:
26	@rm -f $(OUT_RELOCS)/relocs.S
27
28PHONY += FORCE clean
29
30FORCE:
31
32.PHONY: $(PHONY)
~/ Read-only file preview.