release.sh
481 Bytes
#!/bin/sh
git clean -x -f -d .
git checkout -- .
git pull
TAG=`git log -1 --pretty=format:%h`
IMAGE_DIR=`realpath $(pwd)/images_${TAG}`
echo "=============================================="
echo " Make release package"
echo " IMAGE_DIR: ${IMAGE_DIR}"
echo "=============================================="
sed -i "/^IMG_PATH/c\IMG_PATH=..\/images_${TAG}\/" ./scripts/sd_mk.sh
CP_DIR=${IMAGE_DIR} ./make.sh kernel
md5sum $(ls images_*/uImage) >> md5sumlist
md5sum -c md5sumlist