Skip to contentSkip to conversation

meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

PATCH In review Denys Dmytriyenko 4 participants 13 messages Nov 14, 2012 – Nov 15, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

---
 meta-arago-extras/conf/distro/include/tcmode-external-arago.inc | 4 ++++
 meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb     | 9 ++++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)
meta-arago-extras/conf/distro/include/tcmode-external-arago.inc +4 -0
index 2ed3df2..3bc0fed 100644
@@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db = "external-arago-toolchain"
 PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 
+# Special case for gdb to be built as part of canadian-cross-sdk
+bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${exec_prefix}/bin"
+PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}"
+
 GCCVERSION ?= "4.5%"
 SDKGCCVERSION ?= "4.5%"
 BINUVERSION ?= "2.20%"
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +8 -1
index 1683c1f..f780385 100644
@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
 
 require recipes-core/meta/meta-toolchain.bb
 
-PR = "r7"
+PR = "r8"
 
 SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
 
@@ -54,6 +54,8 @@ 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 'export PYTHONHOME=$SDK_PATH' >> $script
+	echo 'export PYTHONPATH=lib/python2.7' >> $script
 }
 
 populate_sdk_ipk_append () {
@@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
 		printf "#!/bin/sh\nLD_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
 	done
+
+	# Special case for gdb, which is built as part of canadian-cross-sdk
+	mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-gdb.real
+	printf "#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb
+	chmod +x ${ARAGO_TARGET_SYS}-gdb
 }
Signature · 1 line
1.8.0
#1 lore raw

This provides the bare minimum to get the Python-enabled gdb-7.4 into the devkit and set it up properly. We would need to test it with gdbserver-7.2 and run it through OSRB...

Signature · 1 line
Denys
Quoted 56 lines · Denys Dmytriyenko
---
 meta-arago-extras/conf/distro/include/tcmode-external-arago.inc | 4 ++++
 meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb     | 9 ++++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)
meta-arago-extras/conf/distro/include/tcmode-external-arago.inc +4 -0
index 2ed3df2..3bc0fed 100644
@@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db = "external-arago-toolchain"
 PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 
+# Special case for gdb to be built as part of canadian-cross-sdk
+bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${exec_prefix}/bin"
+PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}"
+
 GCCVERSION ?= "4.5%"
 SDKGCCVERSION ?= "4.5%"
 BINUVERSION ?= "2.20%"
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +8 -1
index 1683c1f..f780385 100644
@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
 
 require recipes-core/meta/meta-toolchain.bb
 
-PR = "r7"
+PR = "r8"
 
 SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
 
@@ -54,6 +54,8 @@ 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 'export PYTHONHOME=$SDK_PATH' >> $script
+	echo 'export PYTHONPATH=lib/python2.7' >> $script
 }
 
 populate_sdk_ipk_append () {
@@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
 		printf "#!/bin/sh\nLD_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
 	done
+
+	# Special case for gdb, which is built as part of canadian-cross-sdk
+	mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-gdb.real
+	printf "#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb
+	chmod +x ${ARAGO_TARGET_SYS}-gdb
 }
Signature · 1 line
1.8.0
#2 lore raw

Thank you denys. We will check for compatibility. Thanks for the quick response on this.

Sent from my cell phone

----- Reply message -----
From: "Dmytriyenko, Denys" <[email protected]>
Date: Tue, Nov 13, 2012 9:59 pm
Subject: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk
To: "[email protected]" <[email protected]>

This provides the bare minimum to get the Python-enabled gdb-7.4 into the devkit and set it up properly. We would need to test it with gdbserver-7.2 and run it through OSRB...

--
Denys

Quoted 54 lines · Denys Dmytriyenko
---
 meta-arago-extras/conf/distro/include/tcmode-external-arago.inc | 4 ++++
 meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb     | 9 ++++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)
meta-arago-extras/conf/distro/include/tcmode-external-arago.inc +4 -0
index 2ed3df2..3bc0fed 100644
@@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db = "external-arago-toolchain"
 PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 
+# Special case for gdb to be built as part of canadian-cross-sdk
+bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${exec_prefix}/bin"
+PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}"
+
 GCCVERSION ?= "4.5%"
 SDKGCCVERSION ?= "4.5%"
 BINUVERSION ?= "2.20%"
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +8 -2
index 1683c1f..f780385 100644
@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
 
 require recipes-core/meta/meta-toolchain.bb
 
-PR = "r7"
+PR = "r8"
 
 SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
 
@@ -54,6 +54,8 @@ 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 'export PYTHONHOME=$SDK_PATH' >> $script
+     echo 'export PYTHONPATH=lib/python2.7' >> $script
 }
 
 populate_sdk_ipk_append () {
@@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
               printf "#!/bin/sh\nLD_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
       done
+
+     # Special case for gdb, which is built as part of canadian-cross-sdk
+     mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-gdb.real
+     printf "#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb
+     chmod +x ${ARAGO_TARGET_SYS}-gdb
 }
--
Quoted 2 lines

1.8.0

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#3 lore raw

Please send this patch as an attachment so I can download it and test it out if you do not want to commit this. I am not setup to grab patches via email.

From: [email protected] [mailto:[email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, November 13, 2012 10:09 PM
To: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

Thank you denys. We will check for compatibility. Thanks for the quick response on this.

Sent from my cell phone
----- Reply message -----
From: "Dmytriyenko, Denys" <[email protected]<mailto:[email protected]>>
Date: Tue, Nov 13, 2012 9:59 pm
Subject: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk
To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> This provides the bare minimum to get the Python-enabled gdb-7.4 into the
devkit and set it up properly. We would need to test it with gdbserver-7.2 and
run it through OSRB...

--
Denys

Quoted 54 lines · Denys Dmytriyenko
---
 meta-arago-extras/conf/distro/include/tcmode-external-arago.inc | 4 ++++
 meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb     | 9 ++++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)
meta-arago-extras/conf/distro/include/tcmode-external-arago.inc +4 -0
index 2ed3df2..3bc0fed 100644
@@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db = "external-arago-toolchain"
 PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 
+# Special case for gdb to be built as part of canadian-cross-sdk
+bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${exec_prefix}/bin"
+PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}"
+
 GCCVERSION ?= "4.5%"
 SDKGCCVERSION ?= "4.5%"
 BINUVERSION ?= "2.20%"
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +8 -2
index 1683c1f..f780385 100644
@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
 
 require recipes-core/meta/meta-toolchain.bb
 
-PR = "r7"
+PR = "r8"
 
 SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
 
@@ -54,6 +54,8 @@ 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 'export PYTHONHOME=$SDK_PATH' >> $script
+     echo 'export PYTHONPATH=lib/python2.7' >> $script
 }
 
 populate_sdk_ipk_append () {
@@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
               printf "#!/bin/sh\nLD_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
       done
+
+     # Special case for gdb, which is built as part of canadian-cross-sdk
+     mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-gdb.real
+     printf "#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb
+     chmod +x ${ARAGO_TARGET_SYS}-gdb
 }
--
Quoted 2 lines

1.8.0

_______________________________________________
meta-arago mailing list [email protected]<mailto:[email protected]>
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#4 lore raw

Attached.

Quoted 85 lines · Franklin

Please send this patch as an attachment so I can download it and test it out if you do not want to commit this. I am not setup to grab patches via email.

