mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-10 06:52:50 +00:00
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:
parent
b07f41fe31
commit
9983219611
10
config/arch/lm32.in
Normal file
10
config/arch/lm32.in
Normal 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
|
@ -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.
|
||||
|
6
samples/lm32-unknown-elf/crosstool.config
Normal file
6
samples/lm32-unknown-elf/crosstool.config
Normal 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
|
3
samples/lm32-unknown-elf/reported.by
Normal file
3
samples/lm32-unknown-elf/reported.by
Normal 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"
|
6
scripts/build/arch/lm32.sh
Normal file
6
scripts/build/arch/lm32.sh
Normal file
@ -0,0 +1,6 @@
|
||||
# Compute LM32-specific values
|
||||
|
||||
CT_DoArchTupleValues() {
|
||||
# Do nothing here. Default values are sane.
|
||||
:;
|
||||
}
|
Loading…
Reference in New Issue
Block a user