Setups a development environment, compiles a yocto-based image, and optionally uploads the results to S3.
Don't know anything about yocto? Read these:
Kick off the build process with the following command:
./bootstrap.sh
Sourcing bootstrap.sh
is only necessary if passing in the -s
param.
. ./bootstrap.sh -v -s -u bender -b /path/to/directory
Here's a breakdown:
-v
enable verbose output-s
upload compiled results to S3-u bender
is an arbitrary user, used to executebitbake
. If the user doesn't exist one is created-b /path/to/directory
parent directory where compilation occurs (the default is/tmp
)
For the most up-to-date instructions run the following command:
./bootstrap.sh -h
If oe-init-build-env
isn't sourced, do so now
runqemu path/to/kernel-image.bin path/to/root-filesystem.ext3
-
The build takes 2 hours to compile on a
c4.2xlarge
, and requires upwards of 50GB of free space. -
This has been sucessfully tested on ubuntu/debian and fedora.
-
We base64 a few files used in shippable's secure variables. Use the following command
base64 -w 0 /path/to/file
-
The build system depends on
meta-aatlive
, a closed-source bitbake layer -
PR builds will fail since secure variables aren't initalized. You have been warned...