Commit a7d2e27c authored by Anton Midyukov's avatar Anton Midyukov

Initial loongarch64 support

parent cc1fd337
...@@ -10,7 +10,7 @@ distro/syslinux: distro/.boot \ ...@@ -10,7 +10,7 @@ distro/syslinux: distro/.boot \
@$(call set,BOOTLOADER,isolinux) @$(call set,BOOTLOADER,isolinux)
endif 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 \ distro/grub: distro/.boot use/grub use/hdt use/memtest +efi \
use/grub/localboot_bios.cfg use/grub/sdab_bios.cfg; @: use/grub/localboot_bios.cfg use/grub/sdab_bios.cfg; @:
ifeq (,$(filter-out i586 x86_64,$(ARCH))) ifeq (,$(filter-out i586 x86_64,$(ARCH)))
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# NB: "mysterious" conflicts if BASE_BOOTLOADER is empty # 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 use/bootloader: use/pkgpriorities
ifneq (,$(filter-out e2k%,$(ARCH))) ifneq (,$(filter-out e2k%,$(ARCH)))
......
EFI_ARCHES := x86_64 aarch64 riscv64 EFI_ARCHES := x86_64 aarch64 riscv64 loongarch64
+efi: use/efi/signed; @: +efi: use/efi/signed; @:
......
# default is plain text prompt # default is plain text prompt
# NB: might be usbflash-ready hybrid iso # 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) use/grub: sub/stage1 $(ISOHYBRID:%=use/isohybrid)
@$(call add_feature) @$(call add_feature)
......
...@@ -6,9 +6,13 @@ else ...@@ -6,9 +6,13 @@ else
ifeq (,$(filter-out riscv64,$(ARCH))) ifeq (,$(filter-out riscv64,$(ARCH)))
@$(call try,KFLAVOURS,un-def) @$(call try,KFLAVOURS,un-def)
else else
ifeq (,$(filter-out loongarch64,$(ARCH)))
@$(call try,KFLAVOURS,loongarch)
else
@$(call try,KFLAVOURS,std-def) @$(call try,KFLAVOURS,std-def)
endif endif
endif endif
endif
@$(call xport,KFLAVOURS) @$(call xport,KFLAVOURS)
use/kernel/latest: use/kernel; @: use/kernel/latest: use/kernel; @:
......
...@@ -9,7 +9,7 @@ boot/iso: ...@@ -9,7 +9,7 @@ boot/iso:
ifeq (,$(filter-out i586 x86_64,$(ARCH))) ifeq (,$(filter-out i586 x86_64,$(ARCH)))
@$(call try,BOOTLOADER,isolinux) @$(call try,BOOTLOADER,isolinux)
endif endif
ifeq (,$(filter-out aarch64 riscv64,$(ARCH))) ifeq (,$(filter-out aarch64 riscv64 loongarch64,$(ARCH)))
@$(call try,BOOTLOADER,efiboot) @$(call try,BOOTLOADER,efiboot)
endif endif
ifeq (,$(filter-out e2k%,$(ARCH))) ifeq (,$(filter-out e2k%,$(ARCH)))
......
...@@ -21,7 +21,7 @@ else ...@@ -21,7 +21,7 @@ else
vm/.base-grub: vm/.base-grub-efi; @: vm/.base-grub: vm/.base-grub-efi; @:
endif 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; @: vm/.base-grub-efi: vm/.bare use/efi/grub; @:
else else
vm/.base-grub-efi: vm/.bare; @: 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