Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 4/4] toolchain-scripts: Extend to cover nativesdk compiler tools (e.g. nativesdk-gcc)
@ 2015-07-28 13:23 Richard Purdie
  2015-07-28 13:28 ` Otavio Salvador
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2015-07-28 13:23 UTC (permalink / raw)
  To: openembedded-core

This is needed when we add nativesdk-gcc/binutil to an SDK. Being
present doesn't hurt in other cases.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index b838015..d0b2b91 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -23,8 +23,8 @@ toolchain_create_sdk_env_script () {
 	for i in ${CANADIANEXTRAOS}; do
 		EXTRAPATH="$EXTRAPATH:$sdkpathnative$bindir/${TARGET_ARCH}${TARGET_VENDOR}-$i"
 	done
-	echo "export PATH=$sdkpathnative$bindir:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$PATH' >> $script
-	echo "export CCACHE_PATH=$sdkpathnative$bindir:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$CCACHE_PATH' >> $script
+	echo "export PATH=$sdkpathnative$bindir:$sdkpathnative$bindir/../${HOST_SYS}/bin:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$PATH' >> $script
+	echo "export CCACHE_PATH=$sdkpathnative$bindir:$sdkpathnative$bindir/../${HOST_SYS}/bin:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$CCACHE_PATH' >> $script
 	echo 'export PKG_CONFIG_SYSROOT_DIR=$SDKTARGETSYSROOT' >> $script
 	echo 'export PKG_CONFIG_PATH=$SDKTARGETSYSROOT'"$libdir"'/pkgconfig' >> $script
 	echo 'export CONFIG_SITE=${SDKPATH}/site-config-'"${multimach_target_sys}" >> $script




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

* Re: [PATCH 4/4] toolchain-scripts: Extend to cover nativesdk compiler tools (e.g. nativesdk-gcc)
  2015-07-28 13:23 [PATCH 4/4] toolchain-scripts: Extend to cover nativesdk compiler tools (e.g. nativesdk-gcc) Richard Purdie
@ 2015-07-28 13:28 ` Otavio Salvador
  2015-07-28 13:53   ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Otavio Salvador @ 2015-07-28 13:28 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

On Tue, Jul 28, 2015 at 10:23 AM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> This is needed when we add nativesdk-gcc/binutil to an SDK. Being
> present doesn't hurt in other cases.
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Maybe it could use the environment-setup subscript to extend this?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


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

* Re: [PATCH 4/4] toolchain-scripts: Extend to cover nativesdk compiler tools (e.g. nativesdk-gcc)
  2015-07-28 13:28 ` Otavio Salvador
@ 2015-07-28 13:53   ` Richard Purdie
  2015-07-28 17:00     ` Otavio Salvador
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2015-07-28 13:53 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: openembedded-core

On Tue, 2015-07-28 at 10:28 -0300, Otavio Salvador wrote:
> On Tue, Jul 28, 2015 at 10:23 AM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > This is needed when we add nativesdk-gcc/binutil to an SDK. Being
> > present doesn't hurt in other cases.
> >
> > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> 
> Maybe it could use the environment-setup subscript to extend this?

Not sure its worth the complexity of that to be honest...

Cheers,

Richard




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

* Re: [PATCH 4/4] toolchain-scripts: Extend to cover nativesdk compiler tools (e.g. nativesdk-gcc)
  2015-07-28 13:53   ` Richard Purdie
@ 2015-07-28 17:00     ` Otavio Salvador
  0 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2015-07-28 17:00 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

On Tue, Jul 28, 2015 at 10:53 AM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> On Tue, 2015-07-28 at 10:28 -0300, Otavio Salvador wrote:
>> On Tue, Jul 28, 2015 at 10:23 AM, Richard Purdie
>> <richard.purdie@linuxfoundation.org> wrote:
>> > This is needed when we add nativesdk-gcc/binutil to an SDK. Being
>> > present doesn't hurt in other cases.
>> >
>> > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>>
>> Maybe it could use the environment-setup subscript to extend this?
>
> Not sure its worth the complexity of that to be honest...

The point, of doing it this way, is to have the environment script in
its canonical form and without unused code.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


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

end of thread, other threads:[~2015-07-28 17:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-28 13:23 [PATCH 4/4] toolchain-scripts: Extend to cover nativesdk compiler tools (e.g. nativesdk-gcc) Richard Purdie
2015-07-28 13:28 ` Otavio Salvador
2015-07-28 13:53   ` Richard Purdie
2015-07-28 17:00     ` Otavio Salvador

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox