summaryrefslogtreecommitdiffstats
path: root/carl9170fw/autogen.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 08:09:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 08:09:22 +0000
commit6b4d032d4964caaa85be4ba8f3a7874afbf958cc (patch)
treea9846103274b39705a7e8be9fc28c006c18094b1 /carl9170fw/autogen.sh
parentInitial commit. (diff)
downloadfirmware-nonfree-6b4d032d4964caaa85be4ba8f3a7874afbf958cc.tar.xz
firmware-nonfree-6b4d032d4964caaa85be4ba8f3a7874afbf958cc.zip
Adding upstream version 20230625.upstream/20230625
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