carl9170 firmware build: automatically apply miniboot.fw
authorChristian Lamparter <chunkeey@googlemail.com>
Mon, 15 Nov 2010 19:27:08 +0000 (20:27 +0100)
committerChristian Lamparter <chunkeey@googlemail.com>
Mon, 15 Nov 2010 19:28:27 +0000 (20:28 +0100)
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
autogen.sh

index e530fb1f810d1022032178198d80d270dcb7f51d..d61418c7999d10453f4c91c7adb382e6931f84f3 100755 (executable)
@@ -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
+                       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
        ;;