From: [email protected] [mailto:[email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, November 13, 2012 10:09 PM
To: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

Thank you denys. We will check for compatibility. Thanks for the quick response on this.

Sent from my cell phone
----- Reply message -----
From: "Dmytriyenko, Denys" <[email protected]<mailto:[email protected]>>
Date: Tue, Nov 13, 2012 9:59 pm
Subject: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk
To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> This provides the bare minimum to get the Python-enabled gdb-7.4 into the
devkit and set it up properly. We would need to test it with gdbserver-7.2 and
run it through OSRB...

--
Denys

Quoted 54 lines · Denys Dmytriyenko
---
 meta-arago-extras/conf/distro/include/tcmode-external-arago.inc | 4 ++++
 meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb     | 9 ++++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)
meta-arago-extras/conf/distro/include/tcmode-external-arago.inc +4 -0
index 2ed3df2..3bc0fed 100644
@@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db = "external-arago-toolchain"
 PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 
+# Special case for gdb to be built as part of canadian-cross-sdk
+bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${exec_prefix}/bin"
+PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}"
+
 GCCVERSION ?= "4.5%"
 SDKGCCVERSION ?= "4.5%"
 BINUVERSION ?= "2.20%"
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +8 -2
index 1683c1f..f780385 100644
@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
 
 require recipes-core/meta/meta-toolchain.bb
 
-PR = "r7"
+PR = "r8"
 
 SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
 
@@ -54,6 +54,8 @@ 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 'export PYTHONHOME=$SDK_PATH' >> $script
+     echo 'export PYTHONPATH=lib/python2.7' >> $script
 }
 
 populate_sdk_ipk_append () {
@@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
               printf "#!/bin/sh\nLD_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
       done
+
+     # Special case for gdb, which is built as part of canadian-cross-sdk
+     mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-gdb.real
+     printf "#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb
+     chmod +x ${ARAGO_TARGET_SYS}-gdb
 }
--
Quoted 2 lines

1.8.0

_______________________________________________
meta-arago mailing list [email protected]<mailto:[email protected]>
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

From c1dc0ecaa8665910459a60192eb16071624478b4 Mon Sep 17 00:00:00 2001
From: Denys Dmytriyenko <[email protected]>
Date: Tue, 13 Nov 2012 22:44:45 -0500
Subject: [PATCH] meta-toolchain-arago: special case for gdb to be built as
part of canadian-cross-sdk

---
 meta-arago-extras/conf/distro/include/tcmode-external-arago.inc | 4 ++++
 meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb     | 9 ++++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)
meta-arago-extras/conf/distro/include/tcmode-external-arago.inc +4 -0
index 2ed3df2..3bc0fed 100644
@@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db = "external-arago-toolchain"
 PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 
+# Special case for gdb to be built as part of canadian-cross-sdk
+bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${exec_prefix}/bin"
+PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}"
+
 GCCVERSION ?= "4.5%"
 SDKGCCVERSION ?= "4.5%"
 BINUVERSION ?= "2.20%"
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +8 -1
index 1683c1f..f780385 100644
@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
 
 require recipes-core/meta/meta-toolchain.bb
 
-PR = "r7"
+PR = "r8"
 
 SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
 
@@ -54,6 +54,8 @@ 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 'export PYTHONHOME=$SDK_PATH' >> $script
+	echo 'export PYTHONPATH=lib/python2.7' >> $script
 }
 
 populate_sdk_ipk_append () {
@@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
 		printf "#!/bin/sh\nLD_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
 	done
+
+	# Special case for gdb, which is built as part of canadian-cross-sdk
+	mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-gdb.real
+	printf "#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb
+	chmod +x ${ARAGO_TARGET_SYS}-gdb
 }
Signature · 1 line
1.8.0
#5 lore raw

BTW, you'll get bitbake complaining about 2 recipes providing the same gdb, but still building everything up - we can clean that up later...

Quoted 157 lines · Denys Dmytriyenko

Attached.

Quoted 85 lines · Franklin

Please send this patch as an attachment so I can download it and test it out if you do not want to commit this. I am not setup to grab patches via email.

From: [email protected] [mailto:[email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, November 13, 2012 10:09 PM
To: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

Thank you denys. We will check for compatibility. Thanks for the quick response on this.

Sent from my cell phone
----- Reply message -----
From: "Dmytriyenko, Denys" <[email protected]<mailto:[email protected]>>
Date: Tue, Nov 13, 2012 9:59 pm
Subject: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk
To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> This provides the bare minimum to get the Python-enabled gdb-7.4 into the
devkit and set it up properly. We would need to test it with gdbserver-7.2 and
run it through OSRB...

--
Denys

Quoted 54 lines · Denys Dmytriyenko
---
 meta-arago-extras/conf/distro/include/tcmode-external-arago.inc | 4 ++++
 meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb     | 9 ++++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)
meta-arago-extras/conf/distro/include/tcmode-external-arago.inc +4 -0
index 2ed3df2..3bc0fed 100644
@@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db = "external-arago-toolchain"
 PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 
+# Special case for gdb to be built as part of canadian-cross-sdk
+bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${exec_prefix}/bin"
+PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}"
+
 GCCVERSION ?= "4.5%"
 SDKGCCVERSION ?= "4.5%"
 BINUVERSION ?= "2.20%"
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +8 -2
index 1683c1f..f780385 100644
@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
 
 require recipes-core/meta/meta-toolchain.bb
 
-PR = "r7"
+PR = "r8"
 
 SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
 
@@ -54,6 +54,8 @@ 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 'export PYTHONHOME=$SDK_PATH' >> $script
+     echo 'export PYTHONPATH=lib/python2.7' >> $script
 }
 
 populate_sdk_ipk_append () {
@@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
               printf "#!/bin/sh\nLD_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
       done
+
+     # Special case for gdb, which is built as part of canadian-cross-sdk
+     mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-gdb.real
+     printf "#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb
+     chmod +x ${ARAGO_TARGET_SYS}-gdb
 }
--
Quoted 2 lines

1.8.0

_______________________________________________
meta-arago mailing list [email protected]<mailto:[email protected]>
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

From c1dc0ecaa8665910459a60192eb16071624478b4 Mon Sep 17 00:00:00 2001
From: Denys Dmytriyenko <[email protected]>
Date: Tue, 13 Nov 2012 22:44:45 -0500
Subject: [PATCH] meta-toolchain-arago: special case for gdb to be built as
part of canadian-cross-sdk

---
 meta-arago-extras/conf/distro/include/tcmode-external-arago.inc | 4 ++++
 meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb     | 9 ++++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)
meta-arago-extras/conf/distro/include/tcmode-external-arago.inc +4 -0
index 2ed3df2..3bc0fed 100644
@@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db = "external-arago-toolchain"
 PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 
+# Special case for gdb to be built as part of canadian-cross-sdk
+bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${exec_prefix}/bin"
+PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}"
+
 GCCVERSION ?= "4.5%"
 SDKGCCVERSION ?= "4.5%"
 BINUVERSION ?= "2.20%"
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +8 -1
index 1683c1f..f780385 100644
@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
 
 require recipes-core/meta/meta-toolchain.bb
 
-PR = "r7"
+PR = "r8"
 
 SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
 
