lm32: Initial LatticeMicro32 support

This target is in GCC/binutils for a while.

It's baremetal only without upstream Linux support.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
This commit is contained in:
Jiaxun Yang 2024-12-27 13:23:39 +00:00 committed by Chris Packham
parent b07f41fe31
commit 9983219611
5 changed files with 26 additions and 1 deletions

10
config/arch/lm32.in Normal file
View File

@ -0,0 +1,10 @@
# LatticeMico32 soft-core architecture
## no-package
## select ARCH_SUPPORTS_32
## select ARCH_DEFAULT_32
## select ARCH_DEFAULT_BE
## depends on EXPERIMENTAL
## help The LatticeMico32 soft-core architecture:
## help https://www.latticesemi.com/en/Products/DesignSoftwareAndIP/IntellectualProperty/IPCore/IPCores02/LatticeMico32.aspx

View File

@ -1,6 +1,6 @@
# Linux kernel options
## depends on !ARCH_AVR && !ARCH_MSP430 && !ARCH_MOXIE && !ARCH_PRU
## depends on !ARCH_AVR && !ARCH_LM32 && !ARCH_MSP430 && !ARCH_MOXIE && !ARCH_PRU
## select KERNEL_SUPPORTS_SHARED_LIBS
## help Build a toolchain targeting systems running Linux as a kernel.

View File

@ -0,0 +1,6 @@
CT_CONFIG_VERSION="4"
CT_EXPERIMENTAL=y
CT_ARCH_LM32=y
CT_CC_LANG_CXX=y
CT_DEBUG_GDB=y
# CT_GDB_CROSS_PYTHON is not set

View File

@ -0,0 +1,3 @@
reporter_name="Jiaxun Yang <jiaxun.yang@flygoat.com>"
reporter_url="https://flygoat.com/"
reporter_comment="Example for building a toolchain for LM32 bare metal targets"

View File

@ -0,0 +1,6 @@
# Compute LM32-specific values
CT_DoArchTupleValues() {
# Do nothing here. Default values are sane.
:;
}