| 1 |
# |
| 2 |
# kexec riscv |
| 3 |
# |
| 4 |
riscv_KEXEC_SRCS = kexec/arch/riscv/crashdump-riscv.c |
| 5 |
riscv_KEXEC_SRCS += kexec/arch/riscv/kexec-elf-riscv.c |
| 6 |
riscv_KEXEC_SRCS += kexec/arch/riscv/kexec-image-riscv.c |
| 7 |
riscv_KEXEC_SRCS += kexec/arch/riscv/kexec-riscv.c |
| 8 |
|
| 9 |
riscv_DT_OPS += kexec/dt-ops.c |
| 10 |
|
| 11 |
riscv_MEM_REGIONS = kexec/mem_regions.c |
| 12 |
|
| 13 |
riscv_ARCH_REUSE_INITRD = |
| 14 |
|
| 15 |
riscv_CPPFLAGS += -I $(srcdir)/kexec/ |
| 16 |
|
| 17 |
dist += $(riscv_KEXEC_SRCS) \ |
| 18 |
kexec/arch/riscv/image-header.h \ |
| 19 |
kexec/arch/riscv/include/arch/options.h \ |
| 20 |
kexec/arch/riscv/iomem.h \ |
| 21 |
kexec/arch/riscv/kexec-riscv.h \ |
| 22 |
kexec/arch/riscv/Makefile |
| 23 |
|
| 24 |
ifdef HAVE_LIBFDT |
| 25 |
|
| 26 |
LIBS += -lfdt |
| 27 |
|
| 28 |
else |
| 29 |
|
| 30 |
include $(srcdir)/kexec/libfdt/Makefile.libfdt |
| 31 |
|
| 32 |
libfdt_SRCS += $(LIBFDT_SRCS:%=kexec/libfdt/%) |
| 33 |
|
| 34 |
riscv_CPPFLAGS += -I$(srcdir)/kexec/libfdt |
| 35 |
|
| 36 |
riscv_KEXEC_SRCS += $(libfdt_SRCS) |
| 37 |
|
| 38 |
endif |