From 67e3b023a0dce39bb6849040a693cca2a65d09c7 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Fri, 28 Oct 2016 13:58:04 -0500 Subject: [PATCH] add a basic build script for testing This script can be extended in the future but it uses the containerize script to ensure we run inside of a working build environment. This script can be extended to build additional targets for testing. Signed-off-by: Doug Goldstein --- scripts/build.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 scripts/build.sh diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..7c40381 --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Grab the MACHINE from the environment; otherwise, set it to a sane default +export MACHINE="${MACHINE-qemux86}" + +# What to build +BUILD_TARGETS="\ + rustfmt \ + " + +die() { + echo "$*" >&2 + exit 1 +} + +rm -f build/conf/bblayers.conf || die "failed to nuke bblayers.conf" +rm -f build/conf/local.conf || die "failed to nuke local.conf" + +./scripts/containerize.sh bitbake ${BUILD_TARGETS} || die "failed to build"