carl9170 firmware: update build system to accommodate for new cmake config
[carl9170fw.git] / autogen.sh
index 56b8101642fa66c0b902bb9be30375bdda4a3f0f..873fb7490c17739a1d58ad8703a5670cd6011e6c 100755 (executable)
@@ -1,11 +1,14 @@
-#!/bin/sh
+#!/bin/bash
 
 set -e
 
 case "$1" in
        config)
                echo "Configuring..."
-               make -C config
+               pushd config
+               cmake .
+               make
+               popd
                config/conf Kconfig
                cmake .
        ;;
@@ -13,7 +16,6 @@ case "$1" in
        compile)
                echo "Compile time..."
                make
-
        ;;
 
        install)