On 8/21/2018 5:44 PM, Denys Dmytriyenko wrote:
On Tue, Aug 21, 2018 at 05:40:44PM -0400, Denys Dmytriyenko wrote:
On Tue, Aug 21, 2018 at 03:13:56PM -0400, Jacob Stiffler wrote:
* Add the secondary toolchain to the devkit
if SECONDARY_TOOLCHAIN_ARCH is defined.
Signed-off-by: Jacob Stiffler <[email protected]>
---
.../packagegroups/packagegroup-arago-cross-canadian.bbappend | 8 ++++++++
1 file changed, 8 insertions(+)
create mode 100644
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-cross-canadian.bbappend
diff --git
a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-cross-canadian.bbappend
b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-cross-canadian.bbappend
new file mode 100644
index 0000000..f02dfd9
--- /dev/null
+++
b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-cross-canadian.bbappend
@@ -0,0 +1,8 @@
+PR_append = ".arago0"
+
+SECONDARY_TOOLCHAIN = "gcc-cross-canadian-${SECONDARY_TARGET_ARCH} \
+ binutils-cross-canadian-${SECONDARY_TARGET_ARCH}"
Since this is a bbappend, it will come into play for internal toolchain as
well, but in that case SECONDARY_TARGET_ARCH won't be set.
I forgot how uninitialized variables are not "empty".
You might want to do something like this:
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-distro/recipes-devtools/gcc/gcc_%25.bbappend;hb=HEAD
Or you can simply set it empty here if not already set.
SECONDADRY_TARGET_ARCH ?= ""
I think I will go with this to make is somewhat easier to read.
+RDEPENDS_${PN}_append = " \
+ ${@base_conditional('SECONDARY_TARGET_ARCH', '', '',
'${SECONDARY_TOOLCHAIN}', d)} \
+"
--
2.7.4
_______________________________________________
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