Add new Skeleton.

This commit is contained in:
2016-11-16 22:04:31 +01:00
parent 05de7d6c04
commit 317c040ea8
46 changed files with 16694 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
#!/bin/bash
MKIMAGE=$HOST_DIR/usr/bin/mkimage
GENEXT2FS=$HOST_DIR/usr/bin/genext2fs
# Catch post-build Error
function error {
echo "post-build Failed."
exit 1;
}
set -e
trap error ERR
echo "==> Mozart3 post-build:"
echo "AW_STAGING: ${AW_STAGING}"
echo "AW_PROJECT: " ${AW_PROJECT}
# Generate uboot scripts
for cmd_file in `ls ${AW_PROJECT}/uboot/*.cmd`
do
echo "uboot script: $cmd_file"
# Get file name without extention.
name=`echo "$(basename ${cmd_file})" | cut -d'.' -f1`
echo "cmd: $MKIMAGE -C none -A arm -T script -d ${cmd_file} ${BINARIES_DIR}/${name}.scr"
$MKIMAGE -C none -A arm -T script -d ${cmd_file} ${BINARIES_DIR}/${name}.scr
done
# Copy the overlay of the target.
if [ -d ${PROJECT}/ovl ]; then
mkdir -p ${AW_STAGING}/buildroot/target/usr/local/
cp -a ${AW_PROJECT}/ovl/* ${AW_STAGING}/buildroot/target/
fi
# Finaly apply post build script of the target if the script exist.
if [ -e ${PROJECT}/post-build.sh ]; then
${PROJECT}/post-build.sh
fi

View File

@@ -0,0 +1,34 @@
#!/bin/bash
GENIMAGE=$HOST_DIR/usr/bin/genimage
# Catch post-image Error
function error {
echo "post-image Failed."
exit 1;
}
set -e
trap error ERR
echo "==> Mozart3 post-image:"
if [ -e ${PROJECT}/configs/genimage.config ]; then
echo "We will generate sdcard image."
rm -rf ${BUILD_DIR}/genimage.tmp
echo ">> \
$GENIMAGE \
--rootpath "${TARGET_DIR}" \
--tmppath "${BUILD_DIR}/genimage.tmp" \
--inputpath "${BINARIES_DIR}" \
--outputpath "${BINARIES_DIR}" \
--config ${PROJECT}/configs/genimage.config"
$GENIMAGE \
--rootpath "${TARGET_DIR}" \
--tmppath "${BUILD_DIR}/genimage.tmp" \
--inputpath "${BINARIES_DIR}" \
--outputpath "${BINARIES_DIR}" \
--config ${PROJECT}/configs/genimage.config
fi