summaryrefslogtreecommitdiffstats
path: root/cmake/cmake.d/04-build_options.cmake
AgeCommit message (Collapse)AuthorFilesLines
2017-08-16Reorganization between variables/build optionsRomain Forlot1-135/+0
Move compilation/link option to build options and all custom variables stuff in variable file. Make build options as first file to be included then all custom stuff. Change-Id: I530268574745edcc414e29cac59eb542954d73cc Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-08-10Fix: wrong link libraries dependencies var nameRomain Forlot1-2/+2
Change-Id: Idbdb781c0cb7ab9a6df4b821868587bfaa8e3c2f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-08-10Change compilation flags setup.Romain Forlot1-23/+36
Use CMAKE cache variables other than defaults ones to don't be in conflict and iterates over them with add_compile_options command Change-Id: I5e62ab1a340aca15eafeb687998c06e13a571357 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-08-08No optimization in DEBUG build configurationRomain Forlot1-1/+0
Optimization complicate debugging. Change-Id: Ib000c36fd599b544ef96be9de35527baecf022e3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-26Fix logic bug in addition of -DKERNEL_MINIMAL_VERSIONJan-Simon Möller1-1/+2
-DKERNEL_MINIMAL_VERSION_OK was always set. Move it into else case. Change-Id: Icc7e0982584bce6134611a7724e9d1ef36602360 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2017-07-252 Kernel checks available (warning or mandatory)Romain Forlot1-17/+13
Use 2 differents checks, one specify a mandatory kernel version and the other will output a warning and position a preprocessing variable that can be used in the code to exclude portions of code that use kernel features not available under a certain version. Change-Id: Ifc6848df1a1a448094f5312ea23e6d4837e8ef14 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-25Change compile flag and clearer to readRomain Forlot1-8/+9
Use -O0 with DEBUG instead of -0g Change-Id: I100e2188b34f3506d400379808ce875a4817be8d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-18-pg flags belongs to profiling more than debugRomain Forlot1-1/+1
Change-Id: Iab550cc5653c7ef1094a8960aca9ca64f1aee1a4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-06Add some reminderRomain Forlot1-0/+1
Change-Id: I218b746a622cc0705be631292fc9e0c6154538eb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-06Fix: Yocto cross compile flag same the last commitRomain Forlot1-9/+14
Change-Id: Id39653e23fddedd3f48a64d1d9badd6c7a1ef894 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-05Changes build flags to be more accurateRomain Forlot1-8/+7
Change-Id: I1139845c4d103935c75dbd24ab6a4c38d121bdea Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-29Fix: Kernel detection under Yocto build envRomain Forlot1-0/+2
Change-Id: I2b21a6c2b5c812736ab3e7a480cbaa3f547819fc Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-28Move variable definition to the right place.Romain Forlot1-3/+0
Change-Id: I36c0ff6d5b65b5da1258bb9807a5476cba2e4280 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-28change path etc/config.cmake to conf.d/cmake/config.cmakeRonan Le Martret1-1/+1
Change-Id: I98d51ce911c51ced28760c53420ffdf474fe48f1 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2017-06-27Recursive include cmake file systemn home, projectRomain Forlot1-0/+121
Can now include any cmake file named with the template name [0-9][0-9]-*.cmake Change-Id: If6caf4e254691bb7b9b0e4e0b7adf9f19560ff25 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>