2016-12-02 05:22:41 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# pru-software-support
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-02-25 12:43:21 +01:00
|
|
|
PRU_SOFTWARE_SUPPORT_VERSION = v5.1.0
|
|
|
|
PRU_SOFTWARE_SUPPORT_SITE = https://git.ti.com/pru-software-support-package/pru-software-support-package/archive-tarball/$(PRU_SOFTWARE_SUPPORT_VERSION)?
|
2016-12-05 22:40:01 +01:00
|
|
|
PRU_SOFTWARE_SUPPORT_LICENSE = BSD-3c, GPLv2, Public Domain
|
2017-02-25 12:43:21 +01:00
|
|
|
PRU_SOFTWARE_SUPPORT_LICENSE_FILES = PRU-Package-v5.0-Manifest.html
|
2016-12-02 05:22:41 +01:00
|
|
|
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))
|