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
diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml
index 38a5a60a8a..e61f4c14e7 100644
--- a/documentation/ref-manual/ref-variables.xml
+++ b/documentation/ref-manual/ref-variables.xml
@@ -9276,17 +9276,6 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
- SDKROOT
-
- SDKROOT[doc] = "The path to the installed SDK."
-
-
-
- Defines the path to the installed SDK.
-
-
-
-
SDKTARGETSYSROOT
SDKTARGETSYSROOT[doc] = "Path to the sysroot used for cross-compilation."