1 # SPDX-License-Identifier: GPL-2.0 2 # ============================================ 3 # Post-link s390 pass 4 # ============================================ 5 # 6 # 1. Separate relocations from vmlinux into re 7 # 2. Strip relocations from vmlinux. 8 9 PHONY := __archpost 10 __archpost: 11 12 -include include/config/auto.conf 13 include $(srctree)/scripts/Kbuild.include 14 15 CMD_RELOCS=arch/s390/tools/relocs 16 OUT_RELOCS = arch/s390/boot 17 quiet_cmd_relocs = RELOCS $(OUT_RELOCS)/reloc 18 cmd_relocs = \ 19 mkdir -p $(OUT_RELOCS); \ 20 $(CMD_RELOCS) $@ > $(OUT_RELOCS)/reloc 21 22 quiet_cmd_strip_relocs = RSTRIP $@ 23 cmd_strip_relocs = \ 24 $(OBJCOPY) --remove-section='.rel.*' - 25 --remove-section='.rela.*' 26 27 vmlinux: FORCE 28 $(call cmd,relocs) 29 $(call cmd,strip_relocs) 30 31 clean: 32 @rm -f $(OUT_RELOCS)/relocs.S 33 34 PHONY += FORCE clean 35 36 FORCE: 37 38 .PHONY: $(PHONY)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.