Commit a7d2e27c authored by Anton Midyukov's avatar Anton Midyukov

Initial loongarch64 support

parent cc1fd337
......@@ -10,7 +10,7 @@ distro/syslinux: distro/.boot \
@$(call set,BOOTLOADER,isolinux)
endif
ifeq (,$(filter-out i586 x86_64 aarch64 ppc64le riscv64,$(ARCH)))
ifeq (,$(filter-out i586 x86_64 aarch64 ppc64le riscv64 loongarch64,$(ARCH)))
distro/grub: distro/.boot use/grub use/hdt use/memtest +efi \
use/grub/localboot_bios.cfg use/grub/sdab_bios.cfg; @:
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
......
......@@ -6,7 +6,7 @@
# NB: "mysterious" conflicts if BASE_BOOTLOADER is empty
GRUB_ARCHES := i586 x86_64 aarch64 ppc64le riscv64
GRUB_ARCHES := i586 x86_64 aarch64 ppc64le riscv64 loongarch64
use/bootloader: use/pkgpriorities
ifneq (,$(filter-out e2k%,$(ARCH)))
......
EFI_ARCHES := x86_64 aarch64 riscv64
EFI_ARCHES := x86_64 aarch64 riscv64 loongarch64
+efi: use/efi/signed; @:
......
# default is plain text prompt
# NB: might be usbflash-ready hybrid iso
ifeq (,$(filter-out i586 x86_64 ppc64le aarch64 riscv64,$(ARCH)))
ifeq (,$(filter-out i586 x86_64 ppc64le aarch64 riscv64 loongarch64,$(ARCH)))
use/grub: sub/stage1 $(ISOHYBRID:%=use/isohybrid)
@$(call add_feature)
......
......@@ -6,9 +6,13 @@ else
ifeq (,$(filter-out riscv64,$(ARCH)))
@$(call try,KFLAVOURS,un-def)
else
ifeq (,$(filter-out loongarch64,$(ARCH)))
@$(call try,KFLAVOURS,loongarch)
else
@$(call try,KFLAVOURS,std-def)
endif
endif
endif
@$(call xport,KFLAVOURS)
use/kernel/latest: use/kernel; @:
......
......@@ -9,7 +9,7 @@ boot/iso:
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
@$(call try,BOOTLOADER,isolinux)
endif
ifeq (,$(filter-out aarch64 riscv64,$(ARCH)))
ifeq (,$(filter-out aarch64 riscv64 loongarch64,$(ARCH)))
@$(call try,BOOTLOADER,efiboot)
endif
ifeq (,$(filter-out e2k%,$(ARCH)))
......
......@@ -21,7 +21,7 @@ else
vm/.base-grub: vm/.base-grub-efi; @:
endif
ifeq (,$(filter-out x86_64 aarch64 riscv64,$(ARCH)))
ifeq (,$(filter-out x86_64 aarch64 riscv64 loongarch64,$(ARCH)))
vm/.base-grub-efi: vm/.bare use/efi/grub; @:
else
vm/.base-grub-efi: vm/.bare; @:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment