Add PRU cross tool target

Add sample configuration for building cross toolchain for the TI PRU.
PRU cores are present in many of the BeagleBone single board computers.

More information about the PRU can be found in https://bbb.io/pru

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
This commit is contained in:
Dimitar Dimitrov 2021-01-15 20:19:25 +02:00
parent fcf323336e
commit c800bc8c82
5 changed files with 32 additions and 1 deletions

8
config/arch/pru.in Normal file
View File

@ -0,0 +1,8 @@
# PRU specific config options
## no-package
## select ARCH_SUPPORTS_8
## select ARCH_DEFAULT_8
##
## help The TI PRU core, as defined by:
## help http://bbb.io/pru

View File

@ -1,6 +1,6 @@
# Linux kernel options
## depends on !ARCH_AVR && !ARCH_MSP430 && !ARCH_MOXIE
## depends on !ARCH_AVR && !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,15 @@
CT_CONFIG_VERSION="3"
CT_ARCH_PRU=y
CT_OMIT_TARGET_VENDOR=y
# CT_DEMULTILIB is not set
# CT_LIBC_NEWLIB_FVWRITE_IN_STREAMIO is not set
# CT_LIBC_NEWLIB_UNBUF_STREAM_OPT is not set
# CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set
# CT_LIBC_NEWLIB_ATEXIT_DYNAMIC_ALLOC is not set
# CT_LIBC_NEWLIB_MULTITHREAD is not set
CT_LIBC_NEWLIB_EXTRA_SECTIONS=y
# CT_LIBC_NEWLIB_WIDE_ORIENT is not set
CT_LIBC_NEWLIB_NANO_MALLOC=y
CT_LIBC_NEWLIB_NANO_FORMATTED_IO=y
CT_CC_LANG_CXX=y
CT_COMP_TOOLS_MAKE=y

3
samples/pru/reported.by Normal file
View File

@ -0,0 +1,3 @@
reporter_name="Dimitar Dimitrov"
reporter_url="https://github.com/dinuxbg/gnupru"
reporter_comment="PRU cross toolchain"

View File

@ -0,0 +1,5 @@
# Compute PRU-specific values
CT_DoArchTupleValues() {
CT_TARGET_ARCH="${CT_ARCH}"
}