# 2. Setting up and starting a build After setting up the build system ([SETUP.md](SETUP.md)), we can build images or recipes for a target machine (or BSP). Running the commands in the instructions below will setup a build for a selected AMD BSP, and will start a build: ### 2.1. Select a BSP Set the environment variable `MACHINE` to one of the supported AMD BSPs (i.e. `r1000`, `v1000` or `e3000`) that you want to build for (change the `` in the following example accordingly): ```sh MACHINE="" ``` ### 2.2. Setup the build environment for selected BSP Source the *oe-init-build-env* script: ```sh source ./oe-init-build-env build-${MACHINE}-warrior ``` Set the `MACHINE` and `DISTRO` bitbake environment variables in the `conf/local.conf` (or `auto.conf`): ```sh tee conf/auto.conf < -k ``` ###### where `` is to be replaced with one of the supported images for the selected AMD BSP. See *supported features* section for a list all supported images for your machine. ###### (e.g. `core-image-sato` or `core-image-base`) --- #### What's next Continue to "Section 3 - Deploying an image to the target" ([DEPLOY.md](DEPLOY.md)) for instructions on booting the target with the newly built image. You can also customize the image ([CUSTOMIZE.md](CUSTOMIZE.md)) by enabling/disabling certain configurable features in the `local.conf`. Make sure to re-build the image before deploying the customized build.