From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] ti-pru-support: add staging files for PRU firmware
Date: Thu, 24 Nov 2016 16:48:56 +0100 [thread overview]
Message-ID: <20161124164856.32491ed0@free-electrons.com> (raw)
In-Reply-To: <1479324273-13589-2-git-send-email-ash.charles@savoirfairelinux.com>
Hello,
On Wed, 16 Nov 2016 14:24:33 -0500, Ash Charles wrote:
> diff --git a/package/Config.in b/package/Config.in
> index 9ed296f..4f333c2 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -463,6 +463,7 @@ endmenu
> source "package/sysstat/Config.in"
> source "package/targetcli-fb/Config.in"
> source "package/ti-gfx/Config.in"
> + source "package/ti-pru-support/Config.in"
> source "package/ti-sgx-demos/Config.in"
> source "package/ti-sgx-km/Config.in"
> source "package/ti-sgx-um/Config.in"
> diff --git a/package/ti-pru-support/Config.in b/package/ti-pru-support/Config.in
> new file mode 100644
> index 0000000..af17d54
> --- /dev/null
> +++ b/package/ti-pru-support/Config.in
> @@ -0,0 +1,10 @@
> +config BR2_PACKAGE_TI_PRU_SUPPORT
> + bool "TI PRU support"
> + 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. This
> + package provides staging only; the included labs and
> + examples aren't built.
It would be nice to have a sub-option to build examples, so that it can
potentially installs things in the target.
> +
> + https://git.ti.com/pru-software-support-package/pru-software-support-package/trees/master
Just:
https://git.ti.com/pru-software-support-package/
> +TI_PRU_SUPPORT_VERSION = 804b548e69ef9fdf44445f6d0968d81cb8a1e7b4
> +TI_PRU_SUPPORT_SITE = "git://git.ti.com/pru-software-support-package/pru-software-support-package.git"
Double quotes not needed.
> +TI_PRU_SUPPORT_LICENSE = BSD-3c, GPLv2
> +TI_PRU_SUPPORT_LICENSE_FILES = PRU_Package-v5.0-Manifest.html
> +TI_PRU_SUPPORT_INSTALL_STAGING = YES
> +TI_PRU_SUPPORT_DEPENDENCIES = host-ti-cgt-pru
> +
> +define TI_PRU_SUPPORT_BUILD_CMDS
> + $(MAKE) PRU_CGT=$(PRU_CGT) -C $(@D)/lib/src
> +endef
> +
> +define TI_PRU_SUPPORT_INSTALL_STAGING_CMDS
> + $(INSTALL) -d $(STAGING_DIR)/usr/include
> + cp -af $(@D)/include/* $(STAGING_DIR)/usr/include
> + $(INSTALL) -d $(STAGING_DIR)/usr/lib
> + $(INSTALL) -m 0644 $(@D)/lib/src/*/gen/*.lib $(STAGING_DIR)/usr/lib/
My understanding is that those libraries are not for the ARM CPU, but
for the PRU. If that's the case, then I believe having them in
STAGING_DIR/usr/{include,lib} can cause a lot of confusion. They should
be installed in a separate place, so that they are not picked up by the
regular ARM cross-compiler.
How does one load/run the PRU programs? Any tool that needs to be
executed on the ARM side, and which would be useful to have in
Buildroot as well?
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-11-24 15:48 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-16 19:24 [Buildroot] [PATCH 1/2] ti-cgt-pru: add package for PRU Host toolchain Ash Charles
2016-11-16 19:24 ` [Buildroot] [PATCH 2/2] ti-pru-support: add staging files for PRU firmware Ash Charles
2016-11-24 15:48 ` Thomas Petazzoni [this message]
2016-11-24 20:25 ` Arnout Vandecappelle
2016-11-21 23:51 ` [Buildroot] [PATCH 1/2] ti-cgt-pru: add package for PRU Host toolchain Ash Charles
2016-11-24 15:44 ` Thomas Petazzoni
2016-11-24 20:16 ` Arnout Vandecappelle
2016-11-24 20:07 ` Arnout Vandecappelle
2016-11-25 17:49 ` [Buildroot] [PATCH v2 1/3] " Ash Charles
2016-11-25 17:49 ` [Buildroot] [PATCH v2 2/3] pru-software-support: add library for PRU firmware Ash Charles
2016-11-26 11:27 ` Arnout Vandecappelle
2016-11-26 14:05 ` Thomas Petazzoni
2016-11-26 14:34 ` Ash Charles
2016-11-25 17:50 ` [Buildroot] [PATCH v2 3/3] pru-sample: add sample PRU application Ash Charles
2016-11-25 20:30 ` Thomas Petazzoni
2016-11-26 11:22 ` Arnout Vandecappelle
2016-11-26 14:06 ` Thomas Petazzoni
2016-11-27 12:41 ` Ash Charles
2016-11-27 13:47 ` Thomas Petazzoni
2016-11-28 11:34 ` Ash Charles
2016-11-29 23:41 ` Arnout Vandecappelle
2016-11-30 1:12 ` Ash Charles
2016-11-26 11:07 ` [Buildroot] [PATCH v2 1/3] ti-cgt-pru: add package for PRU Host toolchain Arnout Vandecappelle
2016-11-26 14:51 ` Ash Charles
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161124164856.32491ed0@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox