6.1.11. oe-init-build-env-memres

This script is one of two scripts that set up the OpenEmbedded build environment. Setting up the environment with this script uses a memory-resident BitBake. For information on the other setup script, see the "oe-init-build-env" section.

Memory-resident BitBake resides in memory until you specifically remove it using the following BitBake command:

     $ bitbake -m
            

Running this script with the source command in a shell makes changes to PATH and sets other core BitBake variables based on the current working directory. One of these variables is the BBSERVER variable, which allows the OpenEmbedded build system to locate the server that is running BitBake.

You need to run an environment setup script before running BitBake commands. Following is the script syntax:

     $ source oe-init-build-env-memres <port_number> <build_dir>
            

The script uses other scripts within the scripts directory to do the bulk of the work.

If you do not provide a port number with the script, the default port "12345" is used.

By default, running this script without a Build Directory argument creates the build directory. If you provide a Build Directory argument when you source the script, you direct the OpenEmbedded build system to create a Build Directory of your choice. For example, the following command uses the default port number "12345" and creates a Build Directory named mybuilds that is outside of the Source Directory:

     $ source oe-init-build-env-memres ~/mybuilds
            

Note

The OpenEmbedded build system does not support file or directory names that contain spaces. If you attempt to run the oe-init-build-env-memres script from a Source Directory that contains spaces in either the filenames or directory names, the script returns an error indicating no such file or directory. Be sure to use a Source Directory free of names containing spaces.