@@ -54,6 +54,8 @@ 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 'export PYTHONHOME=$SDK_PATH' >> $script
+	echo 'export PYTHONPATH=lib/python2.7' >> $script
 }
 
 populate_sdk_ipk_append () {
@@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
 		printf "#!/bin/sh\nLD_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
 	done
+
+	# Special case for gdb, which is built as part of canadian-cross-sdk
+	mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-gdb.real
+	printf "#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb
+	chmod +x ${ARAGO_TARGET_SYS}-gdb
 }
Signature · 1 line
1.8.0
#6 lore raw
In reply to Maupin, Chase

Any updates yet?

Quoted 84 lines · Chase

Thank you denys. We will check for compatibility. Thanks for the quick response on this.

Sent from my cell phone

----- Reply message -----
From: "Dmytriyenko, Denys" <[email protected]>
Date: Tue, Nov 13, 2012 9:59 pm
Subject: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk
To: "[email protected]" <[email protected]>

This provides the bare minimum to get the Python-enabled gdb-7.4 into the devkit and set it up properly. We would need to test it with gdbserver-7.2 and run it through OSRB...

--
Denys

Quoted 54 lines · Denys Dmytriyenko
---
 meta-arago-extras/conf/distro/include/tcmode-external-arago.inc | 4 ++++
 meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb     | 9 ++++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)
meta-arago-extras/conf/distro/include/tcmode-external-arago.inc +4 -0
index 2ed3df2..3bc0fed 100644
@@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db = "external-arago-toolchain"
 PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"
 
+# Special case for gdb to be built as part of canadian-cross-sdk
+bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${exec_prefix}/bin"
+PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}"
+
 GCCVERSION ?= "4.5%"
 SDKGCCVERSION ?= "4.5%"
 BINUVERSION ?= "2.20%"
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +8 -2
index 1683c1f..f780385 100644
@@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
 
 require recipes-core/meta/meta-toolchain.bb
 
-PR = "r7"
+PR = "r8"
 
 SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
 
@@ -54,6 +54,8 @@ 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 'export PYTHONHOME=$SDK_PATH' >> $script
+     echo 'export PYTHONPATH=lib/python2.7' >> $script
 }
 
 populate_sdk_ipk_append () {
@@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
               printf "#!/bin/sh\nLD_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
       done
+
+     # Special case for gdb, which is built as part of canadian-cross-sdk
+     mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-gdb.real
+     printf "#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb
+     chmod +x ${ARAGO_TARGET_SYS}-gdb
 }
--
Quoted 2 lines

1.8.0

_______________________________________________
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

#7 lore raw

I was able to execute the arm-arago-linux-gnueabi-gdb and run

python print 23

I did have to source environment-setup for the wrapper script to work. As a though, could we do something like the following in these wrapper scripts?

if [ -n "$BASH_SOURCE" ]
then
. dirname $BASH_SOURCE/../environment-setup
fi

I know this may not work for all shells, but like environment-setup itself, in the case that it does work then user's don't get bitten not having it sourced. Also doesn't hurt them if the environment-setup is already sourced. Thoughts?

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 131 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, November 14, 2012 1:10 PM
To: Maupin, Chase
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

Any updates yet?

Quoted 1 line · Chase

Thank you denys. We will check for compatibility. Thanks for

the quick response on this.

Quoted 7 lines

Sent from my cell phone

----- Reply message -----
From: "Dmytriyenko, Denys" <[email protected]>
Date: Tue, Nov 13, 2012 9:59 pm
Subject: [meta-arago] [PATCH] meta-toolchain-arago: special

case for gdb to be built as part of canadian-cross-sdk

Quoted 1 line

To: "[email protected]" <meta-arago@arago-

project.org>

Quoted 2 lines

This provides the bare minimum to get the Python-enabled gdb-

7.4 into the

Quoted 1 line

devkit and set it up properly. We would need to test it with

gdbserver-7.2 and

Quoted 7 lines

run it through OSRB...

--
Denys

On Tue, Nov 13, 2012 at 10:50:12PM -0500, Denys Dmytriyenko

Quoted 3 lines · wrote:
Quoted 3 lines

---
meta-arago-extras/conf/distro/include/tcmode-external-

arago.inc | 4 ++++

Quoted 1 line
Quoted 1 line

meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb

| 9 ++++++++-

Quoted 3 lines

Review

Quoted 3 lines
 2 files changed, 12 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

external-arago.inc b/meta-arago- extras/conf/distro/include/tcmode-external-arago.inc

Quoted 2 lines
Quoted 2 lines

index 2ed3df2..3bc0fed 100644
--- a/meta-arago-extras/conf/distro/include/tcmode-external-

arago.inc

Quoted 1 line
Quoted 1 line

+++ b/meta-arago-extras/conf/distro/include/tcmode-external-

arago.inc

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db =

Quoted 1 line
(quoted diff) +0 -0
@@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db =

"external-arago-toolchain"

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 30

Quoted 1 line
(quoted diff) +0 -0
 PREFERRED_PROVIDER_gcc-cross-canadian-

