diff options
Diffstat (limited to 'documentation/adt-manual/adt-command.xml')
-rw-r--r-- | documentation/adt-manual/adt-command.xml | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/documentation/adt-manual/adt-command.xml b/documentation/adt-manual/adt-command.xml index 0faa05fa6c..d6fa8ee4d4 100644 --- a/documentation/adt-manual/adt-command.xml +++ b/documentation/adt-manual/adt-command.xml | |||
@@ -210,19 +210,28 @@ | |||
210 | <title>Makefile-Based Projects</title> | 210 | <title>Makefile-Based Projects</title> |
211 | 211 | ||
212 | <para> | 212 | <para> |
213 | For Makefile-based projects, you make sure your | 213 | For Makefile-based projects, the cross-toolchain environment |
214 | <filename>Makefile</filename> has statements that ensure proper | 214 | variables established by running the cross-toolchain environment |
215 | use of the cross-toolchain. | 215 | setup script override any settings you might have in your |
216 | For example, the following statements inside a | 216 | <filename>Makefile</filename>. |
217 | <filename>Makefile</filename> ensure the C compiler, linker, flags | 217 | For example, if you had settings such as the following in your |
218 | passed to the C compiler, and flags passed to the C++ compiler are | 218 | <filename>Makefile</filename>, the environment variables defined |
219 | specifically defined for the build: | 219 | by the script would override them: |
220 | <literallayout class='monospaced'> | 220 | <literallayout class='monospaced'> |
221 | <ulink url='&YOCTO_DOCS_REF_URL;#var-CC'>CC</ulink>=arm-poky-linux-gnueabi-gcc | 221 | <ulink url='&YOCTO_DOCS_REF_URL;#var-CC'>CC</ulink>=arm-poky-linux-gnueabi-gcc |
222 | <ulink url='&YOCTO_DOCS_REF_URL;#var-LD'>LD</ulink>=arm-poky-linux-gnueabi-ld | 222 | <ulink url='&YOCTO_DOCS_REF_URL;#var-LD'>LD</ulink>=arm-poky-linux-gnueabi-ld |
223 | <ulink url='&YOCTO_DOCS_REF_URL;#var-CFLAGS'>CFLAGS</ulink>=”${CFLAGS} --sysroot=<sysroot-dir>” | 223 | <ulink url='&YOCTO_DOCS_REF_URL;#var-CFLAGS'>CFLAGS</ulink>=”${CFLAGS} --sysroot=<sysroot-dir>” |
224 | <ulink url='&YOCTO_DOCS_REF_URL;#var-CXXFLAGS'>CXXFLAGS</ulink>=”${CXXFLAGS} --sysroot=<sysroot-dir>” | 224 | <ulink url='&YOCTO_DOCS_REF_URL;#var-CXXFLAGS'>CXXFLAGS</ulink>=”${CXXFLAGS} --sysroot=<sysroot-dir>” |
225 | </literallayout> | 225 | </literallayout> |
226 | Consequently, you should not set variables like | ||
227 | <ulink url='&YOCTO_DOCS_REF_URL;#var-CC'><filename>CC</filename></ulink> | ||
228 | and | ||
229 | <ulink url='&YOCTO_DOCS_REF_URL;#var-LD'><filename>LD</filename></ulink> | ||
230 | in your <filename>Makefile</filename>. | ||
231 | For the list of variables set up by the cross-toolchain environment | ||
232 | setup script, see the | ||
233 | "<link linkend='setting-up-the-cross-development-environment'>Setting Up the Cross-Development Environment</link>" | ||
234 | section. | ||
226 | </para> | 235 | </para> |
227 | </section> | 236 | </section> |
228 | 237 | ||