File kexec-tools-enable-aarch64-fixup.patch of Package kexec-tools

From: Tony Jones <tonyj@suse.de>
Subject: fixup aarch64 libfdt
Upstream: no

LIBS change had global scope,  fix.

---
 kexec/arch/arm64/Makefile |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

--- a/kexec/arch/arm64/Makefile
+++ b/kexec/arch/arm64/Makefile
@@ -2,9 +2,14 @@
 arm64_FS2DT += kexec/fs2dt.c
 arm64_FS2DT_INCLUDE += -include $(srcdir)/kexec/arch/arm64/kexec-arm64.h
 
+libfdt_SRCS += $(LIBFDT_SRCS:%=kexec/libfdt/%)
+
 arm64_KEXEC_SRCS += \
 	kexec/arch/arm64/kexec-arm64.c \
-	kexec/arch/arm64/kexec-elf-arm64.c
+	kexec/arch/arm64/kexec-elf-arm64.c \
+	$(libfdt_SRCS)
+
+arm64_CPPFLAGS = -I$(srcdir)/kexec/libfdt
 
 arm64_ARCH_REUSE_INITRD =
 arm64_ADD_SEGMENT =
@@ -13,5 +18,3 @@ arm64_VIRT_TO_PHYS =
 dist += $(arm64_KEXEC_SRCS) \
 	kexec/arch/arm64/Makefile \
 	kexec/arch/arm64/kexec-arm64.h
-
-LIBS += -lfdt
openSUSE Build Service is sponsored by