${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 31

Quoted 1 line
(quoted diff) +0 -0
 PREFERRED_PROVIDER_binutils-cross-canadian-

${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"

Quoted 2 lines

Review PREFERRED_PROVIDER_glibc-thread-db = · line 32

Quoted 2 lines
(quoted diff) +1 -0
+# Special case for gdb to be built as part of canadian-

cross-sdk

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 33

Quoted 1 line
(quoted diff) +1 -0
+bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} =

"${exec_prefix}/bin"

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 34

Quoted 1 line
(quoted diff) +1 -0
+PREFERRED_PROVIDER_gdb-cross-canadian-

${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-
${TRANSLATED_TARGET_ARCH}"

Quoted 5 lines

Review

Quoted 5 lines
meta-arago-extras/conf/distro/include/tcmode-external-arago.inc +1 -0
+
 GCCVERSION ?= "4.5%"
 SDKGCCVERSION ?= "4.5%"
 BINUVERSION ?= "2.20%"
(quoted diff) +0 -0

toolchain-arago.bb b/meta-arago-extras/recipes-core/meta/meta- toolchain-arago.bb

Quoted 2 lines
Quoted 2 lines

index 1683c1f..f780385 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 1 line
Quoted 1 line

+++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 1 line

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 10 lines

meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb toolchain_create_sdk_env_script () { · line 54

Quoted 10 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +1 -1
 require recipes-core/meta/meta-toolchain.bb
 
-PR = "r7"
+PR = "r8"
 
 SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
 
@@ -54,6 +54,8 @@ toolchain_create_sdk_env_script () {
       echo 'export OECORE_ACLOCAL_OPTS="-I

$SDK_PATH/usr/share/aclocal"' >> $script

Quoted 1 line

Review toolchain_create_sdk_env_script () { · line 55

Quoted 1 line
(quoted diff) +0 -0
       echo 'export

OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script

Quoted 1 line

Review toolchain_create_sdk_env_script () { · line 56

Quoted 1 line
(quoted diff) +0 -0
       echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >>

$script

Quoted 7 lines

meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb populate_sdk_ipk_append () { · line 66

Quoted 7 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +2 -0
+     echo 'export PYTHONHOME=$SDK_PATH' >> $script
+     echo 'export PYTHONPATH=lib/python2.7' >> $script
 }
 
 populate_sdk_ipk_append () {
@@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
               printf

"#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/$i.real \x24\x2a\n" > $i

Quoted 4 lines

meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb populate_sdk_ipk_append () {

Quoted 4 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +2 -0
               chmod +x $i
       done
+
+     # Special case for gdb, which is built as part of

canadian-cross-sdk

Quoted 2 lines

Review populate_sdk_ipk_append () { · line 72

Quoted 2 lines
(quoted diff) +2 -0
+     mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-gdb.real
+     printf

"#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb

Quoted 14 lines
Quoted 5 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +1 -1
+     chmod +x ${ARAGO_TARGET_SYS}-gdb
 }
--

1.8.0

_______________________________________________
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

#8 lore raw
Quoted 3 lines · Chase

I was able to execute the arm-arago-linux-gnueabi-gdb and run

python print 23

Yeah, that part I was able to verify myself... :) I was rather interested in Qt Creator results.

Quoted 8 lines

I did have to source environment-setup for the wrapper script to work. As a though, could we do something like the following in these wrapper scripts?

if [ -n "$BASH_SOURCE" ]
then
. dirname $BASH_SOURCE/../environment-setup
fi

I know this may not work for all shells, but like environment-setup itself, in the case that it does work then user's don't get bitten not having it sourced. Also doesn't hurt them if the environment-setup is already sourced. Thoughts?

Nope, some things in the environment-setup are not reentrant... Like appending or prepending to PATH and other vars - they will be growing every time you source the script, duplicating entries.

Signature · 1 line
Denys
Quoted 137 lines
Quoted 110 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, November 14, 2012 1:10 PM
To: Maupin, Chase
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

Any updates yet?

Quoted 1 line · Chase

Thank you denys. We will check for compatibility. Thanks for

the quick response on this.

Quoted 7 lines

Sent from my cell phone

----- Reply message -----
From: "Dmytriyenko, Denys" <[email protected]>
Date: Tue, Nov 13, 2012 9:59 pm
Subject: [meta-arago] [PATCH] meta-toolchain-arago: special

case for gdb to be built as part of canadian-cross-sdk

Quoted 1 line

To: "[email protected]" <meta-arago@arago-

project.org>

Quoted 2 lines

This provides the bare minimum to get the Python-enabled gdb-

7.4 into the

Quoted 1 line

devkit and set it up properly. We would need to test it with

gdbserver-7.2 and

Quoted 7 lines

run it through OSRB...

--
Denys

On Tue, Nov 13, 2012 at 10:50:12PM -0500, Denys Dmytriyenko

Quoted 3 lines · wrote:
Quoted 3 lines

---
meta-arago-extras/conf/distro/include/tcmode-external-

arago.inc | 4 ++++

Quoted 1 line
Quoted 1 line

meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb

| 9 ++++++++-

Quoted 3 lines

Review

Quoted 3 lines
 2 files changed, 12 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

external-arago.inc b/meta-arago- extras/conf/distro/include/tcmode-external-arago.inc

Quoted 2 lines
Quoted 2 lines

index 2ed3df2..3bc0fed 100644
--- a/meta-arago-extras/conf/distro/include/tcmode-external-

arago.inc

Quoted 1 line
Quoted 1 line

+++ b/meta-arago-extras/conf/distro/include/tcmode-external-

arago.inc

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db =

Quoted 1 line
(quoted diff) +0 -0
@@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db =

"external-arago-toolchain"

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 30

Quoted 1 line
(quoted diff) +0 -0
 PREFERRED_PROVIDER_gcc-cross-canadian-

${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 31

Quoted 1 line
(quoted diff) +0 -0
 PREFERRED_PROVIDER_binutils-cross-canadian-

${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"

Quoted 2 lines

Review PREFERRED_PROVIDER_glibc-thread-db = · line 32

Quoted 2 lines
(quoted diff) +1 -0
+# Special case for gdb to be built as part of canadian-

cross-sdk

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 33

Quoted 1 line
(quoted diff) +1 -0
+bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} =

"${exec_prefix}/bin"

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 34

Quoted 1 line
(quoted diff) +1 -0
+PREFERRED_PROVIDER_gdb-cross-canadian-

${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-
${TRANSLATED_TARGET_ARCH}"

Quoted 5 lines

Review

Quoted 5 lines
meta-arago-extras/conf/distro/include/tcmode-external-arago.inc +1 -0
+
 GCCVERSION ?= "4.5%"
 SDKGCCVERSION ?= "4.5%"
 BINUVERSION ?= "2.20%"
(quoted diff) +0 -0

toolchain-arago.bb b/meta-arago-extras/recipes-core/meta/meta- toolchain-arago.bb

Quoted 2 lines
Quoted 2 lines

index 1683c1f..f780385 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 1 line
Quoted 1 line

+++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 1 line

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 10 lines

meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb toolchain_create_sdk_env_script () { · line 54

Quoted 10 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +1 -1
 require recipes-core/meta/meta-toolchain.bb
 
-PR = "r7"
+PR = "r8"
 
 SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
 
@@ -54,6 +54,8 @@ toolchain_create_sdk_env_script () {
       echo 'export OECORE_ACLOCAL_OPTS="-I

$SDK_PATH/usr/share/aclocal"' >> $script

Quoted 1 line

Review toolchain_create_sdk_env_script () { · line 55

Quoted 1 line
(quoted diff) +0 -0
       echo 'export

OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script

Quoted 1 line

Review toolchain_create_sdk_env_script () { · line 56

Quoted 1 line
(quoted diff) +0 -0
       echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >>

$script

Quoted 7 lines

meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb populate_sdk_ipk_append () { · line 66

Quoted 7 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +2 -0
+     echo 'export PYTHONHOME=$SDK_PATH' >> $script
+     echo 'export PYTHONPATH=lib/python2.7' >> $script
 }
 
 populate_sdk_ipk_append () {
@@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
               printf

"#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/$i.real \x24\x2a\n" > $i

Quoted 4 lines

meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb populate_sdk_ipk_append () {

Quoted 4 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +2 -0
               chmod +x $i
       done
+
+     # Special case for gdb, which is built as part of
Quoted 21 lines

canadian-cross-sdk

Quoted 2 lines

Review populate_sdk_ipk_append () { · line 72

Quoted 2 lines
(quoted diff) +2 -0
+     mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-gdb.real
+     printf

"#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb

Quoted 14 lines
Quoted 5 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +1 -1
+     chmod +x ${ARAGO_TARGET_SYS}-gdb
 }
--

1.8.0

_______________________________________________
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

#9 lore raw
Quoted 32 lines

-----Original Message-----
From: Denys Dmytriyenko [mailto:[email protected]]
Sent: Wednesday, November 14, 2012 4:37 PM
To: Maupin, Chase
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

Quoted 3 lines · Chase

I was able to execute the arm-arago-linux-gnueabi-gdb and run

python print 23

Yeah, that part I was able to verify myself... :) I was rather interested in
Qt Creator results.

Quoted 1 line

I did have to source environment-setup for the wrapper script

to work. As a though, could we do something like the following in these wrapper scripts?

Quoted 7 lines

if [ -n "$BASH_SOURCE" ]
then
. dirname $BASH_SOURCE/../environment-setup
fi

I know this may not work for all shells, but like environment-

setup itself, in the case that it does work then user's don't get bitten not having it sourced. Also doesn't hurt them if the environment-setup is already sourced. Thoughts?

Quoted 5 lines

Nope, some things in the environment-setup are not reentrant... Like appending
or prepending to PATH and other vars - they will be growing every time you
source the script, duplicating entries.

As per our discussion on IRC, if placed in the stub script this effect is temporary during script execution and is gone when the stub script finishes running.

Quoted 157 lines

--
Denys

Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, November 14, 2012 1:10 PM
To: Maupin, Chase
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago:

special

Quoted 6 lines
Quoted 6 lines

case for gdb to be built as part of canadian-cross-sdk

Any updates yet?

On Wed, Nov 14, 2012 at 04:08:32AM +0000, Maupin, Chase

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line

Thank you denys. We will check for compatibility. Thanks

for

Quoted 8 lines
Quoted 8 lines

the quick response on this.

Quoted 7 lines

Sent from my cell phone

----- Reply message -----
From: "Dmytriyenko, Denys" <[email protected]>
Date: Tue, Nov 13, 2012 9:59 pm
Subject: [meta-arago] [PATCH] meta-toolchain-arago: special

Quoted 5 lines
Quoted 5 lines

case for gdb to be built as part of canadian-cross-sdk

Quoted 1 line

To: "[email protected]" <meta-arago@arago-

project.org>

Quoted 2 lines

This provides the bare minimum to get the Python-enabled

gdb-

Quoted 2 lines
Quoted 2 lines

7.4 into the

Quoted 1 line

devkit and set it up properly. We would need to test it

with

Quoted 7 lines
Quoted 7 lines

gdbserver-7.2 and

Quoted 6 lines

run it through OSRB...

--
Denys

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

On Tue, Nov 13, 2012 at 10:50:12PM -0500, Denys Dmytriyenko

Quoted 3 lines · wrote:
Quoted 3 lines

---
meta-arago-extras/conf/distro/include/tcmode-external-

arago.inc | 4 ++++

Quoted 1 line
Quoted 1 line

meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 4 lines
Quoted 4 lines

| 9 ++++++++-

Quoted 3 lines

Review

Quoted 3 lines
 2 files changed, 12 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

extras/conf/distro/include/tcmode-

Quoted 4 lines
Quoted 4 lines

external-arago.inc b/meta-arago- extras/conf/distro/include/tcmode-external-arago.inc

Quoted 2 lines
Quoted 2 lines

index 2ed3df2..3bc0fed 100644
--- a/meta-arago-extras/conf/distro/include/tcmode-

external-

Quoted 2 lines
Quoted 2 lines

arago.inc

Quoted 1 line
Quoted 1 line

+++ b/meta-arago-extras/conf/distro/include/tcmode-

external-

Quoted 13 lines
Quoted 13 lines

arago.inc

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db =

Quoted 1 line
(quoted diff) +0 -0
@@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db =

"external-arago-toolchain"

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 30

Quoted 1 line
(quoted diff) +0 -0
 PREFERRED_PROVIDER_gcc-cross-canadian-

${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 31

Quoted 1 line
(quoted diff) +0 -0
 PREFERRED_PROVIDER_binutils-cross-canadian-

${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"

Quoted 2 lines

Review PREFERRED_PROVIDER_glibc-thread-db = · line 32

Quoted 2 lines
(quoted diff) +1 -0
+# Special case for gdb to be built as part of canadian-

cross-sdk

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 33

Quoted 1 line
(quoted diff) +1 -0
+bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} =

"${exec_prefix}/bin"

Quoted 1 line
Quoted 1 line
(quoted diff) +1 -0
+PREFERRED_PROVIDER_gdb-cross-canadian-
Quoted 8 lines
Quoted 8 lines

${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-
${TRANSLATED_TARGET_ARCH}"

Quoted 5 lines

Review

Quoted 5 lines
meta-arago-extras/conf/distro/include/tcmode-external-arago.inc +1 -0
+
 GCCVERSION ?= "4.5%"
 SDKGCCVERSION ?= "4.5%"
 BINUVERSION ?= "2.20%"
(quoted diff) +0 -0

toolchain-arago.bb b/meta-arago-extras/recipes-

core/meta/meta-

Quoted 24 lines
Quoted 24 lines

toolchain-arago.bb

Quoted 2 lines
Quoted 2 lines

index 1683c1f..f780385 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 1 line
Quoted 1 line

+++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 1 line

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 10 lines

meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb toolchain_create_sdk_env_script () { · line 54

Quoted 10 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +1 -1
 require recipes-core/meta/meta-toolchain.bb
 
-PR = "r7"
+PR = "r8"
 
 SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
 
@@ -54,6 +54,8 @@ toolchain_create_sdk_env_script () {
       echo 'export OECORE_ACLOCAL_OPTS="-I

$SDK_PATH/usr/share/aclocal"' >> $script

Quoted 1 line

Review toolchain_create_sdk_env_script () { · line 55

Quoted 1 line
(quoted diff) +0 -0
       echo 'export

OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script

Quoted 1 line

Review toolchain_create_sdk_env_script () { · line 56

Quoted 1 line
(quoted diff) +0 -0
       echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"'

$script

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines

meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb populate_sdk_ipk_append () { · line 66

Quoted 7 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +2 -0
+     echo 'export PYTHONHOME=$SDK_PATH' >> $script
+     echo 'export PYTHONPATH=lib/python2.7' >> $script
 }
 
 populate_sdk_ipk_append () {
@@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
               printf

"#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH

Quoted 8 lines
Quoted 8 lines

\x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/$i.real \x24\x2a\n" > $i

Quoted 4 lines

meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb populate_sdk_ipk_append () {

Quoted 4 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +2 -0
               chmod +x $i
       done
+
+     # Special case for gdb, which is built as part of

canadian-cross-sdk

Quoted 1 line
Quoted 1 line
(quoted diff) +1 -0
+     mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-

gdb.real

Quoted 2 lines
Quoted 2 lines
Quoted 1 line

Review populate_sdk_ipk_append () { · line 72

Quoted 1 line
(quoted diff) +1 -0
+     printf

"#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH

Quoted 8 lines
Quoted 8 lines

\x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb

Quoted 5 lines
Quoted 5 lines
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +1 -1
+     chmod +x ${ARAGO_TARGET_SYS}-gdb
 }
--

1.8.0

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-

arago

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-

arago

Quoted 6 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#10 lore raw

I tried debugging the Thermostat demo and a simple helloworld.....

Everything works fine :)

Thanks Denys

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Maupin, Chase
Sent: Wednesday, November 14, 2012 5:11 PM
To: Denys Dmytriyenko
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

Quoted 27 lines

-----Original Message-----
From: Denys Dmytriyenko [mailto:[email protected]]
Sent: Wednesday, November 14, 2012 4:37 PM
To: Maupin, Chase
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

Quoted 3 lines · Chase

I was able to execute the arm-arago-linux-gnueabi-gdb and run

python print 23

Yeah, that part I was able to verify myself... :) I was rather interested in Qt Creator results.

Quoted 1 line

I did have to source environment-setup for the wrapper script

to work. As a though, could we do something like the following in these wrapper scripts?

Quoted 7 lines

if [ -n "$BASH_SOURCE" ]
then
. dirname $BASH_SOURCE/../environment-setup
fi

I know this may not work for all shells, but like environment-

Quoted 8 lines

setup itself, in the case that it does work then user's don't get bitten not having it sourced. Also doesn't hurt them if the environment-setup is already sourced. Thoughts?

Nope, some things in the environment-setup are not reentrant... Like appending
or prepending to PATH and other vars - they will be growing every time you source the script, duplicating entries.

As per our discussion on IRC, if placed in the stub script this effect is temporary during script execution and is gone when the stub script finishes running.

Quoted 144 lines

--
Denys

Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, November 14, 2012 1:10 PM
To: Maupin, Chase
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago:

special

Quoted 6 lines
Quoted 6 lines

case for gdb to be built as part of canadian-cross-sdk

Any updates yet?

On Wed, Nov 14, 2012 at 04:08:32AM +0000, Maupin, Chase

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line

Thank you denys. We will check for compatibility. Thanks

for

Quoted 8 lines
Quoted 8 lines

the quick response on this.

Quoted 7 lines

Sent from my cell phone

----- Reply message -----
From: "Dmytriyenko, Denys" <[email protected]>
Date: Tue, Nov 13, 2012 9:59 pm
Subject: [meta-arago] [PATCH] meta-toolchain-arago: special

Quoted 5 lines
Quoted 5 lines

case for gdb to be built as part of canadian-cross-sdk

Quoted 1 line

To: "[email protected]" <meta-arago@arago-

project.org>

Quoted 2 lines

This provides the bare minimum to get the Python-enabled

gdb-

Quoted 2 lines
Quoted 2 lines

7.4 into the

Quoted 1 line

devkit and set it up properly. We would need to test it

with

Quoted 7 lines
Quoted 7 lines

gdbserver-7.2 and

Quoted 6 lines

run it through OSRB...

--
Denys

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

On Tue, Nov 13, 2012 at 10:50:12PM -0500, Denys Dmytriyenko

Quoted 3 lines · wrote:
Quoted 3 lines

---
meta-arago-extras/conf/distro/include/tcmode-external-

arago.inc | 4 ++++

Quoted 1 line
Quoted 1 line

meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 4 lines
Quoted 4 lines

| 9 ++++++++-

Quoted 3 lines

Review

Quoted 3 lines
 2 files changed, 12 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

extras/conf/distro/include/tcmode-

Quoted 4 lines
Quoted 4 lines

external-arago.inc b/meta-arago- extras/conf/distro/include/tcmode-external-arago.inc

Quoted 2 lines
Quoted 2 lines

index 2ed3df2..3bc0fed 100644
--- a/meta-arago-extras/conf/distro/include/tcmode-

external-

Quoted 2 lines
Quoted 2 lines

arago.inc

Quoted 1 line
Quoted 1 line

+++ b/meta-arago-extras/conf/distro/include/tcmode-

external-

Quoted 13 lines
Quoted 13 lines

arago.inc

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db =

Quoted 1 line
(quoted diff) +0 -0
@@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db =

"external-arago-toolchain"

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 30

Quoted 1 line
(quoted diff) +0 -0
 PREFERRED_PROVIDER_gcc-cross-canadian-

${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 31

Quoted 1 line
(quoted diff) +0 -0
 PREFERRED_PROVIDER_binutils-cross-canadian-

${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"

Quoted 2 lines

Review PREFERRED_PROVIDER_glibc-thread-db = · line 32

Quoted 2 lines
(quoted diff) +1 -0
+# Special case for gdb to be built as part of canadian-

cross-sdk

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 33

Quoted 1 line
(quoted diff) +1 -0
+bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} =

"${exec_prefix}/bin"

Quoted 1 line
Quoted 1 line
(quoted diff) +1 -0
+PREFERRED_PROVIDER_gdb-cross-canadian-
Quoted 8 lines
Quoted 8 lines

${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-
${TRANSLATED_TARGET_ARCH}"

Quoted 5 lines

Review

Quoted 5 lines
(quoted diff) +1 -0
+
 GCCVERSION ?= "4.5%"
 SDKGCCVERSION ?= "4.5%"
 BINUVERSION ?= "2.20%"
(quoted diff) +0 -0

toolchain-arago.bb b/meta-arago-extras/recipes-

core/meta/meta-

Quoted 24 lines
Quoted 24 lines

toolchain-arago.bb

Quoted 2 lines
Quoted 2 lines

index 1683c1f..f780385 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 1 line
Quoted 1 line

+++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 1 line

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 10 lines

Review toolchain_create_sdk_env_script () { · line 54

Quoted 10 lines
(quoted diff) +1 -1
 require recipes-core/meta/meta-toolchain.bb
 
-PR = "r7"
+PR = "r8"
 
 SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
 
@@ -54,6 +54,8 @@ toolchain_create_sdk_env_script () {
       echo 'export OECORE_ACLOCAL_OPTS="-I

$SDK_PATH/usr/share/aclocal"' >> $script

Quoted 1 line

Review toolchain_create_sdk_env_script () { · line 55

Quoted 1 line
(quoted diff) +0 -0
       echo 'export

OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script

Quoted 1 line

Review toolchain_create_sdk_env_script () { · line 56

Quoted 1 line
(quoted diff) +0 -0
       echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"'

$script

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines

Review populate_sdk_ipk_append () { · line 66

Quoted 7 lines
(quoted diff) +2 -0
+     echo 'export PYTHONHOME=$SDK_PATH' >> $script
+     echo 'export PYTHONPATH=lib/python2.7' >> $script
 }
 
 populate_sdk_ipk_append () {
@@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
               printf

"#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH

Quoted 8 lines
Quoted 8 lines

\x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/$i.real \x24\x2a\n" > $i

Quoted 4 lines

Review populate_sdk_ipk_append () { · line 70

Quoted 4 lines
(quoted diff) +2 -0
               chmod +x $i
       done
+
+     # Special case for gdb, which is built as part of

canadian-cross-sdk

Quoted 1 line
Quoted 1 line
(quoted diff) +1 -0
+     mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-

gdb.real

Quoted 2 lines
Quoted 2 lines
Quoted 1 line

Review populate_sdk_ipk_append () { · line 72

Quoted 1 line
(quoted diff) +1 -0
+     printf

"#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH

Quoted 8 lines
Quoted 8 lines

\x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb

Quoted 5 lines
Quoted 5 lines
(quoted diff) +1 -1
+     chmod +x ${ARAGO_TARGET_SYS}-gdb
 }
--

1.8.0

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-

Quoted 13 lines

arago

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-

arago

Quoted 6 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

#11 lore raw
In reply to Maupin, Chase

Denys,

Do you want to commit your patch or are their tweaks you want to make first?

-----Original Message-----
From: Cooper Jr., Franklin
Sent: Wednesday, November 14, 2012 5:29 PM
To: Maupin, Chase; Denys Dmytriyenko
Cc: [email protected]
Subject: RE: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

I tried debugging the Thermostat demo and a simple helloworld.....

Everything works fine :)

Thanks Denys

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Maupin, Chase
Sent: Wednesday, November 14, 2012 5:11 PM
To: Denys Dmytriyenko
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

Quoted 27 lines

-----Original Message-----
From: Denys Dmytriyenko [mailto:[email protected]]
Sent: Wednesday, November 14, 2012 4:37 PM
To: Maupin, Chase
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

Quoted 3 lines · Chase

I was able to execute the arm-arago-linux-gnueabi-gdb and run

python print 23

Yeah, that part I was able to verify myself... :) I was rather interested in Qt Creator results.

Quoted 1 line

I did have to source environment-setup for the wrapper script

to work. As a though, could we do something like the following in these wrapper scripts?

Quoted 7 lines

if [ -n "$BASH_SOURCE" ]
then
. dirname $BASH_SOURCE/../environment-setup
fi

I know this may not work for all shells, but like environment-

Quoted 8 lines

setup itself, in the case that it does work then user's don't get bitten not having it sourced. Also doesn't hurt them if the environment-setup is already sourced. Thoughts?

Nope, some things in the environment-setup are not reentrant... Like appending
or prepending to PATH and other vars - they will be growing every time you source the script, duplicating entries.

As per our discussion on IRC, if placed in the stub script this effect is temporary during script execution and is gone when the stub script finishes running.

Quoted 144 lines

--
Denys

Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, November 14, 2012 1:10 PM
To: Maupin, Chase
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago:

special

Quoted 6 lines
Quoted 6 lines

case for gdb to be built as part of canadian-cross-sdk

Any updates yet?

On Wed, Nov 14, 2012 at 04:08:32AM +0000, Maupin, Chase

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line

Thank you denys. We will check for compatibility. Thanks

for

Quoted 8 lines
Quoted 8 lines

the quick response on this.

Quoted 7 lines

Sent from my cell phone

----- Reply message -----
From: "Dmytriyenko, Denys" <[email protected]>
Date: Tue, Nov 13, 2012 9:59 pm
Subject: [meta-arago] [PATCH] meta-toolchain-arago: special

Quoted 5 lines
Quoted 5 lines

case for gdb to be built as part of canadian-cross-sdk

Quoted 1 line

To: "[email protected]" <meta-arago@arago-

project.org>

Quoted 2 lines

This provides the bare minimum to get the Python-enabled

gdb-

Quoted 2 lines
Quoted 2 lines

7.4 into the

Quoted 1 line

devkit and set it up properly. We would need to test it

with

Quoted 7 lines
Quoted 7 lines

gdbserver-7.2 and

Quoted 6 lines

run it through OSRB...

--
Denys

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

On Tue, Nov 13, 2012 at 10:50:12PM -0500, Denys Dmytriyenko

Quoted 3 lines · wrote:
Quoted 3 lines

---
meta-arago-extras/conf/distro/include/tcmode-external-

arago.inc | 4 ++++

Quoted 1 line
Quoted 1 line

meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 4 lines
Quoted 4 lines

| 9 ++++++++-

Quoted 3 lines

Review

Quoted 3 lines
 2 files changed, 12 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

extras/conf/distro/include/tcmode-

Quoted 4 lines
Quoted 4 lines

external-arago.inc b/meta-arago- extras/conf/distro/include/tcmode-external-arago.inc

Quoted 2 lines
Quoted 2 lines

index 2ed3df2..3bc0fed 100644
--- a/meta-arago-extras/conf/distro/include/tcmode-

external-

Quoted 2 lines
Quoted 2 lines

arago.inc

Quoted 1 line
Quoted 1 line

+++ b/meta-arago-extras/conf/distro/include/tcmode-

external-

Quoted 13 lines
Quoted 13 lines

arago.inc

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db =

Quoted 1 line
(quoted diff) +0 -0
@@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db =

"external-arago-toolchain"

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 30

Quoted 1 line
(quoted diff) +0 -0
 PREFERRED_PROVIDER_gcc-cross-canadian-

${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 31

Quoted 1 line
(quoted diff) +0 -0
 PREFERRED_PROVIDER_binutils-cross-canadian-

${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"

Quoted 2 lines

Review PREFERRED_PROVIDER_glibc-thread-db = · line 32

Quoted 2 lines
(quoted diff) +1 -0
+# Special case for gdb to be built as part of canadian-

cross-sdk

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 33

Quoted 1 line
(quoted diff) +1 -0
+bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} =

"${exec_prefix}/bin"

Quoted 1 line
Quoted 1 line
(quoted diff) +1 -0
+PREFERRED_PROVIDER_gdb-cross-canadian-
Quoted 8 lines
Quoted 8 lines

${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-
${TRANSLATED_TARGET_ARCH}"

Quoted 5 lines

Review

Quoted 5 lines
(quoted diff) +1 -0
+
 GCCVERSION ?= "4.5%"
 SDKGCCVERSION ?= "4.5%"
 BINUVERSION ?= "2.20%"
(quoted diff) +0 -0

toolchain-arago.bb b/meta-arago-extras/recipes-

core/meta/meta-

Quoted 24 lines
Quoted 24 lines

toolchain-arago.bb

Quoted 2 lines
Quoted 2 lines

index 1683c1f..f780385 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 1 line
Quoted 1 line

+++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 1 line

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 10 lines

Review toolchain_create_sdk_env_script () { · line 54

Quoted 10 lines
(quoted diff) +1 -1
 require recipes-core/meta/meta-toolchain.bb
 
-PR = "r7"
+PR = "r8"
 
 SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
 
@@ -54,6 +54,8 @@ toolchain_create_sdk_env_script () {
       echo 'export OECORE_ACLOCAL_OPTS="-I

$SDK_PATH/usr/share/aclocal"' >> $script

Quoted 1 line

Review toolchain_create_sdk_env_script () { · line 55

Quoted 1 line
(quoted diff) +0 -0
       echo 'export

OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script

Quoted 1 line

Review toolchain_create_sdk_env_script () { · line 56

Quoted 1 line
(quoted diff) +0 -0
       echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"'

$script

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines

Review populate_sdk_ipk_append () { · line 66

Quoted 7 lines
(quoted diff) +2 -0
+     echo 'export PYTHONHOME=$SDK_PATH' >> $script
+     echo 'export PYTHONPATH=lib/python2.7' >> $script
 }
 
 populate_sdk_ipk_append () {
@@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
               printf

"#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH

Quoted 8 lines
Quoted 8 lines

\x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/$i.real \x24\x2a\n" > $i

Quoted 4 lines

Review populate_sdk_ipk_append () { · line 70

Quoted 4 lines
(quoted diff) +2 -0
               chmod +x $i
       done
+
+     # Special case for gdb, which is built as part of

canadian-cross-sdk

Quoted 1 line
Quoted 1 line
(quoted diff) +1 -0
+     mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-

gdb.real

Quoted 2 lines
Quoted 2 lines
Quoted 1 line

Review populate_sdk_ipk_append () { · line 72

Quoted 1 line
(quoted diff) +1 -0
+     printf

"#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH

Quoted 8 lines
Quoted 8 lines

\x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb

Quoted 5 lines
Quoted 5 lines
(quoted diff) +1 -1
+     chmod +x ${ARAGO_TARGET_SYS}-gdb
 }
--

1.8.0

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-

Quoted 13 lines

arago

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-

arago

Quoted 6 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

#12 lore raw

Need to stop bitbake complaining about gdb provided multiple times - some conditional logic in external-toolchain recipe...

Quoted 227 lines · Franklin

Denys,

Do you want to commit your patch or are their tweaks you want to make first?

-----Original Message-----
From: Cooper Jr., Franklin
Sent: Wednesday, November 14, 2012 5:29 PM
To: Maupin, Chase; Denys Dmytriyenko
Cc: [email protected]
Subject: RE: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

I tried debugging the Thermostat demo and a simple helloworld.....

Everything works fine :)

Thanks Denys

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Maupin, Chase
Sent: Wednesday, November 14, 2012 5:11 PM
To: Denys Dmytriyenko
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

Quoted 27 lines

-----Original Message-----
From: Denys Dmytriyenko [mailto:[email protected]]
Sent: Wednesday, November 14, 2012 4:37 PM
To: Maupin, Chase
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk

Quoted 3 lines · Chase

I was able to execute the arm-arago-linux-gnueabi-gdb and run

python print 23

Yeah, that part I was able to verify myself... :) I was rather interested in Qt Creator results.

Quoted 1 line

I did have to source environment-setup for the wrapper script

to work. As a though, could we do something like the following in these wrapper scripts?

Quoted 7 lines

if [ -n "$BASH_SOURCE" ]
then
. dirname $BASH_SOURCE/../environment-setup
fi

I know this may not work for all shells, but like environment-

Quoted 8 lines

setup itself, in the case that it does work then user's don't get bitten not having it sourced. Also doesn't hurt them if the environment-setup is already sourced. Thoughts?

Nope, some things in the environment-setup are not reentrant... Like appending
or prepending to PATH and other vars - they will be growing every time you source the script, duplicating entries.

As per our discussion on IRC, if placed in the stub script this effect is temporary during script execution and is gone when the stub script finishes running.

Quoted 144 lines

--
Denys

Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, November 14, 2012 1:10 PM
To: Maupin, Chase
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago:

special

Quoted 6 lines
Quoted 6 lines

case for gdb to be built as part of canadian-cross-sdk

Any updates yet?

On Wed, Nov 14, 2012 at 04:08:32AM +0000, Maupin, Chase

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line

Thank you denys. We will check for compatibility. Thanks

for

Quoted 8 lines
Quoted 8 lines

the quick response on this.

Quoted 7 lines

Sent from my cell phone

----- Reply message -----
From: "Dmytriyenko, Denys" <[email protected]>
Date: Tue, Nov 13, 2012 9:59 pm
Subject: [meta-arago] [PATCH] meta-toolchain-arago: special

Quoted 5 lines
Quoted 5 lines

case for gdb to be built as part of canadian-cross-sdk

Quoted 1 line

To: "[email protected]" <meta-arago@arago-

project.org>

Quoted 2 lines

This provides the bare minimum to get the Python-enabled

gdb-

Quoted 2 lines
Quoted 2 lines

7.4 into the

Quoted 1 line

devkit and set it up properly. We would need to test it

with

Quoted 7 lines
Quoted 7 lines

gdbserver-7.2 and

Quoted 6 lines

run it through OSRB...

--
Denys

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

On Tue, Nov 13, 2012 at 10:50:12PM -0500, Denys Dmytriyenko

Quoted 3 lines · wrote:
Quoted 3 lines

---
meta-arago-extras/conf/distro/include/tcmode-external-

arago.inc | 4 ++++

Quoted 1 line
Quoted 1 line

meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 4 lines
Quoted 4 lines

| 9 ++++++++-

Quoted 3 lines

Review

Quoted 3 lines
 2 files changed, 12 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

extras/conf/distro/include/tcmode-

Quoted 4 lines
Quoted 4 lines

external-arago.inc b/meta-arago- extras/conf/distro/include/tcmode-external-arago.inc

Quoted 2 lines
Quoted 2 lines

index 2ed3df2..3bc0fed 100644
--- a/meta-arago-extras/conf/distro/include/tcmode-

external-

Quoted 2 lines
Quoted 2 lines

arago.inc

Quoted 1 line
Quoted 1 line

+++ b/meta-arago-extras/conf/distro/include/tcmode-

external-

Quoted 13 lines
Quoted 13 lines

arago.inc

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db =

Quoted 1 line
(quoted diff) +0 -0
@@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db =

"external-arago-toolchain"

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 30

Quoted 1 line
(quoted diff) +0 -0
 PREFERRED_PROVIDER_gcc-cross-canadian-

${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 31

Quoted 1 line
(quoted diff) +0 -0
 PREFERRED_PROVIDER_binutils-cross-canadian-

${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain"

Quoted 2 lines

Review PREFERRED_PROVIDER_glibc-thread-db = · line 32

Quoted 2 lines
(quoted diff) +1 -0
+# Special case for gdb to be built as part of canadian-

cross-sdk

Quoted 1 line

Review PREFERRED_PROVIDER_glibc-thread-db = · line 33

Quoted 1 line
(quoted diff) +1 -0
+bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} =

"${exec_prefix}/bin"

Quoted 1 line
Quoted 1 line
(quoted diff) +1 -0
+PREFERRED_PROVIDER_gdb-cross-canadian-
Quoted 8 lines
Quoted 8 lines

${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-
${TRANSLATED_TARGET_ARCH}"

Quoted 5 lines

Review

Quoted 5 lines
(quoted diff) +1 -0
+
 GCCVERSION ?= "4.5%"
 SDKGCCVERSION ?= "4.5%"
 BINUVERSION ?= "2.20%"
(quoted diff) +0 -0

toolchain-arago.bb b/meta-arago-extras/recipes-

core/meta/meta-

Quoted 24 lines
Quoted 24 lines

toolchain-arago.bb

Quoted 2 lines
Quoted 2 lines

index 1683c1f..f780385 100644
--- a/meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 1 line
Quoted 1 line

+++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-

arago.bb

Quoted 1 line

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 10 lines

Review toolchain_create_sdk_env_script () { · line 54

Quoted 10 lines
(quoted diff) +1 -1
 require recipes-core/meta/meta-toolchain.bb
 
-PR = "r7"
+PR = "r8"
 
 SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
 
@@ -54,6 +54,8 @@ toolchain_create_sdk_env_script () {
       echo 'export OECORE_ACLOCAL_OPTS="-I

$SDK_PATH/usr/share/aclocal"' >> $script

Quoted 1 line

Review toolchain_create_sdk_env_script () { · line 55

Quoted 1 line
(quoted diff) +0 -0
       echo 'export

OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script

Quoted 1 line

Review toolchain_create_sdk_env_script () { · line 56

Quoted 1 line
(quoted diff) +0 -0
       echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"'

$script

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines

Review populate_sdk_ipk_append () { · line 66

Quoted 7 lines
(quoted diff) +2 -0
+     echo 'export PYTHONHOME=$SDK_PATH' >> $script
+     echo 'export PYTHONPATH=lib/python2.7' >> $script
 }
 
 populate_sdk_ipk_append () {
@@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
               printf

"#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH

Quoted 8 lines
Quoted 8 lines

\x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/$i.real \x24\x2a\n" > $i

Quoted 4 lines

Review populate_sdk_ipk_append () { · line 70

Quoted 4 lines
(quoted diff) +2 -0
               chmod +x $i
       done
+
+     # Special case for gdb, which is built as part of

canadian-cross-sdk

Quoted 1 line
Quoted 1 line
(quoted diff) +1 -0
+     mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-

gdb.real

Quoted 2 lines
Quoted 2 lines
Quoted 1 line

Review populate_sdk_ipk_append () { · line 72

Quoted 1 line
(quoted diff) +1 -0
+     printf

"#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH

Quoted 8 lines
Quoted 8 lines

\x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb

Quoted 5 lines
Quoted 5 lines
(quoted diff) +1 -1
+     chmod +x ${ARAGO_TARGET_SYS}-gdb
 }
--

1.8.0

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-

Quoted 13 lines

arago

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-

arago

Quoted 6 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