Verified Commit 90e24900 authored by Michal Hrusecky's avatar Michal Hrusecky 🦎

compile_fw: Sign packages if there is a key

parent bc0a75ae
......@@ -34,13 +34,18 @@ fi
cat configs/common configs/$TARGET_BOARD | sed -e "s|@BOARD@|$TARGET_BOARD|" -e "s|@BRANCH@|$PKG_BRANCH|" > .config
[ -n "$BUILD_ALL" ] && echo "CONFIG_ALL=y" >> .config && echo "CONFIG_SDK=y" >> .config
[ -n "$USE_CCACHE" ] && echo "CONFIG_CCACHE=y" >> .config
KEY=""
if [ -f "$HOME"/mime.key ]; then
echo "CONFIG_SIGNED_PACKAGES=y" >> .config
KEY="BUILD_KEY=$HOME/mime.key"
fi
make defconfig
if [ -d .git ] ; then
git log -n1 --format='%H' >files/etc/git-version
fi
make clean
[ -z "$BUILD_ALL" ] || make dirclean
make "$@"
make "$@" $KEY
[ \! -d ./logs ] || mv ./logs ./logs-nand
if [ "$TARGET_BOARD" = turris ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment