aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2020-02-28 16:54:07 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2020-02-28 16:54:07 +0100
commite35efd6accdc51c4c66a705f79f40f899e12b132 (patch)
tree120bd188e8251e98d458f83848279b0d361b7c07
parent5a51218125877ba06d000b97a2ce57ec66206fd0 (diff)
config: Fix build failure missing header filesandbox/claneys/SPEC-3204
This commit add a sysroot variable in front of the path to header file which the presence is tested. Then we always point to the correct kernel headers path depending on the build environment Change-Id: Ifb59a897d36c74e6f84897d0bf3db3eb75609702 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--conf.d/cmake/config.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake
index cedb5e3f..ed50e833 100644
--- a/conf.d/cmake/config.cmake
+++ b/conf.d/cmake/config.cmake
@@ -44,7 +44,7 @@ set(BUILD_TYPE "DEBUG" CACHE STRING "Default Build variant chosen. (Overwritten
# Need module in kernel
# --------------
-execute_process(COMMAND ls /usr/include/linux/can/j1939.h RESULT_VARIABLE result OUTPUT_QUIET ERROR_QUIET)
+execute_process(COMMAND ls ${BUILD_ENV_SYSROOT}/usr/include/linux/can/j1939.h RESULT_VARIABLE result OUTPUT_QUIET ERROR_QUIET)
if(result)
message("Feature J1939 disabled")
@@ -62,7 +62,7 @@ endif()
# Need module in kernel
# --------------
-execute_process(COMMAND ls /usr/include/linux/can/isotp.h RESULT_VARIABLE result2 OUTPUT_QUIET ERROR_QUIET)
+execute_process(COMMAND ls ${BUILD_ENV_SYSROOT}/usr/include/linux/can/isotp.h RESULT_VARIABLE result2 OUTPUT_QUIET ERROR_QUIET)
if(result2)
message("Feature ISO TP disabled")