From 188f2a6ac8f0b9e497d25a9b7c136de556e098a6 Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Wed, 30 Mar 2011 13:41:21 +0200 Subject: [PATCH] carl9170 firmware build: mkdir include/generated when not present 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 --- CMakeLists.txt | 2 ++ autogen.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c017bbb..51d6265 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/autogen.sh b/autogen.sh index 56b8101..8a47b51 100755 --- a/autogen.sh +++ b/autogen.sh @@ -5,9 +5,9 @@ set -e case "$1" in config) echo "Configuring..." + cmake . make -C config config/conf Kconfig - cmake . ;; compile) -- 2.31.1