Files
domo/projects/x86_64_domo/post-build.sh
2018-04-03 15:09:38 +02:00

23 lines
391 B
Bash
Executable File

#!/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