carl9170: Add checksum during installation, as preferred by the driver
authorBen Hutchings <ben@decadent.org.uk>
Mon, 14 Jan 2013 11:21:38 +0000 (11:21 +0000)
committerChristian Lamparter <chunkeey@googlemail.com>
Mon, 14 Jan 2013 19:48:09 +0000 (20:48 +0100)
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
autogen.sh

index 729041e6e537656566a9b8035f5a3aee9a4bff51..ef38cabe0233736e412ff7260ef8e73873f795ea 100755 (executable)
@@ -27,10 +27,15 @@ case "$1" in
                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 \