All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] meta-toolchain-arago-tisdk: Add Arago SDK specific toolchain recipe
@ 2012-11-01 18:43 Franklin S. Cooper Jr
  2012-11-01 19:02 ` Denys Dmytriyenko
  0 siblings, 1 reply; 3+ messages in thread
From: Franklin S. Cooper Jr @ 2012-11-01 18:43 UTC (permalink / raw)
  To: meta-arago; +Cc: Franklin S. Cooper Jr

* Add a meta toolchain recipe that builds on top of meta-toolchain-arago-qte
  but includes components and tasks specific to the Arago SDK.

Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
---
 .../meta/meta-toolchain-arago-tisdk.bb             |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
 create mode 100644 meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb

diff --git a/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb b/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb
new file mode 100644
index 0000000..17f3966
--- /dev/null
+++ b/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb
@@ -0,0 +1,18 @@
+require recipes-core/meta/meta-toolchain-arago-qte.bb
+
+TOOLCHAIN_TARGET_TASK = "task-arago-toolchain-tisdk-target"
+TOOLCHAIN_OUTPUTNAME = "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
+
+PR = "0"
+
+toolchain_create_sdk_env_script_append() {
+    echo -e 'export CPP="\x24{TARGET_PREFIX}gcc -E"' >> $script
+    echo -e 'export NM=\x24{TARGET_PREFIX}nm' >> $script
+    echo -e 'export RANLIB=\x24{TARGET_PREFIX}ranlib' >> $script
+    echo -e 'export OBJCOPY=\x24{TARGET_PREFIX}objcopy' >> $script
+    echo -e 'export STRIP=\x24{TARGET_PREFIX}strip' >> $script
+    echo -e 'export AS=\x24{TARGET_PREFIX}as' >> $script
+    echo -e 'export AR=\x24{TARGET_PREFIX}ar' >> $script
+    echo -e 'export OBJDUMP=\x24{TARGET_PREFIX}objdump' >> $script
+    echo 'export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1' >> $script
+}
-- 
1.7.0.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] meta-toolchain-arago-tisdk: Add Arago SDK specific toolchain recipe
  2012-11-01 18:43 [PATCH] meta-toolchain-arago-tisdk: Add Arago SDK specific toolchain recipe Franklin S. Cooper Jr
@ 2012-11-01 19:02 ` Denys Dmytriyenko
  2012-11-01 19:07   ` Cooper Jr., Franklin
  0 siblings, 1 reply; 3+ messages in thread
From: Denys Dmytriyenko @ 2012-11-01 19:02 UTC (permalink / raw)
  To: Franklin S. Cooper Jr; +Cc: meta-arago, Franklin S. Cooper Jr

On Thu, Nov 01, 2012 at 01:43:16PM -0500, Franklin S. Cooper Jr wrote:
> * Add a meta toolchain recipe that builds on top of meta-toolchain-arago-qte
>   but includes components and tasks specific to the Arago SDK.
> 
> Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
> ---
>  .../meta/meta-toolchain-arago-tisdk.bb             |   18 ++++++++++++++++++
>  1 files changed, 18 insertions(+), 0 deletions(-)
>  create mode 100644 meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb
> 
> diff --git a/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb b/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb
> new file mode 100644
> index 0000000..17f3966
> --- /dev/null
> +++ b/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb
> @@ -0,0 +1,18 @@
> +require recipes-core/meta/meta-toolchain-arago-qte.bb
> +
> +TOOLCHAIN_TARGET_TASK = "task-arago-toolchain-tisdk-target"
> +TOOLCHAIN_OUTPUTNAME = "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"

Hmm, this essentially returns it back to the one used by the generic 
meta-toolchain-arago...

> +
> +PR = "0"

^^^^ it's "r0"

> +
> +toolchain_create_sdk_env_script_append() {
> +    echo -e 'export CPP="\x24{TARGET_PREFIX}gcc -E"' >> $script
> +    echo -e 'export NM=\x24{TARGET_PREFIX}nm' >> $script
> +    echo -e 'export RANLIB=\x24{TARGET_PREFIX}ranlib' >> $script
> +    echo -e 'export OBJCOPY=\x24{TARGET_PREFIX}objcopy' >> $script
> +    echo -e 'export STRIP=\x24{TARGET_PREFIX}strip' >> $script
> +    echo -e 'export AS=\x24{TARGET_PREFIX}as' >> $script
> +    echo -e 'export AR=\x24{TARGET_PREFIX}ar' >> $script
> +    echo -e 'export OBJDUMP=\x24{TARGET_PREFIX}objdump' >> $script
> +    echo 'export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1' >> $script

All these vars are not TI-SDK specific, should we rather place them in the 
meta-toolchain-arago instead?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] meta-toolchain-arago-tisdk: Add Arago SDK specific toolchain recipe
  2012-11-01 19:02 ` Denys Dmytriyenko
