carl9170 firmware build: mkdir include/generated when not present
authorChristian Lamparter <chunkeey@googlemail.com>
Wed, 30 Mar 2011 11:41:21 +0000 (13:41 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Wed, 30 Mar 2011 11:41:21 +0000 (13:41 +0200)
Quote from Marius L. Meyer:
I discovered what the problem was. The directory include/generated does not
exist and does not get created anywhere in the process. So when
configure/conf tries to rename .tmpconfig.h to include/generated/autoconf.h,
it fails. The problem is solved by simply creating the directory before
running autogen.sh.

Reported-by: Marius Ladegaard Meyer
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
CMakeLists.txt
autogen.sh

index c017bbbdbb1d264e6b1730f2b287e1ae3cab24ea..51d6265cc9ae48d0acb3ad3fe3f946021acd3cae 100644 (file)
@@ -7,6 +7,8 @@ project(carl9170)
 
 include("config.cmake")
 
+file(MAKE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/generated")
+
 add_subdirectory(carlfw)
 
 if (CONFIG_CARL9170FW_BUILD_MINIBOOT)
index 56b8101642fa66c0b902bb9be30375bdda4a3f0f..8a47b51d57b4b8367e94089a65946c6cc368e466 100755 (executable)
@@ -5,9 +5,9 @@ set -e
 case "$1" in
        config)
                echo "Configuring..."
+               cmake .
                make -C config
                config/conf Kconfig
-               cmake .
        ;;
 
        compile)