Fix post build

This commit is contained in:
jbnadal
2018-04-03 15:09:38 +02:00
parent d8b5d21001
commit 0d7b381b39
3 changed files with 75 additions and 85 deletions

View File

@@ -0,0 +1,22 @@
#!/bin/bash
# Catch Postbuild Error
function error {
echo "Postbuild Failed."
exit 1;
}
set -e
trap error ERR
echo "==> POSTBUILD:"
echo "BR_STAGING: ${BR_STAGING}"
echo "BR_PROJECT: ${BR_PROJECT}"
# Copy the overlay of the target.
if [ -d ${PROJECT}/ovl ]; then
mkdir -p ${BR_STAGING}/buildroot/staging/usr/local/
cp -a ${BR_BOARD}/ovl/* ${BR_STAGING}/buildroot/staging/
fi