* [PATCH] meta-toolchain-arago: make SDK/devkit relocatable @ 2012-11-07 6:25 Denys Dmytriyenko 2012-11-07 6:31 ` Denys Dmytriyenko 0 siblings, 1 reply; 12+ messages in thread From: Denys Dmytriyenko @ 2012-11-07 6:25 UTC (permalink / raw) To: meta-arago Implement poor man's relocation technique for self-contained crosssdk binaries Signed-off-by: Denys Dmytriyenko <denys@ti.com> --- meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb b/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb index d2fe982..27782f7 100644 --- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb @@ -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 } -- 1.8.0 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] meta-toolchain-arago: make SDK/devkit relocatable 2012-11-07 6:25 [PATCH] meta-toolchain-arago: make SDK/devkit relocatable Denys Dmytriyenko @ 2012-11-07 6:31 ` Denys Dmytriyenko 2012-11-07 15:15 ` Maupin, Chase 0 siblings, 1 reply; 12+ messages in thread From: Denys Dmytriyenko @ 2012-11-07 6:31 UTC (permalink / raw) To: Denys Dmytriyenko; +Cc: meta-arago On Wed, Nov 07, 2012 at 01:25:11AM -0500, Denys Dmytriyenko wrote: > Implement poor man's relocation technique for self-contained crosssdk binaries > > Signed-off-by: Denys Dmytriyenko <denys@ti.com> > --- > meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb b/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb > index d2fe982..27782f7 100644 > --- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb > +++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb > @@ -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 ^^^^^^^^^^^^^^^^^^^^ Yep, that's pretty much it - several days of debugging, reseach and testing and the result is a one-liner script-fu... -- Denys ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] meta-toolchain-arago: make SDK/devkit relocatable 2012-11-07 6:31 ` Denys Dmytriyenko @ 2012-11-07 15:15 ` Maupin, Chase 2012-11-07 18:53 ` Cooper Jr., Franklin 0 siblings, 1 reply; 12+ messages in thread From: Maupin, Chase @ 2012-11-07 15:15 UTC (permalink / raw) To: Denys Dmytriyenko, Dmytriyenko, Denys; +Cc: meta-arago@arago-project.org Your script-fu is strong :) Sincerely, Chase Maupin Software Applications ARM MPU e-mail: chase.maupin@ti.com phone: (214) 567-2950 For support: Forums - http://community.ti.com/forums/ Wiki - http://wiki.davincidsp.com/ > -----Original Message----- > From: meta-arago-bounces@arago-project.org [mailto:meta-arago- > bounces@arago-project.org] On Behalf Of Denys Dmytriyenko > Sent: Wednesday, November 07, 2012 12:31 AM > To: Dmytriyenko, Denys > Cc: meta-arago@arago-project.org > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make > SDK/devkit relocatable > > On Wed, Nov 07, 2012 at 01:25:11AM -0500, Denys Dmytriyenko > wrote: > > Implement poor man's relocation technique for self-contained > crosssdk binaries > > > > Signed-off-by: Denys Dmytriyenko <denys@ti.com> > > --- > > meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb | > 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/meta-arago-extras/recipes-core/meta/meta- > toolchain-arago.bb b/meta-arago-extras/recipes-core/meta/meta- > toolchain-arago.bb > > index d2fe982..27782f7 100644 > > --- a/meta-arago-extras/recipes-core/meta/meta-toolchain- > arago.bb > > +++ b/meta-arago-extras/recipes-core/meta/meta-toolchain- > arago.bb > > @@ -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 > > ^^^^^^^^^^^^^^^^^^^^ > 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 > meta-arago@arago-project.org > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] meta-toolchain-arago: make SDK/devkit relocatable 2012-11-07 15:15 ` Maupin, Chase @ 2012-11-07 18:53 ` Cooper Jr., Franklin 2012-11-07 18:58 ` Denys Dmytriyenko 0 siblings, 1 reply; 12+ messages in thread From: Cooper Jr., Franklin @ 2012-11-07 18:53 UTC (permalink / raw) To: Maupin, Chase, Denys Dmytriyenko, Dmytriyenko, Denys Cc: meta-arago@arago-project.org Looks great -----Original Message----- From: meta-arago-bounces@arago-project.org [mailto:meta-arago-bounces@arago-project.org] On Behalf Of Maupin, Chase Sent: Wednesday, November 07, 2012 9:16 AM To: Denys Dmytriyenko; Dmytriyenko, Denys Cc: meta-arago@arago-project.org 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: chase.maupin@ti.com phone: (214) 567-2950 For support: Forums - http://community.ti.com/forums/ Wiki - http://wiki.davincidsp.com/ > -----Original Message----- > From: meta-arago-bounces@arago-project.org [mailto:meta-arago- > bounces@arago-project.org] On Behalf Of Denys Dmytriyenko > Sent: Wednesday, November 07, 2012 12:31 AM > To: Dmytriyenko, Denys > Cc: meta-arago@arago-project.org > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make > SDK/devkit relocatable > > On Wed, Nov 07, 2012 at 01:25:11AM -0500, Denys Dmytriyenko > wrote: > > Implement poor man's relocation technique for self-contained > crosssdk binaries > > > > Signed-off-by: Denys Dmytriyenko <denys@ti.com> > > --- > > meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb | > 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/meta-arago-extras/recipes-core/meta/meta- > toolchain-arago.bb b/meta-arago-extras/recipes-core/meta/meta- > toolchain-arago.bb > > index d2fe982..27782f7 100644 > > --- a/meta-arago-extras/recipes-core/meta/meta-toolchain- > arago.bb > > +++ b/meta-arago-extras/recipes-core/meta/meta-toolchain- > arago.bb > > @@ -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 > > ^^^^^^^^^^^^^^^^^^^^ > 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 > meta-arago@arago-project.org > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago _______________________________________________ meta-arago mailing list meta-arago@arago-project.org http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] meta-toolchain-arago: make SDK/devkit relocatable 2012-11-07 18:53 ` Cooper Jr., Franklin @ 2012-11-07 18:58 ` Denys Dmytriyenko 2012-11-07 20:09 ` Denys Dmytriyenko 0 siblings, 1 reply; 12+ messages in thread From: Denys Dmytriyenko @ 2012-11-07 18:58 UTC (permalink / raw) To: Cooper Jr., Franklin; +Cc: meta-arago@arago-project.org The only worry I have is whether aliases are going to work in a Makefile On Wed, Nov 07, 2012 at 01:53:57PM -0500, Cooper Jr., Franklin wrote: > Looks great > > -----Original Message----- > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-bounces@arago-project.org] On Behalf Of Maupin, Chase > Sent: Wednesday, November 07, 2012 9:16 AM > To: Denys Dmytriyenko; Dmytriyenko, Denys > Cc: meta-arago@arago-project.org > 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: chase.maupin@ti.com > phone: (214) 567-2950 > > For support: > Forums - http://community.ti.com/forums/ Wiki - http://wiki.davincidsp.com/ > > > > -----Original Message----- > > From: meta-arago-bounces@arago-project.org [mailto:meta-arago- > > bounces@arago-project.org] On Behalf Of Denys Dmytriyenko > > Sent: Wednesday, November 07, 2012 12:31 AM > > To: Dmytriyenko, Denys > > Cc: meta-arago@arago-project.org > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make > > SDK/devkit relocatable > > > > On Wed, Nov 07, 2012 at 01:25:11AM -0500, Denys Dmytriyenko > > wrote: > > > Implement poor man's relocation technique for self-contained > > crosssdk binaries > > > > > > Signed-off-by: Denys Dmytriyenko <denys@ti.com> > > > --- > > > meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb | > > 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > diff --git a/meta-arago-extras/recipes-core/meta/meta- > > toolchain-arago.bb b/meta-arago-extras/recipes-core/meta/meta- > > toolchain-arago.bb > > > index d2fe982..27782f7 100644 > > > --- a/meta-arago-extras/recipes-core/meta/meta-toolchain- > > arago.bb > > > +++ b/meta-arago-extras/recipes-core/meta/meta-toolchain- > > arago.bb > > > @@ -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 > > > > ^^^^^^^^^^^^^^^^^^^^ > > 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 > > meta-arago@arago-project.org > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > _______________________________________________ > meta-arago mailing list > meta-arago@arago-project.org > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] meta-toolchain-arago: make SDK/devkit relocatable 2012-11-07 18:58 ` Denys Dmytriyenko @ 2012-11-07 20:09 ` Denys Dmytriyenko 2012-11-07 20:17 ` Maupin, Chase 0 siblings, 1 reply; 12+ messages in thread From: Denys Dmytriyenko @ 2012-11-07 20:09 UTC (permalink / raw) To: Cooper Jr., Franklin; +Cc: meta-arago@arago-project.org Nope, aliases are not accessible from Makefiles, need to switch gears... On Wed, Nov 07, 2012 at 01:58:47PM -0500, Denys Dmytriyenko wrote: > The only worry I have is whether aliases are going to work in a Makefile > > > On Wed, Nov 07, 2012 at 01:53:57PM -0500, Cooper Jr., Franklin wrote: > > Looks great > > > > -----Original Message----- > > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-bounces@arago-project.org] On Behalf Of Maupin, Chase > > Sent: Wednesday, November 07, 2012 9:16 AM > > To: Denys Dmytriyenko; Dmytriyenko, Denys > > Cc: meta-arago@arago-project.org > > 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: chase.maupin@ti.com > > phone: (214) 567-2950 > > > > For support: > > Forums - http://community.ti.com/forums/ Wiki - http://wiki.davincidsp.com/ > > > > > > > -----Original Message----- > > > From: meta-arago-bounces@arago-project.org [mailto:meta-arago- > > > bounces@arago-project.org] On Behalf Of Denys Dmytriyenko > > > Sent: Wednesday, November 07, 2012 12:31 AM > > > To: Dmytriyenko, Denys > > > Cc: meta-arago@arago-project.org > > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make > > > SDK/devkit relocatable > > > > > > On Wed, Nov 07, 2012 at 01:25:11AM -0500, Denys Dmytriyenko > > > wrote: > > > > Implement poor man's relocation technique for self-contained > > > crosssdk binaries > > > > > > > > Signed-off-by: Denys Dmytriyenko <denys@ti.com> > > > > --- > > > > meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb | > > > 4 +++- > > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > > > diff --git a/meta-arago-extras/recipes-core/meta/meta- > > > toolchain-arago.bb b/meta-arago-extras/recipes-core/meta/meta- > > > toolchain-arago.bb > > > > index d2fe982..27782f7 100644 > > > > --- a/meta-arago-extras/recipes-core/meta/meta-toolchain- > > > arago.bb > > > > +++ b/meta-arago-extras/recipes-core/meta/meta-toolchain- > > > arago.bb > > > > @@ -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 > > > > > > ^^^^^^^^^^^^^^^^^^^^ > > > 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 > > > meta-arago@arago-project.org > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > > _______________________________________________ > > meta-arago mailing list > > meta-arago@arago-project.org > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > _______________________________________________ > meta-arago mailing list > meta-arago@arago-project.org > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] meta-toolchain-arago: make SDK/devkit relocatable 2012-11-07 20:09 ` Denys Dmytriyenko @ 2012-11-07 20:17 ` Maupin, Chase 2012-11-07 20:44 ` Denys Dmytriyenko 0 siblings, 1 reply; 12+ messages in thread From: Maupin, Chase @ 2012-11-07 20:17 UTC (permalink / raw) To: Dmytriyenko, Denys, Cooper Jr., Franklin; +Cc: meta-arago@arago-project.org 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: chase.maupin@ti.com phone: (214) 567-2950 For support: Forums - http://community.ti.com/forums/ Wiki - http://wiki.davincidsp.com/ > -----Original Message----- > From: meta-arago-bounces@arago-project.org [mailto:meta-arago- > bounces@arago-project.org] On Behalf Of Dmytriyenko, Denys > Sent: Wednesday, November 07, 2012 2:09 PM > To: Cooper Jr., Franklin > Cc: meta-arago@arago-project.org > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make > SDK/devkit relocatable > > Nope, aliases are not accessible from Makefiles, need to switch > gears... > > > On Wed, Nov 07, 2012 at 01:58:47PM -0500, Denys Dmytriyenko > wrote: > > The only worry I have is whether aliases are going to work in a > Makefile > > > > > > On Wed, Nov 07, 2012 at 01:53:57PM -0500, Cooper Jr., Franklin > wrote: > > > Looks great > > > > > > -----Original Message----- > > > From: meta-arago-bounces@arago-project.org [mailto:meta- > arago-bounces@arago-project.org] On Behalf Of Maupin, Chase > > > Sent: Wednesday, November 07, 2012 9:16 AM > > > To: Denys Dmytriyenko; Dmytriyenko, Denys > > > Cc: meta-arago@arago-project.org > > > 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: chase.maupin@ti.com > > > phone: (214) 567-2950 > > > > > > For support: > > > Forums - http://community.ti.com/forums/ Wiki - > http://wiki.davincidsp.com/ > > > > > > > > > > -----Original Message----- > > > > From: meta-arago-bounces@arago-project.org [mailto:meta- > arago- > > > > bounces@arago-project.org] On Behalf Of Denys Dmytriyenko > > > > Sent: Wednesday, November 07, 2012 12:31 AM > > > > To: Dmytriyenko, Denys > > > > Cc: meta-arago@arago-project.org > > > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: > make > > > > SDK/devkit relocatable > > > > > > > > On Wed, Nov 07, 2012 at 01:25:11AM -0500, Denys Dmytriyenko > > > > wrote: > > > > > Implement poor man's relocation technique for self- > contained > > > > crosssdk binaries > > > > > > > > > > Signed-off-by: Denys Dmytriyenko <denys@ti.com> > > > > > --- > > > > > meta-arago-extras/recipes-core/meta/meta-toolchain- > arago.bb | > > > > 4 +++- > > > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > > > > > diff --git a/meta-arago-extras/recipes-core/meta/meta- > > > > toolchain-arago.bb b/meta-arago-extras/recipes- > core/meta/meta- > > > > toolchain-arago.bb > > > > > index d2fe982..27782f7 100644 > > > > > --- a/meta-arago-extras/recipes-core/meta/meta-toolchain- > > > > arago.bb > > > > > +++ b/meta-arago-extras/recipes-core/meta/meta-toolchain- > > > > arago.bb > > > > > @@ -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 > > > > > > > > ^^^^^^^^^^^^^^^^^^^^ > > > > 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 > > > > meta-arago@arago-project.org > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta- > arago > > > _______________________________________________ > > > meta-arago mailing list > > > meta-arago@arago-project.org > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > > _______________________________________________ > > meta-arago mailing list > > meta-arago@arago-project.org > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > _______________________________________________ > meta-arago mailing list > meta-arago@arago-project.org > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] meta-toolchain-arago: make SDK/devkit relocatable 2012-11-07 20:17 ` Maupin, Chase @ 2012-11-07 20:44 ` Denys Dmytriyenko 2012-11-07 20:45 ` Maupin, Chase 0 siblings, 1 reply; 12+ messages in thread From: Denys Dmytriyenko @ 2012-11-07 20:44 UTC (permalink / raw) To: Maupin, Chase; +Cc: meta-arago@arago-project.org, Cooper Jr., Franklin 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 On Wed, Nov 07, 2012 at 03:17:58PM -0500, Maupin, Chase wrote: > 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: chase.maupin@ti.com > phone: (214) 567-2950 > > For support: > Forums - http://community.ti.com/forums/ > Wiki - http://wiki.davincidsp.com/ > > > > -----Original Message----- > > From: meta-arago-bounces@arago-project.org [mailto:meta-arago- > > bounces@arago-project.org] On Behalf Of Dmytriyenko, Denys > > Sent: Wednesday, November 07, 2012 2:09 PM > > To: Cooper Jr., Franklin > > Cc: meta-arago@arago-project.org > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make > > SDK/devkit relocatable > > > > Nope, aliases are not accessible from Makefiles, need to switch > > gears... > > > > > > On Wed, Nov 07, 2012 at 01:58:47PM -0500, Denys Dmytriyenko > > wrote: > > > The only worry I have is whether aliases are going to work in a > > Makefile > > > > > > > > > On Wed, Nov 07, 2012 at 01:53:57PM -0500, Cooper Jr., Franklin > > wrote: > > > > Looks great > > > > > > > > -----Original Message----- > > > > From: meta-arago-bounces@arago-project.org [mailto:meta- > > arago-bounces@arago-project.org] On Behalf Of Maupin, Chase > > > > Sent: Wednesday, November 07, 2012 9:16 AM > > > > To: Denys Dmytriyenko; Dmytriyenko, Denys > > > > Cc: meta-arago@arago-project.org > > > > 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: chase.maupin@ti.com > > > > phone: (214) 567-2950 > > > > > > > > For support: > > > > Forums - http://community.ti.com/forums/ Wiki - > > http://wiki.davincidsp.com/ > > > > > > > > > > > > > -----Original Message----- > > > > > From: meta-arago-bounces@arago-project.org [mailto:meta- > > arago- > > > > > bounces@arago-project.org] On Behalf Of Denys Dmytriyenko > > > > > Sent: Wednesday, November 07, 2012 12:31 AM > > > > > To: Dmytriyenko, Denys > > > > > Cc: meta-arago@arago-project.org > > > > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: > > make > > > > > SDK/devkit relocatable > > > > > > > > > > On Wed, Nov 07, 2012 at 01:25:11AM -0500, Denys Dmytriyenko > > > > > wrote: > > > > > > Implement poor man's relocation technique for self- > > contained > > > > > crosssdk binaries > > > > > > > > > > > > Signed-off-by: Denys Dmytriyenko <denys@ti.com> > > > > > > --- > > > > > > meta-arago-extras/recipes-core/meta/meta-toolchain- > > arago.bb | > > > > > 4 +++- > > > > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > > > > > > > diff --git a/meta-arago-extras/recipes-core/meta/meta- > > > > > toolchain-arago.bb b/meta-arago-extras/recipes- > > core/meta/meta- > > > > > toolchain-arago.bb > > > > > > index d2fe982..27782f7 100644 > > > > > > --- a/meta-arago-extras/recipes-core/meta/meta-toolchain- > > > > > arago.bb > > > > > > +++ b/meta-arago-extras/recipes-core/meta/meta-toolchain- > > > > > arago.bb > > > > > > @@ -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 > > > > > > > > > > ^^^^^^^^^^^^^^^^^^^^ > > > > > 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 > > > > > meta-arago@arago-project.org > > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta- > > arago > > > > _______________________________________________ > > > > meta-arago mailing list > > > > meta-arago@arago-project.org > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > > > _______________________________________________ > > > meta-arago mailing list > > > meta-arago@arago-project.org > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > > _______________________________________________ > > meta-arago mailing list > > meta-arago@arago-project.org > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] meta-toolchain-arago: make SDK/devkit relocatable 2012-11-07 20:44 ` Denys Dmytriyenko @ 2012-11-07 20:45 ` Maupin, Chase 2012-11-07 20:46 ` Denys Dmytriyenko 0 siblings, 1 reply; 12+ messages in thread From: Maupin, Chase @ 2012-11-07 20:45 UTC (permalink / raw) To: Dmytriyenko, Denys; +Cc: meta-arago@arago-project.org, Cooper Jr., Franklin 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: chase.maupin@ti.com phone: (214) 567-2950 For support: Forums - http://community.ti.com/forums/ Wiki - http://wiki.davincidsp.com/ > -----Original Message----- > From: Dmytriyenko, Denys > Sent: Wednesday, November 07, 2012 2:44 PM > To: Maupin, Chase > Cc: Cooper Jr., Franklin; meta-arago@arago-project.org > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit > 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. > > Denys > > > On Wed, Nov 07, 2012 at 03:17:58PM -0500, Maupin, Chase wrote: > > 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: chase.maupin@ti.com > > phone: (214) 567-2950 > > > > For support: > > Forums - http://community.ti.com/forums/ > > Wiki - http://wiki.davincidsp.com/ > > > > > > > -----Original Message----- > > > From: meta-arago-bounces@arago-project.org [mailto:meta-arago- > > > bounces@arago-project.org] On Behalf Of Dmytriyenko, Denys > > > Sent: Wednesday, November 07, 2012 2:09 PM > > > To: Cooper Jr., Franklin > > > Cc: meta-arago@arago-project.org > > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make > > > SDK/devkit relocatable > > > > > > Nope, aliases are not accessible from Makefiles, need to switch > > > gears... > > > > > > > > > On Wed, Nov 07, 2012 at 01:58:47PM -0500, Denys Dmytriyenko > > > wrote: > > > > The only worry I have is whether aliases are going to work in a > > > Makefile > > > > > > > > > > > > On Wed, Nov 07, 2012 at 01:53:57PM -0500, Cooper Jr., Franklin > > > wrote: > > > > > Looks great > > > > > > > > > > -----Original Message----- > > > > > From: meta-arago-bounces@arago-project.org [mailto:meta- > > > arago-bounces@arago-project.org] On Behalf Of Maupin, Chase > > > > > Sent: Wednesday, November 07, 2012 9:16 AM > > > > > To: Denys Dmytriyenko; Dmytriyenko, Denys > > > > > Cc: meta-arago@arago-project.org > > > > > 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: chase.maupin@ti.com > > > > > phone: (214) 567-2950 > > > > > > > > > > For support: > > > > > Forums - http://community.ti.com/forums/ Wiki - > > > http://wiki.davincidsp.com/ > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: meta-arago-bounces@arago-project.org [mailto:meta- > > > arago- > > > > > > bounces@arago-project.org] On Behalf Of Denys Dmytriyenko > > > > > > Sent: Wednesday, November 07, 2012 12:31 AM > > > > > > To: Dmytriyenko, Denys > > > > > > Cc: meta-arago@arago-project.org > > > > > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: > > > make > > > > > > SDK/devkit relocatable > > > > > > > > > > > > On Wed, Nov 07, 2012 at 01:25:11AM -0500, Denys Dmytriyenko > > > > > > wrote: > > > > > > > Implement poor man's relocation technique for self- > > > contained > > > > > > crosssdk binaries > > > > > > > > > > > > > > Signed-off-by: Denys Dmytriyenko <denys@ti.com> > > > > > > > --- > > > > > > > meta-arago-extras/recipes-core/meta/meta-toolchain- > > > arago.bb | > > > > > > 4 +++- > > > > > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > > > > > > > > > diff --git a/meta-arago-extras/recipes-core/meta/meta- > > > > > > toolchain-arago.bb b/meta-arago-extras/recipes- > > > core/meta/meta- > > > > > > toolchain-arago.bb > > > > > > > index d2fe982..27782f7 100644 > > > > > > > --- a/meta-arago-extras/recipes-core/meta/meta-toolchain- > > > > > > arago.bb > > > > > > > +++ b/meta-arago-extras/recipes-core/meta/meta-toolchain- > > > > > > arago.bb > > > > > > > @@ -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 > > > > > > > > > > > > ^^^^^^^^^^^^^^^^^^^^ > > > > > > 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 > > > > > > meta-arago@arago-project.org > > > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta- > > > arago > > > > > _______________________________________________ > > > > > meta-arago mailing list > > > > > meta-arago@arago-project.org > > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > > > > _______________________________________________ > > > > meta-arago mailing list > > > > meta-arago@arago-project.org > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > > > _______________________________________________ > > > meta-arago mailing list > > > meta-arago@arago-project.org > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] meta-toolchain-arago: make SDK/devkit relocatable 2012-11-07 20:45 ` Maupin, Chase @ 2012-11-07 20:46 ` Denys Dmytriyenko 2012-11-07 20:57 ` Maupin, Chase 0 siblings, 1 reply; 12+ messages in thread From: Denys Dmytriyenko @ 2012-11-07 20:46 UTC (permalink / raw) To: Maupin, Chase; +Cc: meta-arago@arago-project.org, Cooper Jr., Franklin Did it work for you? What did you do? It didn't seem to work for me with the functions... On Wed, Nov 07, 2012 at 03:45:20PM -0500, Maupin, Chase wrote: > 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: chase.maupin@ti.com > phone: (214) 567-2950 > > For support: > Forums - http://community.ti.com/forums/ > Wiki - http://wiki.davincidsp.com/ > > > > -----Original Message----- > > From: Dmytriyenko, Denys > > Sent: Wednesday, November 07, 2012 2:44 PM > > To: Maupin, Chase > > Cc: Cooper Jr., Franklin; meta-arago@arago-project.org > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit > > 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. > > > > Denys > > > > > > On Wed, Nov 07, 2012 at 03:17:58PM -0500, Maupin, Chase wrote: > > > 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: chase.maupin@ti.com > > > phone: (214) 567-2950 > > > > > > For support: > > > Forums - http://community.ti.com/forums/ > > > Wiki - http://wiki.davincidsp.com/ > > > > > > > > > > -----Original Message----- > > > > From: meta-arago-bounces@arago-project.org [mailto:meta-arago- > > > > bounces@arago-project.org] On Behalf Of Dmytriyenko, Denys > > > > Sent: Wednesday, November 07, 2012 2:09 PM > > > > To: Cooper Jr., Franklin > > > > Cc: meta-arago@arago-project.org > > > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make > > > > SDK/devkit relocatable > > > > > > > > Nope, aliases are not accessible from Makefiles, need to switch > > > > gears... > > > > > > > > > > > > On Wed, Nov 07, 2012 at 01:58:47PM -0500, Denys Dmytriyenko > > > > wrote: > > > > > The only worry I have is whether aliases are going to work in a > > > > Makefile > > > > > > > > > > > > > > > On Wed, Nov 07, 2012 at 01:53:57PM -0500, Cooper Jr., Franklin > > > > wrote: > > > > > > Looks great > > > > > > > > > > > > -----Original Message----- > > > > > > From: meta-arago-bounces@arago-project.org [mailto:meta- > > > > arago-bounces@arago-project.org] On Behalf Of Maupin, Chase > > > > > > Sent: Wednesday, November 07, 2012 9:16 AM > > > > > > To: Denys Dmytriyenko; Dmytriyenko, Denys > > > > > > Cc: meta-arago@arago-project.org > > > > > > 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: chase.maupin@ti.com > > > > > > phone: (214) 567-2950 > > > > > > > > > > > > For support: > > > > > > Forums - http://community.ti.com/forums/ Wiki - > > > > http://wiki.davincidsp.com/ > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: meta-arago-bounces@arago-project.org [mailto:meta- > > > > arago- > > > > > > > bounces@arago-project.org] On Behalf Of Denys Dmytriyenko > > > > > > > Sent: Wednesday, November 07, 2012 12:31 AM > > > > > > > To: Dmytriyenko, Denys > > > > > > > Cc: meta-arago@arago-project.org > > > > > > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: > > > > make > > > > > > > SDK/devkit relocatable > > > > > > > > > > > > > > On Wed, Nov 07, 2012 at 01:25:11AM -0500, Denys Dmytriyenko > > > > > > > wrote: > > > > > > > > Implement poor man's relocation technique for self- > > > > contained > > > > > > > crosssdk binaries > > > > > > > > > > > > > > > > Signed-off-by: Denys Dmytriyenko <denys@ti.com> > > > > > > > > --- > > > > > > > > meta-arago-extras/recipes-core/meta/meta-toolchain- > > > > arago.bb | > > > > > > > 4 +++- > > > > > > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > > > > > > > > > > > diff --git a/meta-arago-extras/recipes-core/meta/meta- > > > > > > > toolchain-arago.bb b/meta-arago-extras/recipes- > > > > core/meta/meta- > > > > > > > toolchain-arago.bb > > > > > > > > index d2fe982..27782f7 100644 > > > > > > > > --- a/meta-arago-extras/recipes-core/meta/meta-toolchain- > > > > > > > arago.bb > > > > > > > > +++ b/meta-arago-extras/recipes-core/meta/meta-toolchain- > > > > > > > arago.bb > > > > > > > > @@ -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 > > > > > > > > > > > > > > ^^^^^^^^^^^^^^^^^^^^ > > > > > > > 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 > > > > > > > meta-arago@arago-project.org > > > > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta- > > > > arago > > > > > > _______________________________________________ > > > > > > meta-arago mailing list > > > > > > meta-arago@arago-project.org > > > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > > > > > _______________________________________________ > > > > > meta-arago mailing list > > > > > meta-arago@arago-project.org > > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > > > > _______________________________________________ > > > > meta-arago mailing list > > > > meta-arago@arago-project.org > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] meta-toolchain-arago: make SDK/devkit relocatable 2012-11-07 20:46 ` Denys Dmytriyenko @ 2012-11-07 20:57 ` Maupin, Chase 2012-11-07 21:01 ` Maupin, Chase 0 siblings, 1 reply; 12+ messages in thread From: Maupin, Chase @ 2012-11-07 20:57 UTC (permalink / raw) To: Dmytriyenko, Denys; +Cc: meta-arago@arago-project.org, Cooper Jr., Franklin 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.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/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: chase.maupin@ti.com phone: (214) 567-2950 For support: Forums - http://community.ti.com/forums/ Wiki - http://wiki.davincidsp.com/ > -----Original Message----- > From: Dmytriyenko, Denys > Sent: Wednesday, November 07, 2012 2:46 PM > To: Maupin, Chase > Cc: Cooper Jr., Franklin; meta-arago@arago-project.org > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit > relocatable > > Did it work for you? What did you do? It didn't seem to work for me with > the > functions... > > > On Wed, Nov 07, 2012 at 03:45:20PM -0500, Maupin, Chase wrote: > > 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: chase.maupin@ti.com > > phone: (214) 567-2950 > > > > For support: > > Forums - http://community.ti.com/forums/ > > Wiki - http://wiki.davincidsp.com/ > > > > > > > -----Original Message----- > > > From: Dmytriyenko, Denys > > > Sent: Wednesday, November 07, 2012 2:44 PM > > > To: Maupin, Chase > > > Cc: Cooper Jr., Franklin; meta-arago@arago-project.org > > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make > SDK/devkit > > > 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. > > > > > > Denys > > > > > > > > > On Wed, Nov 07, 2012 at 03:17:58PM -0500, Maupin, Chase wrote: > > > > 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: chase.maupin@ti.com > > > > phone: (214) 567-2950 > > > > > > > > For support: > > > > Forums - http://community.ti.com/forums/ > > > > Wiki - http://wiki.davincidsp.com/ > > > > > > > > > > > > > -----Original Message----- > > > > > From: meta-arago-bounces@arago-project.org [mailto:meta-arago- > > > > > bounces@arago-project.org] On Behalf Of Dmytriyenko, Denys > > > > > Sent: Wednesday, November 07, 2012 2:09 PM > > > > > To: Cooper Jr., Franklin > > > > > Cc: meta-arago@arago-project.org > > > > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make > > > > > SDK/devkit relocatable > > > > > > > > > > Nope, aliases are not accessible from Makefiles, need to switch > > > > > gears... > > > > > > > > > > > > > > > On Wed, Nov 07, 2012 at 01:58:47PM -0500, Denys Dmytriyenko > > > > > wrote: > > > > > > The only worry I have is whether aliases are going to work in > a > > > > > Makefile > > > > > > > > > > > > > > > > > > On Wed, Nov 07, 2012 at 01:53:57PM -0500, Cooper Jr., Franklin > > > > > wrote: > > > > > > > Looks great > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: meta-arago-bounces@arago-project.org [mailto:meta- > > > > > arago-bounces@arago-project.org] On Behalf Of Maupin, Chase > > > > > > > Sent: Wednesday, November 07, 2012 9:16 AM > > > > > > > To: Denys Dmytriyenko; Dmytriyenko, Denys > > > > > > > Cc: meta-arago@arago-project.org > > > > > > > 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: chase.maupin@ti.com > > > > > > > phone: (214) 567-2950 > > > > > > > > > > > > > > For support: > > > > > > > Forums - http://community.ti.com/forums/ Wiki - > > > > > http://wiki.davincidsp.com/ > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: meta-arago-bounces@arago-project.org [mailto:meta- > > > > > arago- > > > > > > > > bounces@arago-project.org] On Behalf Of Denys Dmytriyenko > > > > > > > > Sent: Wednesday, November 07, 2012 12:31 AM > > > > > > > > To: Dmytriyenko, Denys > > > > > > > > Cc: meta-arago@arago-project.org > > > > > > > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: > > > > > make > > > > > > > > SDK/devkit relocatable > > > > > > > > > > > > > > > > On Wed, Nov 07, 2012 at 01:25:11AM -0500, Denys > Dmytriyenko > > > > > > > > wrote: > > > > > > > > > Implement poor man's relocation technique for self- > > > > > contained > > > > > > > > crosssdk binaries > > > > > > > > > > > > > > > > > > Signed-off-by: Denys Dmytriyenko <denys@ti.com> > > > > > > > > > --- > > > > > > > > > meta-arago-extras/recipes-core/meta/meta-toolchain- > > > > > arago.bb | > > > > > > > > 4 +++- > > > > > > > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > > > > > > > > > > > > > diff --git a/meta-arago-extras/recipes-core/meta/meta- > > > > > > > > toolchain-arago.bb b/meta-arago-extras/recipes- > > > > > core/meta/meta- > > > > > > > > toolchain-arago.bb > > > > > > > > > index d2fe982..27782f7 100644 > > > > > > > > > --- a/meta-arago-extras/recipes-core/meta/meta- > toolchain- > > > > > > > > arago.bb > > > > > > > > > +++ b/meta-arago-extras/recipes-core/meta/meta- > toolchain- > > > > > > > > arago.bb > > > > > > > > > @@ -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 > > > > > > > > > > > > > > > > ^^^^^^^^^^^^^^^^^^^^ > > > > > > > > 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 > > > > > > > > meta-arago@arago-project.org > > > > > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta- > > > > > arago > > > > > > > _______________________________________________ > > > > > > > meta-arago mailing list > > > > > > > meta-arago@arago-project.org > > > > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > > > > > > _______________________________________________ > > > > > > meta-arago mailing list > > > > > > meta-arago@arago-project.org > > > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > > > > > _______________________________________________ > > > > > meta-arago mailing list > > > > > meta-arago@arago-project.org > > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] meta-toolchain-arago: make SDK/devkit relocatable 2012-11-07 20:57 ` Maupin, Chase @ 2012-11-07 21:01 ` Maupin, Chase 0 siblings, 0 replies; 12+ messages in thread From: Maupin, Chase @ 2012-11-07 21:01 UTC (permalink / raw) To: Maupin, Chase, Dmytriyenko, Denys Cc: meta-arago@arago-project.org, Cooper Jr., Franklin NOTE: The $* is important Sincerely, Chase Maupin Software Applications ARM MPU e-mail: chase.maupin@ti.com phone: (214) 567-2950 For support: Forums - http://community.ti.com/forums/ Wiki - http://wiki.davincidsp.com/ > -----Original Message----- > From: meta-arago-bounces@arago-project.org [mailto:meta-arago- > bounces@arago-project.org] On Behalf Of Maupin, Chase > Sent: Wednesday, November 07, 2012 2:57 PM > To: Dmytriyenko, Denys > Cc: meta-arago@arago-project.org; Cooper Jr., Franklin > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit > relocatable > > 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.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 -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: chase.maupin@ti.com > phone: (214) 567-2950 > > For support: > Forums - http://community.ti.com/forums/ > Wiki - http://wiki.davincidsp.com/ > > > > -----Original Message----- > > From: Dmytriyenko, Denys > > Sent: Wednesday, November 07, 2012 2:46 PM > > To: Maupin, Chase > > Cc: Cooper Jr., Franklin; meta-arago@arago-project.org > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make > SDK/devkit > > relocatable > > > > Did it work for you? What did you do? It didn't seem to work for me > with > > the > > functions... > > > > > > On Wed, Nov 07, 2012 at 03:45:20PM -0500, Maupin, Chase wrote: > > > 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: chase.maupin@ti.com > > > phone: (214) 567-2950 > > > > > > For support: > > > Forums - http://community.ti.com/forums/ > > > Wiki - http://wiki.davincidsp.com/ > > > > > > > > > > -----Original Message----- > > > > From: Dmytriyenko, Denys > > > > Sent: Wednesday, November 07, 2012 2:44 PM > > > > To: Maupin, Chase > > > > Cc: Cooper Jr., Franklin; meta-arago@arago-project.org > > > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make > > SDK/devkit > > > > 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. > > > > > > > > Denys > > > > > > > > > > > > On Wed, Nov 07, 2012 at 03:17:58PM -0500, Maupin, Chase wrote: > > > > > 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: chase.maupin@ti.com > > > > > phone: (214) 567-2950 > > > > > > > > > > For support: > > > > > Forums - http://community.ti.com/forums/ > > > > > Wiki - http://wiki.davincidsp.com/ > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: meta-arago-bounces@arago-project.org [mailto:meta-arago- > > > > > > bounces@arago-project.org] On Behalf Of Dmytriyenko, Denys > > > > > > Sent: Wednesday, November 07, 2012 2:09 PM > > > > > > To: Cooper Jr., Franklin > > > > > > Cc: meta-arago@arago-project.org > > > > > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make > > > > > > SDK/devkit relocatable > > > > > > > > > > > > Nope, aliases are not accessible from Makefiles, need to > switch > > > > > > gears... > > > > > > > > > > > > > > > > > > On Wed, Nov 07, 2012 at 01:58:47PM -0500, Denys Dmytriyenko > > > > > > wrote: > > > > > > > The only worry I have is whether aliases are going to work > in > > a > > > > > > Makefile > > > > > > > > > > > > > > > > > > > > > On Wed, Nov 07, 2012 at 01:53:57PM -0500, Cooper Jr., > Franklin > > > > > > wrote: > > > > > > > > Looks great > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: meta-arago-bounces@arago-project.org [mailto:meta- > > > > > > arago-bounces@arago-project.org] On Behalf Of Maupin, Chase > > > > > > > > Sent: Wednesday, November 07, 2012 9:16 AM > > > > > > > > To: Denys Dmytriyenko; Dmytriyenko, Denys > > > > > > > > Cc: meta-arago@arago-project.org > > > > > > > > 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: chase.maupin@ti.com > > > > > > > > phone: (214) 567-2950 > > > > > > > > > > > > > > > > For support: > > > > > > > > Forums - http://community.ti.com/forums/ Wiki - > > > > > > http://wiki.davincidsp.com/ > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: meta-arago-bounces@arago-project.org [mailto:meta- > > > > > > arago- > > > > > > > > > bounces@arago-project.org] On Behalf Of Denys > Dmytriyenko > > > > > > > > > Sent: Wednesday, November 07, 2012 12:31 AM > > > > > > > > > To: Dmytriyenko, Denys > > > > > > > > > Cc: meta-arago@arago-project.org > > > > > > > > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: > > > > > > make > > > > > > > > > SDK/devkit relocatable > > > > > > > > > > > > > > > > > > On Wed, Nov 07, 2012 at 01:25:11AM -0500, Denys > > Dmytriyenko > > > > > > > > > wrote: > > > > > > > > > > Implement poor man's relocation technique for self- > > > > > > contained > > > > > > > > > crosssdk binaries > > > > > > > > > > > > > > > > > > > > Signed-off-by: Denys Dmytriyenko <denys@ti.com> > > > > > > > > > > --- > > > > > > > > > > meta-arago-extras/recipes-core/meta/meta-toolchain- > > > > > > arago.bb | > > > > > > > > > 4 +++- > > > > > > > > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > > > > > > > > > > > > > > > diff --git a/meta-arago-extras/recipes-core/meta/meta- > > > > > > > > > toolchain-arago.bb b/meta-arago-extras/recipes- > > > > > > core/meta/meta- > > > > > > > > > toolchain-arago.bb > > > > > > > > > > index d2fe982..27782f7 100644 > > > > > > > > > > --- a/meta-arago-extras/recipes-core/meta/meta- > > toolchain- > > > > > > > > > arago.bb > > > > > > > > > > +++ b/meta-arago-extras/recipes-core/meta/meta- > > toolchain- > > > > > > > > > arago.bb > > > > > > > > > > @@ -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 > > > > > > > > > > > > > > > > > > ^^^^^^^^^^^^^^^^^^^^ > > > > > > > > > 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 > > > > > > > > > meta-arago@arago-project.org > > > > > > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta- > > > > > > arago > > > > > > > > _______________________________________________ > > > > > > > > meta-arago mailing list > > > > > > > > meta-arago@arago-project.org > > > > > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta- > arago > > > > > > > _______________________________________________ > > > > > > > meta-arago mailing list > > > > > > > meta-arago@arago-project.org > > > > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > > > > > > _______________________________________________ > > > > > > meta-arago mailing list > > > > > > meta-arago@arago-project.org > > > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > _______________________________________________ > meta-arago mailing list > meta-arago@arago-project.org > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2012-11-07 21:01 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-11-07 6:25 [PATCH] meta-toolchain-arago: make SDK/devkit relocatable Denys Dmytriyenko 2012-11-07 6:31 ` Denys Dmytriyenko 2012-11-07 15:15 ` Maupin, Chase 2012-11-07 18:53 ` Cooper Jr., Franklin 2012-11-07 18:58 ` Denys Dmytriyenko 2012-11-07 20:09 ` Denys Dmytriyenko 2012-11-07 20:17 ` Maupin, Chase 2012-11-07 20:44 ` Denys Dmytriyenko 2012-11-07 20:45 ` Maupin, Chase 2012-11-07 20:46 ` Denys Dmytriyenko 2012-11-07 20:57 ` Maupin, Chase 2012-11-07 21:01 ` Maupin, Chase
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.