From b1818281164c8e201ee04820d90f4663ec182276 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 5 Jun 2018 12:11:55 -0700 Subject: sdk-manual: Added cross-reference to Makefile section. Fixed syntax Two changes here. One was a note to the "make" step of the Autotools-based section. I cross-referenced the Makefile section for information on how SDK installation environment variables are respected and or overridden when using make variables. Also, fixed the quotation syntax of the four environment variable examples used in the "Makefile-Based Projects" section. (From yocto-docs rev: a5742a8730359ed28f10108cb741913472337c57) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/sdk-manual/sdk-working-projects.xml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'documentation') diff --git a/documentation/sdk-manual/sdk-working-projects.xml b/documentation/sdk-manual/sdk-working-projects.xml index 7aa43b3921..44b010db6d 100644 --- a/documentation/sdk-manual/sdk-working-projects.xml +++ b/documentation/sdk-manual/sdk-working-projects.xml @@ -195,6 +195,14 @@ $ make $ make install DESTDIR=./tmp + + To learn about environment variables established + when you run the cross-toolchain environment setup + script and how they are used or overridden when + the Makefile, see the + "Makefile-Based Projects" + section. + This next command is a simple way to verify the installation of your project. Running the command prints the architecture on which @@ -235,10 +243,10 @@ To illustrate this, consider the following four cross-toolchain environment variables: - CC=i586-poky-linux-gcc -m32 -march=i586 --sysroot=/opt/poky/&DISTRO;/sysroots/i586-poky-linux - LD=i586-poky-linux-ld --sysroot=/opt/poky/&DISTRO;/sysroots/i586-poky-linux - CFLAGS=-O2 -pipe -g -feliminate-unused-debug-types - CXXFLAGS=-O2 -pipe -g -feliminate-unused-debug-types + CC="i586-poky-linux-gcc -m32 -march=i586 --sysroot=/opt/poky/&DISTRO;/sysroots/i586-poky-linux" + LD="i586-poky-linux-ld --sysroot=/opt/poky/&DISTRO;/sysroots/i586-poky-linux" + CFLAGS="-O2 -pipe -g -feliminate-unused-debug-types" + CXXFLAGS="-O2 -pipe -g -feliminate-unused-debug-types" Now, consider the following three cases: -- cgit v1.2.3-54-g00ecf