All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: fcooperjr27@gmail.com
Cc: meta-arago@arago-project.org, "Franklin S. Cooper Jr" <fcooper@ti.com>
Subject: Re: [PATCH 5/9] meta-toolchain-arago: Create shell stub for gdb
Date: Thu, 28 Feb 2013 22:19:00 -0500	[thread overview]
Message-ID: <20130301031900.GA28405@denix.org> (raw)
In-Reply-To: <1362107447-11234-5-git-send-email-fcooper@ti.com>

On Thu, Feb 28, 2013 at 09:10:43PM -0600, fcooperjr27@gmail.com wrote:
> From: Franklin S. Cooper Jr <fcooper@ti.com>
> 
> * PYTHONHOME and PYTHONPATH variable causes various problems in the
>   environment-setup file.
> * Since it is only needed by gdb resurrect the shell stub concept and place
>   those environment variables in there for gdb.

I was thinking would it be any better to rely on a host Python instead of 
bringing our own? Can we extend Python modules on the host with our own, if 
needed, but otherwise use what host provides? Not sure about versions 
though...

-- 
Denys


> Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
> ---
>  .../recipes-core/meta/meta-toolchain-arago.bb      |   22 +++++++++++++++++++-
>  1 files changed, 21 insertions(+), 1 deletions(-)
> 
> 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 863e0ef..e683f9a 100644
> --- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb
> +++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb
> @@ -5,7 +5,7 @@ TOOLCHAIN_CLEANUP_PACKAGES ?= ""
>  
>  require recipes-core/meta/meta-toolchain.bb
>  
> -PR = "r19"
> +PR = "r20"
>  
>  SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
>  
> @@ -57,12 +57,32 @@ toolchain_create_sdk_env_script () {
>  	echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
>  }
>  
> +create_shell_stub () {
> +	i=$1
> +	mv $i $i.real
> +	printf "#!/bin/sh\nif [ -n \x22\x24BASH_SOURCE\x22 ]; then\n" > $i
> +	printf "\tfilename\x3D\x60echo \x24\x7BBASH_SOURCE\x23\x23\x2A\x2F\x7D\x60\n" >> $i
> +	printf "\tdirname\x3D\x24\x7BBASH_SOURCE\x2F\x25\x24filename\x2F\x7D\n" >> $i
> +	printf "\t\x2E \x24dirname\x2E\x2E\x2Fenvironment-setup\n" >> $i
> +	printf "fi\n" >> $i
> +
> +	if [ "$2" == "yes" ]; then
> +		echo 'export PYTHONHOME=$SDK_PATH' >> $i
> +		echo 'export PYTHONPATH=lib/python2.7' >> $i
> +	fi
> +	printf "LD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/$i.real \x24\x2a\n" >> $i
> +	chmod +x $i
> +}
> +
>  populate_sdk_ipk_append () {
>  	# Remove broken .la files
>  	for i in `find ${SDK_OUTPUT}/${SDKPATH} -name \*.la`; do
>  		rm -f $i
>  	done
>  
> +	cd ${SDK_OUTPUT}/${SDKPATH}/bin
> +	${@base_conditional('PREFERRED_PROVIDER_gdb-cross-canadian-arm', 'external-arago-sdk-toolchain', '', 'create_shell_stub ${TARGET_PREFIX}gdb yes', d)}
> +
>  	cleanup_toolchain_packages
>  
>  	mkdir -p "${SDK_OUTPUT}/${SDKPATHNATIVE}${prefix_nativesdk}/lib/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}"
> -- 
> 1.7.0.4
> 
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
> 


  reply	other threads:[~2013-03-01  3:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-01  3:10 [PATCH 1/9] matrix-gui-apps-git.inc: Add additional Graphics demos fcooperjr27
2013-03-01  3:10 ` [PATCH 2/9] matrix-gui-3d-demos: Split out " fcooperjr27
2013-03-01  3:10 ` [PATCH 3/9] arm-benchmarks: Move makefiles into ARCH directory fcooperjr27
2013-03-01  3:10 ` [PATCH 4/9] arm-benchmarks: Package sources for the right architecture fcooperjr27
2013-03-01  3:10 ` [PATCH 5/9] meta-toolchain-arago: Create shell stub for gdb fcooperjr27
2013-03-01  3:19   ` Denys Dmytriyenko [this message]
2013-03-01  3:10 ` [PATCH 6/9] nativesdk-packagegroup-arago-sdk-host: Fix No module named distutils fcooperjr27
2013-03-01  3:10 ` [PATCH 7/9] libav: Remove AC3 and DTS fcooperjr27
2013-03-01  3:10 ` [PATCH 8/9] pinmux-utility: Add new Pinmux Utility fcooperjr27
2013-03-01  3:10 ` [PATCH 9/9] linux-am335x: "Add Remove check for GP-nly device type in RNG driver" patch fcooperjr27

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130301031900.GA28405@denix.org \
    --to=denys@ti.com \
    --cc=fcooper@ti.com \
    --cc=fcooperjr27@gmail.com \
    --cc=meta-arago@arago-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is 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.