aqc_embedded_doc
README. atocha. Atocha Linux distribution

This is a root repository of the Poky based aQsi Atocha Linux distribution used Yocto Project build system. As it is based on the Poky distribution the layers which is not in the original Poky git repository have been added to this repository as git submodules.

Build process

There are two types of build - debug and release.

Debug build

To prepare for a debug build run:

cd ~/git/aqc_embedded/yocto-atocha/atocha/
BUILD_DIR=../my_build_dir; DL_DIR=/media/huge_disk/yocto_downloads_dir;
source ./templates/cube/prepare-to-debug-build.sh

If BUILD_DIR will not be passed then ../build will be used. If DL_DIR will not be passed then ${BUILD_DIR}/../downloads will be used. Note that DL_DIR must be passed as absolute path. Please note that BUILD_DIR and DL_DIR must be passed without / at the end. Also pay your attention to put semicolon ; after BUILD_DIR and DL_DIRvariables if passed. For release build do the same things with ./prepare-to-release-build.sh script.

You can now run

MACHINE=<machine> bitbake -k <target>

For example:

MACHINE=cube-d TARGET_IMAGE_NAME=cube-dev-image bitbake -k cube-dev-image

If you build atmel-qt5-demo-image then you can create UBI partition with all volumes. As the UBI partition contains swupdate-image then you need to build the swupdate-image first:

MACHINE=<machine> bitbake -k swupdate-image

For example:

MACHINE=cube-d bitbake -k swupdate-image

Then to build atmel-qt5-demo-image and the final UBI partition just run the following command after you have built swupdate-image:

MACHINE=<machine> UBI_CREATE_PARTITION=yes bitbake -k atmel-qt5-demo-image

Release build

cd ~/git/aqc_embedded/yocto-atocha/atocha/
BUILD_DIR=../my_build_dir; DL_DIR=/media/huge_disk/yocto_downloads_dir;
source ./templates/cube/prepare-to-release-build.sh

Build artifacts

You can find build artifacts such as images using the following path:

$BUILD_DIR/tmp/deploy/images/$MACHINE/