@ 2012-11-01 19:07   ` Cooper Jr., Franklin
  0 siblings, 0 replies; 3+ messages in thread
From: Cooper Jr., Franklin @ 2012-11-01 19:07 UTC (permalink / raw)
  To: Dmytriyenko, Denys, Franklin S. Cooper Jr; +Cc: meta-arago



-----Original Message-----
From: Dmytriyenko, Denys 
Sent: Thursday, November 01, 2012 2:02 PM
To: Franklin S. Cooper Jr
Cc: meta-arago@arago-project.org; Cooper Jr., Franklin
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago-tisdk: Add Arago SDK specific toolchain recipe

On Thu, Nov 01, 2012 at 01:43:16PM -0500, Franklin S. Cooper Jr wrote:
> * Add a meta toolchain recipe that builds on top of meta-toolchain-arago-qte
>   but includes components and tasks specific to the Arago SDK.
> 
> Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
> ---
>  .../meta/meta-toolchain-arago-tisdk.bb             |   18 ++++++++++++++++++
>  1 files changed, 18 insertions(+), 0 deletions(-)  create mode 100644 
> meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb
> 
> diff --git 
> a/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb 
> b/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb
> new file mode 100644
> index 0000000..17f3966
> --- /dev/null
> +++ b/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.b
> +++ b
> @@ -0,0 +1,18 @@
> +require recipes-core/meta/meta-toolchain-arago-qte.bb
> +
> +TOOLCHAIN_TARGET_TASK = "task-arago-toolchain-tisdk-target"
> +TOOLCHAIN_OUTPUTNAME = "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"

Hmm, this essentially returns it back to the one used by the generic meta-toolchain-arago...

Franklin:
Your right. I originally did this because I believe some of the backend scripts expected this output name. 
Would changing it to "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-tisdk-${SDK_ARCH}" be a better option? I can then make changes in the backend scripts.

> +
> +PR = "0"

^^^^ it's "r0"
Franklin:
Don't know how this keeps showing up....

> +
> +toolchain_create_sdk_env_script_append() {
> +    echo -e 'export CPP="\x24{TARGET_PREFIX}gcc -E"' >> $script
> +    echo -e 'export NM=\x24{TARGET_PREFIX}nm' >> $script
> +    echo -e 'export RANLIB=\x24{TARGET_PREFIX}ranlib' >> $script
> +    echo -e 'export OBJCOPY=\x24{TARGET_PREFIX}objcopy' >> $script
> +    echo -e 'export STRIP=\x24{TARGET_PREFIX}strip' >> $script
> +    echo -e 'export AS=\x24{TARGET_PREFIX}as' >> $script
> +    echo -e 'export AR=\x24{TARGET_PREFIX}ar' >> $script
> +    echo -e 'export OBJDUMP=\x24{TARGET_PREFIX}objdump' >> $script
> +    echo 'export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1' >> $script

All these vars are not TI-SDK specific, should we rather place them in the meta-toolchain-arago instead?
Franklin:
That makes sense. I can do that then.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-01 19:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-01 18:43 [PATCH] meta-toolchain-arago-tisdk: Add Arago SDK specific toolchain recipe Franklin S. Cooper Jr
2012-11-01 19:02 ` Denys Dmytriyenko
2012-11-01 19:07   ` Cooper Jr., Franklin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.