Chapter 5. Using the Command Line

Table of Contents

5.1. Autotools-Based Projects
5.1.1. Creating and Running a Project Based on GNU Autotools
5.1.2. Passing Host Options
5.2. Makefile-Based Projects

Recall that earlier the manual discussed how to use an existing toolchain tarball that had been installed into the default installation directory, /opt/poky/1.9, which is outside of the Build Directory (see the section "Using a Cross-Toolchain Tarball)". And, that sourcing your architecture-specific environment setup script initializes a suitable cross-toolchain development environment.

During this setup, locations for the compiler, QEMU scripts, QEMU binary, a special version of pkgconfig and other useful utilities are added to the PATH variable. Also, variables to assist pkgconfig and autotools are also defined so that, for example, configure.sh can find pre-generated test results for tests that need target hardware on which to run. You can see the "Setting Up the Cross-Development Environment" section for the list of cross-toolchain environment variables established by the script.

Collectively, these conditions allow you to easily use the toolchain outside of the OpenEmbedded build environment on both Autotools-based projects and Makefile-based projects. This chapter provides information for both these types of projects.