X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=autogen.sh;h=d61418c7999d10453f4c91c7adb382e6931f84f3;hb=007045ac7c9822009b704b856e2f92934cca2401;hp=43dbce6e9bc21a32d2f8639045a4ed1177a2a62f;hpb=e72388a0aa23da8bc8e24a0cbe9d523c5a9ce294;p=carl9170fw.git diff --git a/autogen.sh b/autogen.sh index 43dbce6..d61418c 100755 --- a/autogen.sh +++ b/autogen.sh @@ -25,11 +25,18 @@ case "$1" in if [ "$CONFIG_CARL9170FW_MAKE_RELEASE" = "y" ]; then - echo "Installing firmware..." + echo -n "Installing firmware..." tmpfwfile=`mktemp` cat carlfw/carl9170.fw carlfw/carl9170.dsc > $tmpfwfile - install $tmpfwfile /lib/firmware/carl9170-$CONFIG_CARL9170FW_RELEASE_VERSION.fw + if [ "$CONFIG_CARL9170FW_BUILD_TOOLS" = "y" ] && + [ "$CONFIG_CARL9170FW_BUILD_MINIBOOT" = "y" ]; then + echo -n "Apply miniboot..." + tools/src/miniboot a $tmpfwfile minifw/miniboot.fw + fi + + sudo install $tmpfwfile /lib/firmware/carl9170-$CONFIG_CARL9170FW_RELEASE_VERSION.fw rm $tmpfwfile + echo "done." fi ;;