Fix post build
This commit is contained in:
22
projects/x86_64_domo/post-build.sh
Executable file
22
projects/x86_64_domo/post-build.sh
Executable 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
|
||||
Reference in New Issue
Block a user