diff options
author | Weijie Gao <hackpascal@gmail.com> | 2024-01-07 03:10:45 +0800 |
---|---|---|
committer | Chuanhong Guo <gch981213@gmail.com> | 2024-05-04 14:14:16 +0800 |
commit | 7fcb82665e96a50174084c8bfcd0302ce31291f4 (patch) | |
tree | 6693d4e3537166ccfff51c617659e50500163a9e /config | |
parent | 197d90dc31741a5510cd2218eff0befa935312cd (diff) | |
download | openwrt-7fcb82665e96a50174084c8bfcd0302ce31291f4.tar.gz openwrt-7fcb82665e96a50174084c8bfcd0302ce31291f4.tar.bz2 openwrt-7fcb82665e96a50174084c8bfcd0302ce31291f4.zip |
loongarch64: new target
Add target for Loongson LoongArch64-based boards.
LoongArch is a new RISC ISA developed by Loongson. It's a bit like
MIPS or RISC-V. LoongArch includes both 32-bit and 64-bit versions
(LoongArch32/LoongArch64).
Loongson 3A5000 and 3A6000 are the two existing CPUs of LoongArch64
and is used for PC products. It's BIOS supports ACPI and UEFI-only
boot. These CPUs supports SMP and SMT.
At present only LoongArch64 is supported by linux kernel.
Toolchain requirement:
binutils >= 2.40
gcc >= 13.1
For details, please check the following links:
https://lwn.net/Articles/861951/
https://loongson.github.io/LoongArch-Documentation/README-EN.html
Signed-off-by: Weijie Gao <hackpascal@gmail.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/Config-images.in | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/config/Config-images.in b/config/Config-images.in index 5222065b04..47f3dfc0d9 100644 --- a/config/Config-images.in +++ b/config/Config-images.in @@ -204,13 +204,14 @@ menu "Target Images" default y config GRUB_EFI_IMAGES - bool "Build GRUB EFI images (Linux x86 or x86_64 host only)" - depends on TARGET_x86 || TARGET_armsr + bool "Build GRUB EFI images" + depends on TARGET_x86 || TARGET_armsr || TARGET_loongarch64 depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS select PACKAGE_grub2 if TARGET_x86 select PACKAGE_grub2-efi if TARGET_x86 select PACKAGE_grub2-bios-setup if TARGET_x86 select PACKAGE_grub2-efi-arm if TARGET_armsr + select PACKAGE_grub2-efi-loongarch64 if TARGET_loongarch64 select PACKAGE_kmod-fs-vfat default y @@ -276,12 +277,12 @@ menu "Target Images" config TARGET_SERIAL string "Serial port device" - depends on TARGET_x86 || TARGET_armsr + depends on TARGET_x86 || TARGET_armsr || TARGET_loongarch64 default "ttyS0" config TARGET_IMAGES_GZIP bool "GZip images" - depends on TARGET_ROOTFS_EXT4FS || TARGET_x86 || TARGET_armsr || TARGET_malta + depends on TARGET_ROOTFS_EXT4FS || TARGET_x86 || TARGET_armsr || TARGET_malta || TARGET_loongarch64 default y comment "Image Options" @@ -300,6 +301,7 @@ menu "Target Images" config TARGET_ROOTFS_PARTSIZE int "Root filesystem partition size (in MiB)" depends on USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS + default 232 if TARGET_loongarch64 default 448 if TARGET_mediatek default 104 help |