上QQ阅读APP看书,第一时间看更新
Preparing the build environment
Inside the poky directory, there is a script named oe-init-build-env, which should be used to set up the building environment. The script must be run as shown:
$ source oe-init-build-env [build-directory]
Here, build-directory is an optional parameter for the name of the directory where the environment is set; in case it is not given, it defaults to build. The build-directory is the place where we perform the builds.
It is very convenient to use different build directories. We can work on distinct projects in parallel or different experimental setups without affecting our other builds.
Throughout the book, we will use build as the build directory. When we need to point to a file inside the build directory, we will adopt the same convention, for example, build/conf/local.conf.