carl9170: Add checksum during installation, as preferred by the driver
[carl9170fw.git] / autogen.sh
index d5b796682524d7acd6ca8e568fa76da2fdcd97fd..ef38cabe0233736e412ff7260ef8e73873f795ea 100755 (executable)
@@ -24,12 +24,18 @@ case "$1" in
                fi
 
                . ./.config
+               make
 
                echo -n "Installing firmware..."
-               if [ "$CONFIG_CARL9170FW_BUILD_TOOLS" = "y" ] &&
-                  [ "$CONFIG_CARL9170FW_BUILD_MINIBOOT" = "y" ]; then
+               if [ "$CONFIG_CARL9170FW_BUILD_TOOLS" = "y" ]; then
+
+               if [ "$CONFIG_CARL9170FW_BUILD_MINIBOOT" = "y" ]; then
                        echo -n "Apply miniboot..."
+                       # also adds checksum
                        tools/src/miniboot a carlfw/carl9170.fw minifw/miniboot.fw
+               else
+                       echo -n "Add checksum..."
+                       tools/src/checksum carlfw/carl9170.fw
                fi
 
                sudo install -m 644 carlfw/carl9170.fw \