Last active
August 29, 2015 14:01
-
-
Save kergoth/3d73977975b17ea272ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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