From b87690926928061c82f694dd923b15b3b60e40ae Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Fri, 23 Jan 2015 15:38:31 -0800 Subject: adt-manual, ref-manual: Review edits for xcross-toolchain additions. Mark Hatle reviewed the section and I updated some things based off his input. A rewrite to the "Makefile-Based Projects" section to get it technically correct. Also, removed all SDKROOT documentation from both the adt-manual and ref-manual. Fixes [YOCTO #7133] (From yocto-docs rev: dd785777834611d94868a3774f2eb21ffc081b1a) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/adt-manual/adt-command.xml | 23 ++++++++++++++++------- documentation/adt-manual/adt-prepare.xml | 1 - 2 files changed, 16 insertions(+), 8 deletions(-) (limited to 'documentation/adt-manual') 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 @@ Makefile-Based Projects - For Makefile-based projects, you make sure your - Makefile has statements that ensure proper - use of the cross-toolchain. - For example, the following statements inside a - Makefile ensure the C compiler, linker, flags - passed to the C compiler, and flags passed to the C++ compiler are - specifically defined for the build: + For Makefile-based projects, the cross-toolchain environment + variables established by running the cross-toolchain environment + setup script override any settings you might have in your + Makefile. + For example, if you had settings such as the following in your + Makefile, the environment variables defined + by the script would override them: CC=arm-poky-linux-gnueabi-gcc LD=arm-poky-linux-gnueabi-ld CFLAGS=”${CFLAGS} --sysroot=<sysroot-dir>” CXXFLAGS=”${CXXFLAGS} --sysroot=<sysroot-dir>” + Consequently, you should not set variables like + CC + and + LD + in your Makefile. + For the list of variables set up by the cross-toolchain environment + setup script, see the + "Setting Up the Cross-Development Environment" + section. diff --git a/documentation/adt-manual/adt-prepare.xml b/documentation/adt-manual/adt-prepare.xml index e75e9c95cd..260e1f18a0 100644 --- a/documentation/adt-manual/adt-prepare.xml +++ b/documentation/adt-manual/adt-prepare.xml @@ -423,7 +423,6 @@ When you run the setup script, many environment variables are defined: - SDKROOT - The path to the installed SDK SDKTARGETSYSROOT - The path to the sysroot used for cross-compilation PKG_CONFIG_PATH - The path to the target pkg-config files CONFIG_SITE - A GNU autoconf site file preconfigured for the target -- cgit v1.2.3-54-g00ecf