X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=autogen.sh;h=d5b796682524d7acd6ca8e568fa76da2fdcd97fd;hb=83e3f194f0fbf10f4d1bf325e73ec7dbb179a130;hp=8a47b51d57b4b8367e94089a65946c6cc368e466;hpb=188f2a6ac8f0b9e497d25a9b7c136de556e098a6;p=carl9170fw.git diff --git a/autogen.sh b/autogen.sh index 8a47b51..d5b7966 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,19 +1,21 @@ -#!/bin/sh +#!/bin/bash set -e case "$1" in config) echo "Configuring..." + pushd config cmake . - make -C config + make + popd config/conf Kconfig + cmake . ;; compile) echo "Compile time..." make - ;; install) @@ -30,7 +32,8 @@ case "$1" in tools/src/miniboot a carlfw/carl9170.fw minifw/miniboot.fw fi - sudo install carlfw/carl9170.fw /lib/firmware/carl9170-$CONFIG_CARL9170FW_RELEASE_VERSION.fw + sudo install -m 644 carlfw/carl9170.fw \ + /lib/firmware/carl9170-$CONFIG_CARL9170FW_RELEASE_VERSION.fw echo "done." ;;