]> git.proxmox.com Git - mirror_linux-firmware.git/blame - carl9170fw/autogen.sh
carl9170: Add checksum during installation, as preferred by the driver
[mirror_linux-firmware.git] / carl9170fw / autogen.sh
CommitLineData
32eb7c73
XVP
1#!/bin/bash
2
3set -e
4
5case "$1" in
6 config)
7 echo "Configuring..."
8 pushd config
9 cmake .
10 make
11 popd
12 config/conf Kconfig
13 cmake .
14 ;;
15
16 compile)
17 echo "Compile time..."
18 make
19 ;;
20
21 install)
22 if [ ! -e .config ]; then
23 exit 1
24 fi
25
26 . ./.config
27 make
28
29 echo -n "Installing firmware..."
30 if [ "$CONFIG_CARL9170FW_BUILD_TOOLS" = "y" ] &&
31 [ "$CONFIG_CARL9170FW_BUILD_MINIBOOT" = "y" ]; then
32 echo -n "Apply miniboot..."
33 tools/src/miniboot a carlfw/carl9170.fw minifw/miniboot.fw
27bfb9d8
BH
34 echo -n "Add checksum..."
35 tools/src/checksum carlfw/carl9170.fw
32eb7c73
XVP
36 fi
37
38 sudo install -m 644 carlfw/carl9170.fw \
39 /lib/firmware/carl9170-$CONFIG_CARL9170FW_RELEASE_VERSION.fw
40 echo "done."
41 ;;
42
43 *)
44 $0 config
45 $0 compile
46 ;;
47
48
49esac