Skip to content

Instantly share code, notes, and snippets.

@kergoth
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kergoth/3d73977975b17ea272ac to your computer and use it in GitHub Desktop.
Save kergoth/3d73977975b17ea272ac to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
rm -rf build.test
echo >&2 "Configuring build environment"
. ./meta-mentor/setup-environment -l qt5-mel -b build.test mx6q
cat >conf/site.conf <<END
SCONF_VERSION = "1"
EXTERNAL_TOOLCHAIN = "/scratch/sourcery-g++/2014.05/\${TARGET_ARCH}"
ACCEPT_FSL_EULA_mx6 = "1"
END
echo >&2 "Extracting release image name"
eval `bitbake -e | grep RELEASE_IMAGE=`
echo >&2 "Populating the sstate cache"
bitbake $RELEASE_IMAGE
rm -rf tmp # or change TMPDIR via auto.conf
echo >&2 "Building from the sstate cache we just populated"
bitbake $RELEASE_IMAGE
echo >&2 "Paring down the sstate cache using the from-sstate stamps"
sstate-cache-management.sh --yes --cache-dir=cached-binaries --stamps-dir=tmp/stamps
echo >&2 "Archiving release artifacts"
bitbake archive-release
echo >&2 Build completed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment