summaryrefslogtreecommitdiffstats
path: root/carl9170fw/autogen.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:26:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:26:09 +0000
commit39a0d9019076a29a57a38a817b1830aef0708c11 (patch)
treed839d866a9986b99e90cd600f6874fae2f712be9 /carl9170fw/autogen.sh
parentInitial commit. (diff)
downloadfirmware-nonfree-39a0d9019076a29a57a38a817b1830aef0708c11.tar.xz
firmware-nonfree-39a0d9019076a29a57a38a817b1830aef0708c11.zip
Adding upstream version 20230210.upstream/20230210upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'carl9170fw/autogen.sh')
-rwxr-xr-xcarl9170fw/autogen.sh47
1 files changed, 47 insertions, 0 deletions
diff --git a/carl9170fw/autogen.sh b/carl9170fw/autogen.sh
new file mode 100755
index 0000000..6843f19
--- /dev/null
+++ b/carl9170fw/autogen.sh
@@ -0,0 +1,47 @@
+#!/bin/bash
+
+set -e
+
+case "$1" in
+ config)
+ echo "Configuring..."
+ pushd config
+ cmake .
+ make
+ popd
+ config/conf Kconfig
+ cmake .
+ ;;
+
+ compile)
+ echo "Compile time..."
+ make
+ ;;
+
+ install)
+ if [ ! -e .config ]; then
+ exit 1
+ fi
+
+ . ./.config
+ make
+
+ echo -n "Installing firmware..."
+ if [ "$CONFIG_CARL9170FW_BUILD_TOOLS" = "y" ] &&
+ [ "$CONFIG_CARL9170FW_BUILD_MINIBOOT" = "y" ]; then
+ echo -n "Apply miniboot..."
+ tools/src/miniboot a carlfw/carl9170.fw minifw/miniboot.fw
+ fi
+
+ install -m 644 carlfw/carl9170.fw \
+ ../carl9170-$CONFIG_CARL9170FW_RELEASE_VERSION.fw
+ echo "done."
+ ;;
+
+ *)
+ $0 config
+ $0 compile
+ ;;
+
+
+esac