initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
config BR2_PACKAGE_PRU_SOFTWARE_SUPPORT
bool "pru-software-support"
depends on BR2_PACKAGE_HOST_TI_CGT_PRU_ARCH_SUPPORTS
select BR2_PACKAGE_HOST_PRU_SOFTWARE_SUPPORT
help
PRU firmware examples extracted from TI's PRU software
support package. See readme.txt for installation details.
https://git.ti.com/pru-software-support-package/pru-software-support-package
@@ -0,0 +1,11 @@
config BR2_PACKAGE_HOST_PRU_SOFTWARE_SUPPORT
bool "host pru-software-support"
depends on BR2_PACKAGE_HOST_TI_CGT_PRU_ARCH_SUPPORTS
select BR2_PACKAGE_HOST_TI_CGT_PRU
help
This package provides useful headers and libraries for the
PRU unit found on some TI processors e.g. AM3358. Note that
the included labs and examples aren't built, they can be
built using the corresponding target package.
https://git.ti.com/pru-software-support-package/pru-software-support-package
@@ -0,0 +1,3 @@
# Locally-calculated hash
sha256 4a6b1b2b8ca892c442fd7fce7ddbf6b74e0619def2bb19f3ad67c94720b7ca3a pru-software-support-package-v5.9.0.tar.gz
sha256 62a2f56498cd1bac2d4ea6ea1c941affba1e4bb65bfdf2dcffd8e5079fa34399 PRU-Package-v6.1-Manifest.html
@@ -0,0 +1,38 @@
################################################################################
#
# pru-software-support
#
################################################################################
PRU_SOFTWARE_SUPPORT_VERSION = 5.9.0
PRU_SOFTWARE_SUPPORT_SITE = https://git.ti.com/cgit/pru-software-support-package/pru-software-support-package/snapshot
PRU_SOFTWARE_SUPPORT_SOURCE = $(PRU_SOFTWARE_SUPPORT_NAME)-package-v$(PRU_SOFTWARE_SUPPORT_VERSION).tar.gz
PRU_SOFTWARE_SUPPORT_LICENSE = BSD-3-Clause, Public Domain
PRU_SOFTWARE_SUPPORT_LICENSE_FILES = PRU-Package-v6.1-Manifest.html
PRU_SOFTWARE_SUPPORT_DEPENDENCIES = host-ti-cgt-pru host-pru-software-support
HOST_PRU_SOFTWARE_SUPPORT_DEPENDENCIES = host-ti-cgt-pru
define HOST_PRU_SOFTWARE_SUPPORT_BUILD_CMDS
$(MAKE) PRU_CGT=$(TI_CGT_PRU_INSTALLDIR) -C $(@D)/lib/src
endef
# install this library support alongside PRU toolchain i.e.
# everything in TI_CGT_PRU_INSTALLDIR as PRU_CGT
define HOST_PRU_SOFTWARE_SUPPORT_INSTALL_CMDS
mkdir -p $(TI_CGT_PRU_INSTALLDIR)/usr/include
cp -dpfr $(@D)/include/* $(TI_CGT_PRU_INSTALLDIR)/usr/include
mkdir -p $(TI_CGT_PRU_INSTALLDIR)/usr/lib
cp -dpfr $(@D)/lib/src/*/gen/*.lib $(TI_CGT_PRU_INSTALLDIR)/usr/lib/
endef
define PRU_SOFTWARE_SUPPORT_BUILD_CMDS
$(MAKE) PRU_CGT=$(TI_CGT_PRU_INSTALLDIR) -C $(@D)/examples
endef
define PRU_SOFTWARE_SUPPORT_INSTALL_TARGET_CMDS
mkdir -p $(TARGET_DIR)/usr/share/pru-software-support
cp -dpfr $(@D)/examples/* $(TARGET_DIR)/usr/share/pru-software-support/
endef
$(eval $(generic-package))
$(eval $(host-generic-package))
+21
View File
@@ -0,0 +1,21 @@
PRU Software Support
====================
Two different packages are provided from the TI PRU software support
code base.
1. The include files and rpmsg static library for the PRU are
installed alongside the host package for the PRU code generation
tools package i.e. $(TI_CGT_PRU_INSTALLDIR).
2. A target package for all the examples installed to
/usr/share/pru-software-support/. Users wanting to test a specific
example should copy or link it to a directory where the kernel
looks for firmware, e.g:
# cp /usr/share/pru-software-support/am335x/PRU_gpioToggle/gen/PRU_gpioToggle.out \
/lib/firmware/am335x-pru0-fw
To get started with the PRU, have a look at the labs [1].
[1] http://processors.wiki.ti.com/index.php/PRU_Training:_Hands-on_Labs