meta-toolchain-arago: make SDK/devkit relocatable
PATCH 1/1 meta-toolchain-arago: make SDK/devkit relocatable
Implement poor man's relocation technique for self-contained crosssdk binaries
--- meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +3 -1
@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}" require recipes-core/meta/meta-toolchain.bb -PR = "r5" +PR = "r6" SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
@@ -28,6 +28,7 @@ toolchain_create_sdk_env_script () { echo 'export TARGET_SYS=${ARAGO_TARGET_SYS}' >> $script echo 'export TARGET_PREFIX=$TARGET_SYS-' >> $script echo 'export PATH=$SDK_PATH/bin:$PATH' >> $script + echo 'export LD_LIBRARY_PATH=$SDK_PATH/lib:$LD_LIBRARY_PATH' >> $script echo 'export CPATH=$SDK_PATH/$TARGET_SYS/usr/include:$CPATH' >> $script echo 'export PKG_CONFIG_SYSROOT_DIR=$SDK_PATH/$TARGET_SYS' >> $script echo 'export PKG_CONFIG_PATH=$SDK_PATH/$TARGET_SYS${libdir}/pkgconfig' >> $script
@@ -54,4 +55,5 @@ toolchain_create_sdk_env_script () { echo 'export OECORE_ACLOCAL_OPTS="-I $SDK_PATH/usr/share/aclocal"' >> $script echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script + echo 'for i in `cd $SDK_PATH/bin; find -L ! -name "$TARGET_SYS-*" -type f -perm +111 -exec file {} \;|grep -v ":.*ASCII.*text"|cut -d":" -f1|cut -c3-`; do alias $i="$SDK_PATH/lib/ld-linux.so.2 $SDK_PATH/bin/$i"; done' >> $script }
Signature · 1 line
1.8.0
Quoted 29 lines · Denys Dmytriyenko
Implement poor man's relocation technique for self-contained crosssdk binaries
Signed-off-by Denys Dmytriyenko <[email protected]>--- meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +2
-1@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}" require recipes-core/meta/meta-toolchain.bb -PR = "r5" +PR = "r6" SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"@@ -28,6 +28,7 @@ toolchain_create_sdk_env_script () { echo 'export TARGET_SYS=${ARAGO_TARGET_SYS}' >> $script echo 'export TARGET_PREFIX=$TARGET_SYS-' >> $script echo 'export PATH=$SDK_PATH/bin:$PATH' >> $script + echo 'export LD_LIBRARY_PATH=$SDK_PATH/lib:$LD_LIBRARY_PATH' >> $script echo 'export CPATH=$SDK_PATH/$TARGET_SYS/usr/include:$CPATH' >> $script echo 'export PKG_CONFIG_SYSROOT_DIR=$SDK_PATH/$TARGET_SYS' >> $script echo 'export PKG_CONFIG_PATH=$SDK_PATH/$TARGET_SYS${libdir}/pkgconfig' >> $script
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb toolchain_create_sdk_env_script () { · line 58
Quoted 4 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +1
-0@@ -54,4 +55,5 @@ toolchain_create_sdk_env_script () { echo 'export OECORE_ACLOCAL_OPTS="-I $SDK_PATH/usr/share/aclocal"' >> $script echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script + echo 'for i in `cd $SDK_PATH/bin; find -L ! -name "$TARGET_SYS-*" -type f -perm +111 -exec file {} \;|grep -v ":.*ASCII.*text"|cut -d":" -f1|cut -c3-`; do alias $i="$SDK_PATH/lib/ld-linux.so.2 $SDK_PATH/bin/$i"; done' >> $script
^^^^^^^^^^^^^^^^^^^^
Yep, that's pretty much it - several days of debugging, reseach and testing and the result is a one-liner script-fu...
Signature · 1 line
Denys
Your script-fu is strong :)
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950
For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/
Quoted 75 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Wednesday, November 07, 2012 12:31 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableQuoted 1 line · Denys Dmytriyenko
Implement poor man's relocation technique for self-contained
crosssdk binaries
Quoted 4 lines
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb |4 +++-
Review
Quoted 3 lines
1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0toolchain-arago.bb b/meta-arago-extras/recipes-core/meta/meta- toolchain-arago.bb
Quoted 2 lines
index d2fe982..27782f7 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb
Quoted 1 line
+++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-
arago.bb
Review TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-
Quoted 1 line
(quoted diff) +0
-0@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb toolchain_create_sdk_env_script () { · line 31
Quoted 13 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +2
-1require recipes-core/meta/meta-toolchain.bb -PR = "r5" +PR = "r6" SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"@@ -28,6 +28,7 @@ toolchain_create_sdk_env_script () { echo 'export TARGET_SYS=${ARAGO_TARGET_SYS}' >> $script echo 'export TARGET_PREFIX=$TARGET_SYS-' >> $script echo 'export PATH=$SDK_PATH/bin:$PATH' >> $script + echo 'exportLD_LIBRARY_PATH=$SDK_PATH/lib:$LD_LIBRARY_PATH' >> $script
Review toolchain_create_sdk_env_script () { · line 32
Quoted 1 line
(quoted diff) +0
-0echo 'exportCPATH=$SDK_PATH/$TARGET_SYS/usr/include:$CPATH' >> $script
Quoted 3 lines
(quoted diff) +0
-0echo 'export PKG_CONFIG_SYSROOT_DIR=$SDK_PATH/$TARGET_SYS'Quoted 1 line
$script
echo 'export
PKG_CONFIG_PATH=$SDK_PATH/$TARGET_SYS${libdir}/pkgconfig' >> $script
Review toolchain_create_sdk_env_script () { · line 55
Quoted 2 lines
(quoted diff) +0
-0@@ -54,4 +55,5 @@ toolchain_create_sdk_env_script () { echo 'export OECORE_ACLOCAL_OPTS="-I$SDK_PATH/usr/share/aclocal"' >> $script
Review toolchain_create_sdk_env_script () { · line 56
Quoted 1 line
(quoted diff) +0
-0echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >>$script
Review toolchain_create_sdk_env_script () { · line 57
Quoted 1 line
(quoted diff) +0
-0echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >>$script
Review toolchain_create_sdk_env_script () { · line 58
Quoted 1 line
(quoted diff) +1
-0+ echo 'for i in `cd $SDK_PATH/bin; find -L ! -name"$TARGET_SYS-*" -type f -perm +111 -exec file {} \;|grep -v ":.*ASCII.*text"|cut -d":" -f1|cut -c3-`; do alias $i="$SDK_PATH/lib/ld-linux.so.2 $SDK_PATH/bin/$i"; done' >> $script
^^^^^^^^^^^^^^^^^^^^
Yep, that's pretty much it - several days of debugging, reseach and testing
and the result is a one-liner script-fu...--
Denys
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Looks great
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Maupin, Chase
Sent: Wednesday, November 07, 2012 9:16 AM
To: Denys Dmytriyenko; Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatable
Your script-fu is strong :)
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950
For support:
Forums - http://community.ti.com/forums/ Wiki - http://wiki.davincidsp.com/
Quoted 66 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Wednesday, November 07, 2012 12:31 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableQuoted 1 line · Denys Dmytriyenko
Implement poor man's relocation technique for self-contained
crosssdk binaries
Quoted 4 lines
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb |4 +++-
Review
Quoted 3 lines
1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0toolchain-arago.bb b/meta-arago-extras/recipes-core/meta/meta- toolchain-arago.bb
Quoted 2 lines
index d2fe982..27782f7 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb
Quoted 1 line
+++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-
arago.bb
Review TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-
Quoted 1 line
(quoted diff) +0
-0@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb toolchain_create_sdk_env_script () { · line 31
Quoted 13 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +2
-1require recipes-core/meta/meta-toolchain.bb -PR = "r5" +PR = "r6" SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"@@ -28,6 +28,7 @@ toolchain_create_sdk_env_script () { echo 'export TARGET_SYS=${ARAGO_TARGET_SYS}' >> $script echo 'export TARGET_PREFIX=$TARGET_SYS-' >> $script echo 'export PATH=$SDK_PATH/bin:$PATH' >> $script + echo 'exportLD_LIBRARY_PATH=$SDK_PATH/lib:$LD_LIBRARY_PATH' >> $script
Review toolchain_create_sdk_env_script () { · line 32
Quoted 1 line
(quoted diff) +0
-0echo 'exportCPATH=$SDK_PATH/$TARGET_SYS/usr/include:$CPATH' >> $script
Quoted 3 lines
(quoted diff) +0
-0echo 'export PKG_CONFIG_SYSROOT_DIR=$SDK_PATH/$TARGET_SYS'Quoted 1 line
$script
echo 'export
PKG_CONFIG_PATH=$SDK_PATH/$TARGET_SYS${libdir}/pkgconfig' >> $script
Review toolchain_create_sdk_env_script () { · line 55
Quoted 2 lines
(quoted diff) +0
-0@@ -54,4 +55,5 @@ toolchain_create_sdk_env_script () { echo 'export OECORE_ACLOCAL_OPTS="-I$SDK_PATH/usr/share/aclocal"' >> $script
Review toolchain_create_sdk_env_script () { · line 56
Quoted 1 line
(quoted diff) +0
-0echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >>$script
Review toolchain_create_sdk_env_script () { · line 57
Quoted 1 line
(quoted diff) +0
-0echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >>$script
Review toolchain_create_sdk_env_script () { · line 58
Quoted 1 line
(quoted diff) +1
-0+ echo 'for i in `cd $SDK_PATH/bin; find -L ! -name"$TARGET_SYS-*" -type f -perm +111 -exec file {} \;|grep -v ":.*ASCII.*text"|cut -d":" -f1|cut -c3-`; do alias $i="$SDK_PATH/lib/ld-linux.so.2 $SDK_PATH/bin/$i"; done' >> $script
^^^^^^^^^^^^^^^^^^^^
Yep, that's pretty much it - several days of debugging, reseach and testing and the result is a one-liner script-fu...
Quoted 6 lines
--
Denys
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
The only worry I have is whether aliases are going to work in a Makefile
Quoted 98 lines · Franklin
Looks great
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Maupin, Chase
Sent: Wednesday, November 07, 2012 9:16 AM
To: Denys Dmytriyenko; Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableYour script-fu is strong :)
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950For support:
Forums - http://community.ti.com/forums/ Wiki - http://wiki.davincidsp.com/Quoted 66 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Wednesday, November 07, 2012 12:31 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableQuoted 1 line · Denys Dmytriyenko
Implement poor man's relocation technique for self-contained
crosssdk binaries
Quoted 4 lines
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb |4 +++-
Review
Quoted 3 lines
1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0toolchain-arago.bb b/meta-arago-extras/recipes-core/meta/meta- toolchain-arago.bb
Quoted 2 lines
index d2fe982..27782f7 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb
Quoted 1 line
+++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-
arago.bb
Review TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-
Quoted 1 line
(quoted diff) +0
-0@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb toolchain_create_sdk_env_script () { · line 31
Quoted 13 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +2
-1require recipes-core/meta/meta-toolchain.bb -PR = "r5" +PR = "r6" SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"@@ -28,6 +28,7 @@ toolchain_create_sdk_env_script () { echo 'export TARGET_SYS=${ARAGO_TARGET_SYS}' >> $script echo 'export TARGET_PREFIX=$TARGET_SYS-' >> $script echo 'export PATH=$SDK_PATH/bin:$PATH' >> $script + echo 'exportLD_LIBRARY_PATH=$SDK_PATH/lib:$LD_LIBRARY_PATH' >> $script
Review toolchain_create_sdk_env_script () { · line 32
Quoted 1 line
(quoted diff) +0
-0echo 'exportCPATH=$SDK_PATH/$TARGET_SYS/usr/include:$CPATH' >> $script
Quoted 3 lines
(quoted diff) +0
-0echo 'export PKG_CONFIG_SYSROOT_DIR=$SDK_PATH/$TARGET_SYS'Quoted 1 line
$script
echo 'export
PKG_CONFIG_PATH=$SDK_PATH/$TARGET_SYS${libdir}/pkgconfig' >> $script
Review toolchain_create_sdk_env_script () { · line 55
Quoted 2 lines
(quoted diff) +0
-0@@ -54,4 +55,5 @@ toolchain_create_sdk_env_script () { echo 'export OECORE_ACLOCAL_OPTS="-I$SDK_PATH/usr/share/aclocal"' >> $script
Review toolchain_create_sdk_env_script () { · line 56
Quoted 1 line
(quoted diff) +0
-0echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >>$script
Review toolchain_create_sdk_env_script () { · line 57
Quoted 1 line
(quoted diff) +0
-0echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >>$script
Review toolchain_create_sdk_env_script () { · line 58
Quoted 1 line
(quoted diff) +1
-0+ echo 'for i in `cd $SDK_PATH/bin; find -L ! -name"$TARGET_SYS-*" -type f -perm +111 -exec file {} \;|grep -v ":.*ASCII.*text"|cut -d":" -f1|cut -c3-`; do alias $i="$SDK_PATH/lib/ld-linux.so.2 $SDK_PATH/bin/$i"; done' >> $script
^^^^^^^^^^^^^^^^^^^^
Yep, that's pretty much it - several days of debugging, reseach and testing and the result is a one-liner script-fu...Quoted 6 lines
--
Denys
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Nope, aliases are not accessible from Makefiles, need to switch gears...
Quoted 106 lines · Denys Dmytriyenko
The only worry I have is whether aliases are going to work in a
MakefileQuoted 94 lines · Franklin
Looks great
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Maupin, Chase
Sent: Wednesday, November 07, 2012 9:16 AM
To: Denys Dmytriyenko; Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableYour script-fu is strong :)
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950For support:
Forums - http://community.ti.com/forums/ Wiki - http://wiki.davincidsp.com/Quoted 66 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Wednesday, November 07, 2012 12:31 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableQuoted 1 line · Denys Dmytriyenko
Implement poor man's relocation technique for self-contained
crosssdk binaries
Quoted 4 lines
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb |4 +++-
Review
Quoted 3 lines
1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0toolchain-arago.bb b/meta-arago-extras/recipes-core/meta/meta- toolchain-arago.bb
Quoted 2 lines
index d2fe982..27782f7 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb
Quoted 1 line
+++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-
arago.bb
Review TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-
Quoted 1 line
(quoted diff) +0
-0@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb toolchain_create_sdk_env_script () { · line 31
Quoted 13 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +2
-1require recipes-core/meta/meta-toolchain.bb -PR = "r5" +PR = "r6" SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"@@ -28,6 +28,7 @@ toolchain_create_sdk_env_script () { echo 'export TARGET_SYS=${ARAGO_TARGET_SYS}' >> $script echo 'export TARGET_PREFIX=$TARGET_SYS-' >> $script echo 'export PATH=$SDK_PATH/bin:$PATH' >> $script + echo 'exportLD_LIBRARY_PATH=$SDK_PATH/lib:$LD_LIBRARY_PATH' >> $script
Review toolchain_create_sdk_env_script () { · line 32
Quoted 1 line
(quoted diff) +0
-0echo 'exportCPATH=$SDK_PATH/$TARGET_SYS/usr/include:$CPATH' >> $script
Quoted 3 lines
(quoted diff) +0
-0echo 'export PKG_CONFIG_SYSROOT_DIR=$SDK_PATH/$TARGET_SYS'Quoted 1 line
$script
echo 'export
PKG_CONFIG_PATH=$SDK_PATH/$TARGET_SYS${libdir}/pkgconfig' >> $script
Review toolchain_create_sdk_env_script () { · line 55
Quoted 2 lines
(quoted diff) +0
-0@@ -54,4 +55,5 @@ toolchain_create_sdk_env_script () { echo 'export OECORE_ACLOCAL_OPTS="-I$SDK_PATH/usr/share/aclocal"' >> $script
Review toolchain_create_sdk_env_script () { · line 56
Quoted 1 line
(quoted diff) +0
-0echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >>$script
Review toolchain_create_sdk_env_script () { · line 57
Quoted 1 line
(quoted diff) +0
-0echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >>$script
Review toolchain_create_sdk_env_script () { · line 58
Quoted 1 line
(quoted diff) +1
-0+ echo 'for i in `cd $SDK_PATH/bin; find -L ! -name"$TARGET_SYS-*" -type f -perm +111 -exec file {} \;|grep -v ":.*ASCII.*text"|cut -d":" -f1|cut -c3-`; do alias $i="$SDK_PATH/lib/ld-linux.so.2 $SDK_PATH/bin/$i"; done' >> $script
^^^^^^^^^^^^^^^^^^^^
Yep, that's pretty much it - several days of debugging, reseach and testing and the result is a one-liner script-fu...Quoted 6 lines
--
Denys
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-aragoQuoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Yeah, I've been playing with this myself with no luck.
I did see some people say that if you had functions exported and did export -f <function> it might work. I'm going to try this.
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950
For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/
Quoted 142 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Wednesday, November 07, 2012 2:09 PM
To: Cooper Jr., Franklin
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableNope, aliases are not accessible from Makefiles, need to switch gears...
Quoted 1 line · Denys Dmytriyenko
The only worry I have is whether aliases are going to work in a
MakefileQuoted 3 lines
On Wed, Nov 07, 2012 at 01:53:57PM -0500, Cooper Jr., Franklin
Quoted 4 lines · wrote:
Quoted 4 lines
Looks great
-----Original Message-----
From: [email protected] [mailto:meta-[email protected]] On Behalf Of Maupin, Chase
Quoted 4 lines
Quoted 4 lines
Sent: Wednesday, November 07, 2012 9:16 AM
To: Denys Dmytriyenko; Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: makeSDK/devkit relocatable
Quoted 10 lines
Quoted 10 lines
Your script-fu is strong :)
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950Quoted 2 lines
Quoted 2 lines
For support:
Forums - http://community.ti.com/forums/ Wiki -Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago-
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
[email protected]] On Behalf Of Denys Dmytriyenko
Sent: Wednesday, November 07, 2012 12:31 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago:make
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
SDK/devkit relocatable
Quoted 1 line · Denys Dmytriyenko
Implement poor man's relocation technique for self-
contained
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
crosssdk binaries
Quoted 4 lines
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb |
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
4 +++-
Review
Quoted 3 lines
1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0toolchain-arago.bb b/meta-arago-extras/recipes-
core/meta/meta-
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
toolchain-arago.bb
Quoted 2 lines
index d2fe982..27782f7 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb
Quoted 1 line
+++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-
arago.bb
Review TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-
Quoted 1 line
(quoted diff) +0
-0@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
Quoted 3 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +0
-0require recipes-core/meta/meta-toolchain.bbQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb toolchain_create_sdk_env_script () { · line 28
Quoted 7 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +1
-1-PR = "r5" +PR = "r6" SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"@@ -28,6 +28,7 @@ toolchain_create_sdk_env_script () { echo 'export TARGET_SYS=${ARAGO_TARGET_SYS}' >>$script
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb toolchain_create_sdk_env_script () {
Quoted 3 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +1
-0echo 'export TARGET_PREFIX=$TARGET_SYS-' >> $script echo 'export PATH=$SDK_PATH/bin:$PATH' >> $script + echo 'exportLD_LIBRARY_PATH=$SDK_PATH/lib:$LD_LIBRARY_PATH' >> $script
Review toolchain_create_sdk_env_script () { · line 32
Quoted 1 line
(quoted diff) +0
-0echo 'exportCPATH=$SDK_PATH/$TARGET_SYS/usr/include:$CPATH' >> $script
Quoted 1 line
(quoted diff) +0
-0echo 'exportPKG_CONFIG_SYSROOT_DIR=$SDK_PATH/$TARGET_SYS'
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 2 lines
Quoted 1 line
$script
echo 'export
PKG_CONFIG_PATH=$SDK_PATH/$TARGET_SYS${libdir}/pkgconfig'
$script
Quoted 4 lines
Review toolchain_create_sdk_env_script () { · line 55
Quoted 2 lines
(quoted diff) +0
-0@@ -54,4 +55,5 @@ toolchain_create_sdk_env_script () { echo 'export OECORE_ACLOCAL_OPTS="-I$SDK_PATH/usr/share/aclocal"' >> $script
Quoted 1 line
(quoted diff) +0
-0echo 'exportOECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >>
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
$script
Review toolchain_create_sdk_env_script () { · line 57
Quoted 1 line
(quoted diff) +0
-0echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >>$script
Review toolchain_create_sdk_env_script () { · line 58
Quoted 1 line
(quoted diff) +1
-0+ echo 'for i in `cd $SDK_PATH/bin; find -L ! -name"$TARGET_SYS-*" -type f -perm +111 -exec file {} \;|grep -v ":.*ASCII.*text"|cut -d":" -f1|cut -c3-`; do alias $i="$SDK_PATH/lib/ld-linux.so.2 $SDK_PATH/bin/$i"; done' >>
$script
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
^^^^^^^^^^^^^^^^^^^^
Yep, that's pretty much it - several days of debugging,reseach and
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
testing and the result is a one-liner script-fu...
--
Denys
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 8 lines
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Good luck with that - been there, done that, didn't work for me :) I have something that works, will be sending a v2 patch shortly.
Denys
Quoted 158 lines · Chase
Yeah, I've been playing with this myself with no luck.
I did see some people say that if you had functions exported and did export -f <function> it might work. I'm going to try this.
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/Quoted 142 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Wednesday, November 07, 2012 2:09 PM
To: Cooper Jr., Franklin
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableNope, aliases are not accessible from Makefiles, need to switch gears...
Quoted 1 line · Denys Dmytriyenko
The only worry I have is whether aliases are going to work in a
MakefileQuoted 3 lines
On Wed, Nov 07, 2012 at 01:53:57PM -0500, Cooper Jr., Franklin
Quoted 4 lines · wrote:
Quoted 4 lines
Looks great
-----Original Message-----
From: [email protected] [mailto:meta-[email protected]] On Behalf Of Maupin, Chase
Quoted 4 lines
Quoted 4 lines
Sent: Wednesday, November 07, 2012 9:16 AM
To: Denys Dmytriyenko; Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: makeSDK/devkit relocatable
Quoted 10 lines
Quoted 10 lines
Your script-fu is strong :)
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950Quoted 2 lines
Quoted 2 lines
For support:
Forums - http://community.ti.com/forums/ Wiki -Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago-
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
[email protected]] On Behalf Of Denys Dmytriyenko
Sent: Wednesday, November 07, 2012 12:31 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago:make
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
SDK/devkit relocatable
Quoted 1 line · Denys Dmytriyenko
Implement poor man's relocation technique for self-
contained
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
crosssdk binaries
Quoted 4 lines
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb |
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
4 +++-
Review
Quoted 3 lines
1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0toolchain-arago.bb b/meta-arago-extras/recipes-
core/meta/meta-
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
toolchain-arago.bb
Quoted 2 lines
index d2fe982..27782f7 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb
Quoted 1 line
+++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-
arago.bb
Review TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-
Quoted 1 line
(quoted diff) +0
-0@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
Quoted 3 lines
(quoted diff) +0
-0require recipes-core/meta/meta-toolchain.bbQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
Review toolchain_create_sdk_env_script () { · line 28
Quoted 7 lines
(quoted diff) +1
-1-PR = "r5" +PR = "r6" SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"@@ -28,6 +28,7 @@ toolchain_create_sdk_env_script () { echo 'export TARGET_SYS=${ARAGO_TARGET_SYS}' >>$script
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Review toolchain_create_sdk_env_script () { · line 31
Quoted 3 lines
(quoted diff) +1
-0echo 'export TARGET_PREFIX=$TARGET_SYS-' >> $script echo 'export PATH=$SDK_PATH/bin:$PATH' >> $script + echo 'exportLD_LIBRARY_PATH=$SDK_PATH/lib:$LD_LIBRARY_PATH' >> $script
Review toolchain_create_sdk_env_script () { · line 32
Quoted 1 line
(quoted diff) +0
-0echo 'exportCPATH=$SDK_PATH/$TARGET_SYS/usr/include:$CPATH' >> $script
Quoted 1 line
(quoted diff) +0
-0echo 'exportPKG_CONFIG_SYSROOT_DIR=$SDK_PATH/$TARGET_SYS'
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 2 lines
Quoted 1 line
$script
echo 'export
PKG_CONFIG_PATH=$SDK_PATH/$TARGET_SYS${libdir}/pkgconfig'
$script
Quoted 4 lines
Review toolchain_create_sdk_env_script () { · line 55
Quoted 2 lines
(quoted diff) +0
-0@@ -54,4 +55,5 @@ toolchain_create_sdk_env_script () { echo 'export OECORE_ACLOCAL_OPTS="-I$SDK_PATH/usr/share/aclocal"' >> $script
Quoted 1 line
(quoted diff) +0
-0echo 'exportOECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >>
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
$script
Review toolchain_create_sdk_env_script () { · line 57
Quoted 1 line
(quoted diff) +0
-0echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >>$script
Review toolchain_create_sdk_env_script () { · line 58
Quoted 1 line
(quoted diff) +1
-0+ echo 'for i in `cd $SDK_PATH/bin; find -L ! -name"$TARGET_SYS-*" -type f -perm +111 -exec file {} \;|grep -v ":.*ASCII.*text"|cut -d":" -f1|cut -c3-`; do alias $i="$SDK_PATH/lib/ld-linux.so.2 $SDK_PATH/bin/$i"; done' >>
$script
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
^^^^^^^^^^^^^^^^^^^^
Yep, that's pretty much it - several days of debugging,reseach and
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
testing and the result is a one-liner script-fu...
--
Denys
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 8 lines
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
I'll wait for that then. I got it half working with the function export, but it isn't all the way there.
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950
For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/
Quoted 174 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, November 07, 2012 2:44 PM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableGood luck with that - been there, done that, didn't work for me :) I have something that works, will be sending a v2 patch shortly.
Denys
Quoted 3 lines · Chase
Yeah, I've been playing with this myself with no luck.
I did see some people say that if you had functions exported and did
export -f <function> it might work. I'm going to try this.
Quoted 155 lines
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/Quoted 142 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Wednesday, November 07, 2012 2:09 PM
To: Cooper Jr., Franklin
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableNope, aliases are not accessible from Makefiles, need to switch gears...
Quoted 1 line · Denys Dmytriyenko
The only worry I have is whether aliases are going to work in a
MakefileQuoted 3 lines
On Wed, Nov 07, 2012 at 01:53:57PM -0500, Cooper Jr., Franklin
Quoted 4 lines · wrote:
Quoted 4 lines
Looks great
-----Original Message-----
From: [email protected] [mailto:meta-[email protected]] On Behalf Of Maupin, Chase
Quoted 4 lines
Quoted 4 lines
Sent: Wednesday, November 07, 2012 9:16 AM
To: Denys Dmytriyenko; Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: makeSDK/devkit relocatable
Quoted 10 lines
Quoted 10 lines
Your script-fu is strong :)
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950Quoted 2 lines
Quoted 2 lines
For support:
Forums - http://community.ti.com/forums/ Wiki -Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago-
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
[email protected]] On Behalf Of Denys Dmytriyenko
Sent: Wednesday, November 07, 2012 12:31 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago:make
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
SDK/devkit relocatable
Quoted 1 line · Denys Dmytriyenko
Implement poor man's relocation technique for self-
contained
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
crosssdk binaries
Quoted 4 lines
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb |
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
4 +++-
Review
Quoted 3 lines
1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0toolchain-arago.bb b/meta-arago-extras/recipes-
core/meta/meta-
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
toolchain-arago.bb
Quoted 2 lines
index d2fe982..27782f7 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb
Quoted 1 line
+++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-
arago.bb
Review TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-
Quoted 1 line
(quoted diff) +0
-0@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
Quoted 3 lines
(quoted diff) +0
-0require recipes-core/meta/meta-toolchain.bbQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
Review toolchain_create_sdk_env_script () { · line 28
Quoted 7 lines
(quoted diff) +1
-1-PR = "r5" +PR = "r6" SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"@@ -28,6 +28,7 @@ toolchain_create_sdk_env_script () { echo 'export TARGET_SYS=${ARAGO_TARGET_SYS}' >>$script
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Review toolchain_create_sdk_env_script () { · line 31
Quoted 3 lines
(quoted diff) +1
-0echo 'export TARGET_PREFIX=$TARGET_SYS-' >> $script echo 'export PATH=$SDK_PATH/bin:$PATH' >> $script + echo 'exportLD_LIBRARY_PATH=$SDK_PATH/lib:$LD_LIBRARY_PATH' >> $script
Review toolchain_create_sdk_env_script () { · line 32
Quoted 1 line
(quoted diff) +0
-0echo 'exportCPATH=$SDK_PATH/$TARGET_SYS/usr/include:$CPATH' >> $script
Quoted 1 line
(quoted diff) +0
-0echo 'exportPKG_CONFIG_SYSROOT_DIR=$SDK_PATH/$TARGET_SYS'
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 2 lines
Quoted 1 line
$script
echo 'export
PKG_CONFIG_PATH=$SDK_PATH/$TARGET_SYS${libdir}/pkgconfig'
$script
Quoted 4 lines
Review toolchain_create_sdk_env_script () { · line 55
Quoted 2 lines
(quoted diff) +0
-0@@ -54,4 +55,5 @@ toolchain_create_sdk_env_script () { echo 'export OECORE_ACLOCAL_OPTS="-I$SDK_PATH/usr/share/aclocal"' >> $script
Quoted 1 line
(quoted diff) +0
-0echo 'exportOECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >>
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
$script
Review toolchain_create_sdk_env_script () { · line 57
Quoted 1 line
(quoted diff) +0
-0echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >>$script
Review toolchain_create_sdk_env_script () { · line 58
Quoted 1 line
(quoted diff) +1
-0+ echo 'for i in `cd $SDK_PATH/bin; find -L ! -name"$TARGET_SYS-*" -type f -perm +111 -exec file {} \;|grep -v ":.*ASCII.*text"|cut -d":" -f1|cut -c3-`; do alias $i="$SDK_PATH/lib/ld-linux.so.2 $SDK_PATH/bin/$i"; done' >>
$script
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
^^^^^^^^^^^^^^^^^^^^
Yep, that's pretty much it - several days of debugging,reseach and
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
testing and the result is a one-liner script-fu...
--
Denys
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 8 lines
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Did it work for you? What did you do? It didn't seem to work for me with the functions...
Quoted 188 lines · Chase
I'll wait for that then. I got it half working with the function export, but it isn't all the way there.
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/Quoted 174 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, November 07, 2012 2:44 PM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableGood luck with that - been there, done that, didn't work for me :) I have something that works, will be sending a v2 patch shortly.
Denys
Quoted 3 lines · Chase
Yeah, I've been playing with this myself with no luck.
I did see some people say that if you had functions exported and did
export -f <function> it might work. I'm going to try this.
Quoted 155 lines
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/Quoted 142 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Wednesday, November 07, 2012 2:09 PM
To: Cooper Jr., Franklin
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableNope, aliases are not accessible from Makefiles, need to switch gears...
Quoted 1 line · Denys Dmytriyenko
The only worry I have is whether aliases are going to work in a
MakefileQuoted 3 lines
On Wed, Nov 07, 2012 at 01:53:57PM -0500, Cooper Jr., Franklin
Quoted 4 lines · wrote:
Quoted 4 lines
Looks great
-----Original Message-----
From: [email protected] [mailto:meta-[email protected]] On Behalf Of Maupin, Chase
Quoted 4 lines
Quoted 4 lines
Sent: Wednesday, November 07, 2012 9:16 AM
To: Denys Dmytriyenko; Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: makeSDK/devkit relocatable
Quoted 10 lines
Quoted 10 lines
Your script-fu is strong :)
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950Quoted 2 lines
Quoted 2 lines
For support:
Forums - http://community.ti.com/forums/ Wiki -Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago-
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
[email protected]] On Behalf Of Denys Dmytriyenko
Sent: Wednesday, November 07, 2012 12:31 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago:make
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
SDK/devkit relocatable
Quoted 1 line · Denys Dmytriyenko
Implement poor man's relocation technique for self-
contained
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
crosssdk binaries
Quoted 4 lines
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb |
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
4 +++-
Review
Quoted 3 lines
1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0toolchain-arago.bb b/meta-arago-extras/recipes-
core/meta/meta-
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
toolchain-arago.bb
Quoted 2 lines
index d2fe982..27782f7 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb
Quoted 1 line
+++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-
arago.bb
Review TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-
Quoted 1 line
(quoted diff) +0
-0@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
Quoted 3 lines
(quoted diff) +0
-0require recipes-core/meta/meta-toolchain.bbQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
Review toolchain_create_sdk_env_script () { · line 28
Quoted 7 lines
(quoted diff) +1
-1-PR = "r5" +PR = "r6" SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"@@ -28,6 +28,7 @@ toolchain_create_sdk_env_script () { echo 'export TARGET_SYS=${ARAGO_TARGET_SYS}' >>$script
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Review toolchain_create_sdk_env_script () { · line 31
Quoted 3 lines
(quoted diff) +1
-0echo 'export TARGET_PREFIX=$TARGET_SYS-' >> $script echo 'export PATH=$SDK_PATH/bin:$PATH' >> $script + echo 'exportLD_LIBRARY_PATH=$SDK_PATH/lib:$LD_LIBRARY_PATH' >> $script
Review toolchain_create_sdk_env_script () { · line 32
Quoted 1 line
(quoted diff) +0
-0echo 'exportCPATH=$SDK_PATH/$TARGET_SYS/usr/include:$CPATH' >> $script
Quoted 1 line
(quoted diff) +0
-0echo 'exportPKG_CONFIG_SYSROOT_DIR=$SDK_PATH/$TARGET_SYS'
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 2 lines
Quoted 1 line
$script
echo 'export
PKG_CONFIG_PATH=$SDK_PATH/$TARGET_SYS${libdir}/pkgconfig'
$script
Quoted 4 lines
Review toolchain_create_sdk_env_script () { · line 55
Quoted 2 lines
(quoted diff) +0
-0@@ -54,4 +55,5 @@ toolchain_create_sdk_env_script () { echo 'export OECORE_ACLOCAL_OPTS="-I$SDK_PATH/usr/share/aclocal"' >> $script
Quoted 1 line
(quoted diff) +0
-0echo 'exportOECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >>
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
$script
Review toolchain_create_sdk_env_script () { · line 57
Quoted 1 line
(quoted diff) +0
-0echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >>$script
Review toolchain_create_sdk_env_script () { · line 58
Quoted 1 line
(quoted diff) +1
-0+ echo 'for i in `cd $SDK_PATH/bin; find -L ! -name"$TARGET_SYS-*" -type f -perm +111 -exec file {} \;|grep -v ":.*ASCII.*text"|cut -d":" -f1|cut -c3-`; do alias $i="$SDK_PATH/lib/ld-linux.so.2 $SDK_PATH/bin/$i"; done' >>
$script
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
^^^^^^^^^^^^^^^^^^^^
Yep, that's pretty much it - several days of debugging,reseach and
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
testing and the result is a one-liner script-fu...
--
Denys
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 8 lines
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
I did something like:
In environment-setup define a function like:
function qmake2() {
LD_LIBRARY_PATH=${SDK_PATH}/lib:${LD_LIBRARY_PATH} ${SDK_PATH}/lib/ld-linux.so.2 ${SDK_PATH}/bin/qmake2 $*
}export -f qmake2
In the Makefile do something like:
@. ${ENV_SETUP}; \
qmake2 CONFIG+=debug_and_release QMAKE_CXXFLAGS_DEBUG+=-D${PLATFORM_DEFINE} QMAKE_CXXFLAGS_RELEASE+=-D${PLATFORM_DEFINE} matrix_browser.proI also defined a lot of other Qt tools, but something wasn't quite right because I kept getting output like
make -f Makefile.build release
make[1]: Entering directory `/home/a0271661/ti-sdk-am335x-evm-05.06.00.00/example-applications/matrix-gui-browser-2.0' make -f Makefile.Release
make[2]: Entering directory `/home/a0271661/ti-sdk-am335x-evm-05.06.00.00/example-applications/matrix-gui-browser-2.0'
arm-arago-linux-gnueabi-g++ -c -pipe -pipe -pipe -march=armv7-a -fno-tree-vectorize -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 --sysroot=/home/a0271661/ti-sdk-am335x-evm-05.06.00.00/linux-devkit/arm-arago-linux-gnueabi -march=armv7-a -fno-tree-vectorize -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 --sysroot=/home/a0271661/ti-sdk-am335x-evm-05.06.00.00/linux-devkit/arm-arago-linux-gnueabi -O2 -O2 -DPlatform_am335x-evm -Wall -W -Wall -W -Wall -W -D_REENTRANT -DQT_QWS_CLIENTBLIT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../linux-devkit/arm-arago-linux-gnueabi/usr/share/qtopia/mkspecs/linux-g++ -I. -I/home/a0271661/ti-sdk-am335x-evm-05.06.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/qtopia/QtCore -I/home/a0271661/ti-sdk-am335x-evm-05.06.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/qtopia/QtGui -I/home/a0271661/ti-sdk-am335x-evm-05.06.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/qtopia/QtWebKit -I/home/a0271661/ti-sdk-am335x-evm-05.06.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/qtopia -I. -Irelease -o release/main.o main.cpp
make[2]: *** [release/main.o] Segmentation fault
make[2]: Leaving directory `/home/a0271661/ti-sdk-am335x-evm-05.06.00.00/example-applications/matrix-gui-browser-2.0' make[1]: *** [release] Error 2
make[1]: Leaving directory `/home/a0271661/ti-sdk-am335x-evm-05.06.00.00/example-applications/matrix-gui-browser-2.0'
make: *** [release] Error 2
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950
For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/
Quoted 211 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, November 07, 2012 2:46 PM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableDid it work for you? What did you do? It didn't seem to work for me with the
functions...Quoted 1 line · Chase
I'll wait for that then. I got it half working with the function
export, but it isn't all the way there.
Quoted 8 lines
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950Quoted 11 lines
For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/Quoted 6 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, November 07, 2012 2:44 PM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: makeSDK/devkit
Quoted 5 lines
Quoted 5 lines
relocatable
Good luck with that - been there, done that, didn't work for me :) I have something that works, will be sending a v2 patch shortly.
Quoted 7 lines
Quoted 7 lines
Denys
Quoted 3 lines · Chase
Yeah, I've been playing with this myself with no luck.
I did see some people say that if you had functions exported and
did
Quoted 23 lines
Quoted 23 lines
export -f <function> it might work. I'm going to try this.
Quoted 22 lines
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/Quoted 9 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Wednesday, November 07, 2012 2:09 PM
To: Cooper Jr., Franklin
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Nope, aliases are not accessible from Makefiles, need to switch gears...
Quoted 1 line · Denys Dmytriyenko
The only worry I have is whether aliases are going to work in
a
Quoted 38 lines
Quoted 38 lines
Quoted 38 lines
Quoted 38 lines
MakefileQuoted 3 lines
On Wed, Nov 07, 2012 at 01:53:57PM -0500, Cooper Jr., Franklin
Quoted 4 lines · wrote:
Quoted 4 lines
Looks great
-----Original Message-----
From: [email protected] [mailto:meta-[email protected]] On Behalf Of Maupin, Chase
Quoted 4 lines
Quoted 4 lines
Sent: Wednesday, November 07, 2012 9:16 AM
To: Denys Dmytriyenko; Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: makeSDK/devkit relocatable
Quoted 10 lines
Quoted 10 lines
Your script-fu is strong :)
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950Quoted 2 lines
Quoted 2 lines
For support:
Forums - http://community.ti.com/forums/ Wiki -Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago-
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
[email protected]] On Behalf Of Denys Dmytriyenko
Sent: Wednesday, November 07, 2012 12:31 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago:Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
make
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
SDK/devkit relocatable
On Wed, Nov 07, 2012 at 01:25:11AM -0500, Denys
Dmytriyenko
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line · wrote:
Implement poor man's relocation technique for self-
contained
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
crosssdk binaries
Quoted 4 lines
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb |
Quoted 1 line
Quoted 1 line
Quoted 1 line
4 +++-
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Review
Quoted 3 lines
1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0toolchain-arago.bb b/meta-arago-extras/recipes-
core/meta/meta-
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
toolchain-arago.bb
Quoted 2 lines
index d2fe982..27782f7 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
arago.bb
Quoted 1 line
+++ b/meta-arago-extras/recipes-core/meta/meta-
toolchain-
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
arago.bb
Review TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-
Quoted 1 line
(quoted diff) +0
-0@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
Quoted 3 lines
(quoted diff) +0
-0require recipes-core/meta/meta-toolchain.bbQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
Review toolchain_create_sdk_env_script () { · line 28
Quoted 7 lines
(quoted diff) +1
-1-PR = "r5" +PR = "r6" SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"@@ -28,6 +28,7 @@ toolchain_create_sdk_env_script () { echo 'export TARGET_SYS=${ARAGO_TARGET_SYS}' >>$script
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Review toolchain_create_sdk_env_script () { · line 31
Quoted 3 lines
(quoted diff) +1
-0echo 'export TARGET_PREFIX=$TARGET_SYS-' >> $script echo 'export PATH=$SDK_PATH/bin:$PATH' >> $script + echo 'exportLD_LIBRARY_PATH=$SDK_PATH/lib:$LD_LIBRARY_PATH' >> $script
Review toolchain_create_sdk_env_script () { · line 32
Quoted 1 line
(quoted diff) +0
-0echo 'exportCPATH=$SDK_PATH/$TARGET_SYS/usr/include:$CPATH' >> $script
Quoted 1 line
(quoted diff) +0
-0echo 'exportPKG_CONFIG_SYSROOT_DIR=$SDK_PATH/$TARGET_SYS'
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
Quoted 1 line
$script
echo 'export
PKG_CONFIG_PATH=$SDK_PATH/$TARGET_SYS${libdir}/pkgconfig'
$script
Quoted 3 lines
Review toolchain_create_sdk_env_script () { · line 55
Quoted 2 lines
(quoted diff) +0
-0@@ -54,4 +55,5 @@ toolchain_create_sdk_env_script () { echo 'export OECORE_ACLOCAL_OPTS="-I$SDK_PATH/usr/share/aclocal"' >> $script
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Review toolchain_create_sdk_env_script () { · line 56
Quoted 1 line
(quoted diff) +0
-0echo 'exportOECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >>
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
$script
Review toolchain_create_sdk_env_script () { · line 57
Quoted 1 line
(quoted diff) +0
-0echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >>$script
Review toolchain_create_sdk_env_script () { · line 58
Quoted 1 line
(quoted diff) +1
-0+ echo 'for i in `cd $SDK_PATH/bin; find -L ! -name"$TARGET_SYS-*" -type f -perm +111 -exec file {} \;|grep -
v
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
":.*ASCII.*text"|cut -d":" -f1|cut -c3-`; do alias $i="$SDK_PATH/lib/ld-linux.so.2 $SDK_PATH/bin/$i"; done'
$script
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
^^^^^^^^^^^^^^^^^^^^
Yep, that's pretty much it - several days of debugging,reseach and
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
testing and the result is a one-liner script-fu...
--
Denys
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 8 lines
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
NOTE: The $* is important
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950
For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/
Quoted 302 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Wednesday, November 07, 2012 2:57 PM
To: Dmytriyenko, Denys
Cc: [email protected]; Cooper Jr., Franklin
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableI did something like:
In environment-setup define a function like:
function qmake2() { LD_LIBRARY_PATH=${SDK_PATH}/lib:${LD_LIBRARY_PATH}${SDK_PATH}/lib/ld-linux.so.2 ${SDK_PATH}/bin/qmake2 $* }
export -f qmake2
In the
Makefiledo something like:@. ${ENV_SETUP}; \ qmake2 CONFIG+=debug_and_release QMAKE_CXXFLAGS_DEBUG+=-D${PLATFORM_DEFINE} QMAKE_CXXFLAGS_RELEASE+=-D${PLATFORM_DEFINE} matrix_browser.pro
I also defined a lot of other Qt tools, but something wasn't quite right because I kept getting output like
make -f Makefile.build release
make[1]: Entering directory `/home/a0271661/ti-sdk-am335x-evm- 05.06.00.00/example-applications/matrix-gui-browser-2.0' make -f Makefile.Release
make[2]: Entering directory `/home/a0271661/ti-sdk-am335x-evm- 05.06.00.00/example-applications/matrix-gui-browser-2.0' arm-arago-linux-gnueabi-g++ -c -pipe -pipe -pipe -march=armv7-a -fno-
tree-vectorize -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -
mtune=cortex-a8 --sysroot=/home/a0271661/ti-sdk-am335x-evm- 05.06.00.00/linux-devkit/arm-arago-linux-gnueabi -march=armv7-a -fno-
tree-vectorize -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -
mtune=cortex-a8 --sysroot=/home/a0271661/ti-sdk-am335x-evm- 05.06.00.00/linux-devkit/arm-arago-linux-gnueabi -O2 -O2 - DPlatform_am335x-evm -Wall -W -Wall -W -Wall -W -D_REENTRANT -DQT_QWS_CLIENTBLIT-DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB-DQT_SHARED -I../../linux-devkit/arm-arago-linux- gnueabi/usr/share/qtopia/mkspecs/linux-g++ -I. -I/home/a0271661/ti-sdk- am335x-evm-05.06.00.00/linux-devkit/arm-arago-linux- gnueabi/usr/include/qtopia/QtCore -I/home/a0271661/ti-sdk-am335x-evm- 05.06.00.00/linux-devkit/arm-arago-linux- gnueabi/usr/include/qtopia/QtGui -I/home/a0271661/ti-sdk-am335x-evm- 05.06.00.00/linux-devkit/arm-arago-linux-gnueabi/u
sr/include/qtopia/QtWebKit -I/home/a0271661/ti-sdk-am335x-evm-
05.06.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/qtopia -I. -Irelease -orelease/main.omain.cpp
make[2]: *** [release/main.o] Segmentation fault
make[2]: Leaving directory `/home/a0271661/ti-sdk-am335x-evm- 05.06.00.00/example-applications/matrix-gui-browser-2.0' make[1]: *** [release] Error 2
make[1]: Leaving directory `/home/a0271661/ti-sdk-am335x-evm- 05.06.00.00/example-applications/matrix-gui-browser-2.0'
make: *** [release] Error 2Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/Quoted 6 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, November 07, 2012 2:46 PM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: makeSDK/devkit
Quoted 3 lines
relocatable
Did it work for you? What did you do? It didn't seem to work for me
with
Quoted 32 lines
the
functions...Quoted 1 line · Chase
I'll wait for that then. I got it half working with the function
export, but it isn't all the way there.
Quoted 8 lines
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950Quoted 11 lines
For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/Quoted 6 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, November 07, 2012 2:44 PM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: makeSDK/devkit
Quoted 5 lines
Quoted 5 lines
relocatable
Good luck with that - been there, done that, didn't work for me :) I have something that works, will be sending a v2 patch shortly.
Quoted 32 lines
Quoted 7 lines
Quoted 7 lines
Denys
Quoted 3 lines · Chase
Yeah, I've been playing with this myself with no luck.
I did see some people say that if you had functions exported and
did
Quoted 24 lines
Quoted 24 lines
export -f <function> it might work. I'm going to try this.
Quoted 23 lines
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/Quoted 10 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Wednesday, November 07, 2012 2:09 PM
To: Cooper Jr., Franklin
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatableNope, aliases are not accessible from Makefiles, need to
switch
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
gears...
Quoted 1 line · Denys Dmytriyenko
The only worry I have is whether aliases are going to work
in
Quoted 5 lines
a
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
MakefileQuoted 3 lines
On Wed, Nov 07, 2012 at 01:53:57PM -0500, Cooper Jr.,
Franklin
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines · wrote:
Quoted 4 lines
Looks great
-----Original Message-----
From: [email protected] [mailto:meta-[email protected]] On Behalf Of Maupin, Chase
Quoted 4 lines
Quoted 4 lines
Sent: Wednesday, November 07, 2012 9:16 AM
To: Denys Dmytriyenko; Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago:make
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
SDK/devkit relocatable
Quoted 12 lines
Quoted 12 lines
Your script-fu is strong :)
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950For support:
Forums - http://community.ti.com/forums/ Wiki -Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago-
Quoted 1 line
Quoted 1 line
Quoted 1 line
[email protected]] On Behalf Of Denys
Dmytriyenko
Quoted 23 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Sent: Wednesday, November 07, 2012 12:31 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago:make
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
SDK/devkit relocatable
On Wed, Nov 07, 2012 at 01:25:11AM -0500, Denys
Dmytriyenko
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line · wrote:
Implement poor man's relocation technique for self-
contained
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
crosssdk binaries
Quoted 4 lines
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb |
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
4 +++-
Review
Quoted 3 lines
1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0toolchain-arago.bb b/meta-arago-extras/recipes-
Quoted 26 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
core/meta/meta-
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
toolchain-arago.bb
Quoted 2 lines
index d2fe982..27782f7 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
arago.bb
Quoted 1 line
+++ b/meta-arago-extras/recipes-core/meta/meta-
toolchain-
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
arago.bb
Review TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-
Quoted 1 line
(quoted diff) +0
-0@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
Quoted 3 lines
(quoted diff) +0
-0require recipes-core/meta/meta-toolchain.bbQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
Review toolchain_create_sdk_env_script () { · line 28
Quoted 7 lines
(quoted diff) +1
-1-PR = "r5" +PR = "r6" SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"@@ -28,6 +28,7 @@ toolchain_create_sdk_env_script () { echo 'export TARGET_SYS=${ARAGO_TARGET_SYS}' >>$script
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Review toolchain_create_sdk_env_script () { · line 31
Quoted 3 lines
(quoted diff) +1
-0echo 'export TARGET_PREFIX=$TARGET_SYS-' >> $script echo 'export PATH=$SDK_PATH/bin:$PATH' >> $script + echo 'exportLD_LIBRARY_PATH=$SDK_PATH/lib:$LD_LIBRARY_PATH' >>
$script
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Review toolchain_create_sdk_env_script () { · line 32
Quoted 1 line
(quoted diff) +0
-0echo 'exportCPATH=$SDK_PATH/$TARGET_SYS/usr/include:$CPATH' >>
$script
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Review toolchain_create_sdk_env_script () { · line 33
Quoted 1 line
(quoted diff) +0
-0echo 'exportPKG_CONFIG_SYSROOT_DIR=$SDK_PATH/$TARGET_SYS'
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
Quoted 1 line
$script
echo 'export
PKG_CONFIG_PATH=$SDK_PATH/$TARGET_SYS${libdir}/pkgconfig'
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 5 lines
Quoted 5 lines
$script
Quoted 4 lines
Review toolchain_create_sdk_env_script () { · line 55
Quoted 2 lines
(quoted diff) +0
-0@@ -54,4 +55,5 @@ toolchain_create_sdk_env_script () { echo 'export OECORE_ACLOCAL_OPTS="-I$SDK_PATH/usr/share/aclocal"' >> $script
Quoted 1 line
(quoted diff) +0
-0echo 'exportOECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >>
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
$script
Review toolchain_create_sdk_env_script () { · line 57
Quoted 1 line
(quoted diff) +0
-0echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >>$script
Review toolchain_create_sdk_env_script () { · line 58
Quoted 1 line
(quoted diff) +1
-0+ echo 'for i in `cd $SDK_PATH/bin; find -L ! -name"$TARGET_SYS-*" -type f -perm +111 -exec file {} \;|grep
-
Quoted 22 lines
v
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
":.*ASCII.*text"|cut -d":" -f1|cut -c3-`; do alias $i="$SDK_PATH/lib/ld-linux.so.2 $SDK_PATH/bin/$i"; done'
$script
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
^^^^^^^^^^^^^^^^^^^^
Yep, that's pretty much it - several days of debugging,reseach and
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
testing and the result is a one-liner script-fu...
--
Denys
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 4 lines
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago