Makefile (61f3f8fc223524692aaa87cf46d95ca3015e83a9) Makefile (4c0f032d496385fa8071e404a1bc33f4abbc2f81)
1# SPDX-License-Identifier: GPL-2.0
2
3OBJECT_FILES_NON_STANDARD := y
4
5purgatory-y := head.o purgatory.o string.o sha256.o mem.o
6
1# SPDX-License-Identifier: GPL-2.0
2
3OBJECT_FILES_NON_STANDARD := y
4
5purgatory-y := head.o purgatory.o string.o sha256.o mem.o
6
7targets += $(purgatory-y) purgatory.lds purgatory purgatory.ro kexec-purgatory.c
7targets += $(purgatory-y) purgatory.lds purgatory purgatory.ro
8PURGATORY_OBJS = $(addprefix $(obj)/,$(purgatory-y))
9
10$(obj)/sha256.o: $(srctree)/lib/sha256.c FORCE
11 $(call if_changed_rule,cc_o_c)
12
13$(obj)/mem.o: $(srctree)/arch/s390/lib/mem.S FORCE
14 $(call if_changed_rule,as_o_S)
15

--- 13 unchanged lines hidden (view full) ---

29
30OBJCOPYFLAGS_purgatory.ro := -O elf64-s390
31OBJCOPYFLAGS_purgatory.ro += --remove-section='*debug*'
32OBJCOPYFLAGS_purgatory.ro += --remove-section='.comment'
33OBJCOPYFLAGS_purgatory.ro += --remove-section='.note.*'
34$(obj)/purgatory.ro: $(obj)/purgatory FORCE
35 $(call if_changed,objcopy)
36
8PURGATORY_OBJS = $(addprefix $(obj)/,$(purgatory-y))
9
10$(obj)/sha256.o: $(srctree)/lib/sha256.c FORCE
11 $(call if_changed_rule,cc_o_c)
12
13$(obj)/mem.o: $(srctree)/arch/s390/lib/mem.S FORCE
14 $(call if_changed_rule,as_o_S)
15

--- 13 unchanged lines hidden (view full) ---

29
30OBJCOPYFLAGS_purgatory.ro := -O elf64-s390
31OBJCOPYFLAGS_purgatory.ro += --remove-section='*debug*'
32OBJCOPYFLAGS_purgatory.ro += --remove-section='.comment'
33OBJCOPYFLAGS_purgatory.ro += --remove-section='.note.*'
34$(obj)/purgatory.ro: $(obj)/purgatory FORCE
35 $(call if_changed,objcopy)
36
37quiet_cmd_bin2c = BIN2C $@
38 cmd_bin2c = $(objtree)/scripts/bin2c kexec_purgatory < $< > $@
37$(obj)/kexec-purgatory.o: $(obj)/kexec-purgatory.S $(obj)/purgatory.ro FORCE
38 $(call if_changed_rule,as_o_S)
39
39
40$(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE
41 $(call if_changed,bin2c)
42
43obj-$(CONFIG_ARCH_HAS_KEXEC_PURGATORY) += kexec-purgatory.o
40obj-$(CONFIG_ARCH_HAS_KEXEC_PURGATORY) += kexec-purgatory.o