]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[loong64] Add support for building EFI binaries 820/head
authorXiaotian Wu <wuxiaotian@loongson.cn>
Thu, 29 Jun 2023 14:52:28 +0000 (15:52 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 29 Jun 2023 14:53:57 +0000 (15:53 +0100)
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/loong64/Makefile.efi [new file with mode: 0644]
src/config/defaults/efi.h

diff --git a/src/arch/loong64/Makefile.efi b/src/arch/loong64/Makefile.efi
new file mode 100644 (file)
index 0000000..1c51bcd
--- /dev/null
@@ -0,0 +1,14 @@
+# -*- makefile -*- : Force emacs to use Makefile mode
+
+# Specify EFI image builder
+#
+ELF2EFI                = $(ELF2EFI64)
+
+# Specify EFI boot file
+#
+EFI_BOOT_FILE  = bootloongarch64.efi
+
+# Include generic EFI Makefile
+#
+MAKEDEPS       += Makefile.efi
+include Makefile.efi
index cb9e2348a0087bd0b63c7cb0959afb8fd5daa090..e39d475b7fd98defee633c61a4a0ea3701f2c2b9 100644 (file)
@@ -67,4 +67,9 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
 #define        IMAGE_GZIP              /* GZIP image support */
 #endif
 
+#if defined ( __loongarch__ )
+#define IOAPI_LOONG64
+#define NAP_EFILOONG64
+#endif
+
 #endif /* CONFIG_DEFAULTS_EFI_H */