diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 08:09:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 08:09:22 +0000 |
commit | 6b4d032d4964caaa85be4ba8f3a7874afbf958cc (patch) | |
tree | a9846103274b39705a7e8be9fc28c006c18094b1 /carl9170fw/autogen.sh | |
parent | Initial commit. (diff) | |
download | firmware-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-x | carl9170fw/autogen.sh | 47 |
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 |