Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.