carl9170 firmware: update build system to accommodate for new cmake config
[carl9170fw.git] / autogen.sh
index 8a47b51d57b4b8367e94089a65946c6cc368e466..873fb7490c17739a1d58ad8703a5670cd6011e6c 100755 (executable)
@@ -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)