]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/bash | |
2 | ||
3 | set -e | |
4 | ||
5 | case "$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 | |
34 | fi | |
35 | ||
36 | install -m 644 carlfw/carl9170.fw \ | |
37 | ../carl9170-$CONFIG_CARL9170FW_RELEASE_VERSION.fw | |
38 | echo "done." | |
39 | ;; | |
40 | ||
41 | *) | |
42 | $0 config | |
43 | $0 compile | |
44 | ;; | |
45 | ||
46 | ||
47 | esac |