summaryrefslogtreecommitdiffstats
path: root/package/pru-software-support/pru-software-support.mk
diff options
context:
space:
mode:
authorAsh Charles <ashcharles@gmail.com>2016-12-01 23:22:41 -0500
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-12-04 22:18:36 +0100
commitbd438fc06f3fc8b509994c02d100bc05c0ac13b7 (patch)
treeac56d1477097abdf190634dd2e6f3ae819fdecfd /package/pru-software-support/pru-software-support.mk
parentc84a2cb9aae778d3e89b23268640fbe08b3bc2bc (diff)
downloadbuildroot-bd438fc06f3fc8b509994c02d100bc05c0ac13b7.tar.gz
buildroot-bd438fc06f3fc8b509994c02d100bc05c0ac13b7.zip
pru-software-support: add library for PRU firmware
TI provides a set of headers files and libraries useful in developing firmware for real-time (PRU) cores embedded in some processors e.g. AM3358. This package stages these files for any packages creating PRU firmware. Note: As per [1], use commit v4.0.2 to sync with common TI Linux versions. [1] http://e2e.ti.com/support/arm/sitara_arm/f/791/p/552190/2018113#2018113 Signed-off-by: Ash Charles <ash.charles@savoirfairelinux.com> [Thomas: - rename BR2_PACKAGE_PRU_EXAMPLES to BR2_PACKAGE_PRU_SOFTWARE_SUPPORT, since the package directory name should match the Config.in option for this package - use select for BR2_PACKAGE_HOST_TI_CGT_PRU, and therefore add the appropriate "depends on BR2_PACKAGE_HOST_TI_CGT_PRU_ARCH_SUPPORTS".] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/pru-software-support/pru-software-support.mk')
-rw-r--r--package/pru-software-support/pru-software-support.mk37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/pru-software-support/pru-software-support.mk b/package/pru-software-support/pru-software-support.mk
new file mode 100644
index 0000000000..95d1e03d30
--- /dev/null
+++ b/package/pru-software-support/pru-software-support.mk
@@ -0,0 +1,37 @@
+################################################################################
+#
+# pru-software-support
+#
+################################################################################
+
+PRU_SOFTWARE_SUPPORT_VERSION = 804b548e69ef9fdf44445f6d0968d81cb8a1e7b4
+PRU_SOFTWARE_SUPPORT_SITE = git://git.ti.com/pru-software-support-package/pru-software-support-package.git
+PRU_SOFTWARE_SUPPORT_LICENSE = BSD-3c
+PRU_SOFTWARE_SUPPORT_LICENSE_FILES = PRU_Package-v5.0-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))
OpenPOWER on IntegriCloud