carl9170 firmware: checkpatch fixes
[carl9170fw.git] / autogen.sh
1 #!/bin/sh
2
3 set -e
4
5 case "$1" in
6         config)
7                 echo "Configuring..."
8                 make -C config
9                 config/conf Kconfig
10                 cmake .
11         ;;
12
13         compile)
14                 echo "Compile time..."
15                 make
16
17         ;;
18
19         install)
20                 if [ ! -e .config ]; then
21                         exit 1
22                 fi
23
24                 . ./.config
25
26
27                 if [ "$CONFIG_CARL9170FW_MAKE_RELEASE" = "y" ]; then
28                         echo "Installing firmware..."
29                         tmpfwfile=`mktemp`
30                         cat carlfw/carl9170.fw carlfw/carl9170.dsc > $tmpfwfile
31                         install $tmpfwfile /lib/firmware/carl9170-$CONFIG_CARL9170FW_RELEASE_VERSION.fw
32                         rm $tmpfwfile
33                 fi
34         ;;
35
36         *)
37                 $0 config
38                 $0 compile
39         ;;
40
41
42 esac