Wind River Support Network

HomeDefectsLIN7-2784
Fixed

LIN7-2784 : toolchain-wrappers are deprecated but not documented as such

Created: Jan 28, 2015    Updated: Sep 8, 2018
Resolved Date: Feb 5, 2015
Found In Version: 7.0
Fix Version: 7.0.0.3
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Build & Config, Documentation, Toolchain

Description

As of WRL 7 the toolchain wrappers, enabled via the --with-template=feature/toolchain-wrappers option, are deprecated. However, there is nothing in the User Guide or the layer README to inform the customers of this.

It would be useful to have these documents updated.
If possible, it would also be good if a warning could be displayed when the template is enabled.

Workaround

--- a/templates/feature/toolchain-wrappers/template.conf
+++ b/templates/feature/toolchain-wrappers/template.conf
@@ -1,3 +1,11 @@
 INHERIT += "tc-wrappers"
 
-TOOLCHAIN_HOST_TASK_append = " toolchain-wrappers-cross-canadian-${TRANSLATED_TARGET_ARCH}"
+TOOLCHAIN_HOST_TASK_append = " ${@' '.join(['toolchain-wrappers-cross-canadian-%s' % x for x in all_multilib_tune_values(d,'TRANSLATED_TARGET_ARCH').split()])}"
+
+CONFIG_BANNER[wr-tcwrappers_feature_toolchain-wrappers] = "\
+WARNING: While it is possible to add toolchain wrappers,\
+this practice has been deprecated. The recommended way is to\
+source the environment setup script, and use toolchain environment\
+variables, such as $CC and $CXX. These standard variables can be\
+automatically picked up by autoconf, CMake, etc.
+"

Other Downloads


Live chat
Online