summaryrefslogtreecommitdiffstats
path: root/cmake
AgeCommit message (Collapse)AuthorFilesLines
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 Forlot2-25/+47
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-09Generate .h from OpenAPI json description fileRomain Forlot1-1/+14
Use a new label BINDINGV2 that create a new target ${TARGET}_GENSKEL before build ${TARGET}. Change-Id: I358e65f0340ac051217cb19a4554f6165af061df 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-08-08Format and Make CMake dependencies cleaner.Romain Forlot1-10/+16
Use CMake recommended way to specifies target dependencies. As well add dependencies on needed files or directories in custom_command. Change-Id: I617e54a4c312336ea1cf306409456fbc55be7fa5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-31Fixed target-populate dependencies and update native-remote debugFulup Ar Foll2-2/+8
Change-Id: Ia041caa86dd57af48ae6ee53f26fb0be86f95e88 Signed-off-by: Fulup Ar Foll <fulup@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-25CommentRomain Forlot1-6/+6
Change-Id: I5a78f103c29c3535d332172ee0b0547de79cc193 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-252 Kernel checks available (warning or mandatory)Romain Forlot3-20/+39
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-21Project cmake file have precedence on home & sysRomain Forlot1-1/+1
Change-Id: Ied2c6e3c7f378b27a84229999b84dfc649a4e657 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-20Add possibility to customize option at link.Romain Forlot1-0/+4
Credit to Ronan Le Martret. Change-Id: I5ea24a275df6726f87ce5e87abbb2cfc6d029f28 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-19Fix: bad afb-daemon flag, disable auto answer 'no'Romain Forlot1-1/+3
Change-Id: I3ee63512433c869fdd809ee1b6571205cd07a4e1 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-10Fix: shared library files not found by gdbRomain Forlot3-3/+15
Old behavior assume a PATH that do not exists using XDS-server this patch intends to make a list of bindings using a regex, as GDB interprets the argument. Change-Id: I67caa1853be67813e8de02cdbb34f107f1e1676c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-10FormatRomain Forlot1-2/+2
Change-Id: Ib31c28da19c766c43fcbf9002d0aa1e9ecb370ac Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-10Use recommended way to specify target dependenciesRomain Forlot1-11/+7
Change-Id: I6a8e5d435a0540522de555f521d24aa4de21050d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-09Fix invalid widget dir in config sampleSebastien Douheret1-1/+1
Change-Id: I6f26d49137bfc567eaae17eb06ad77ce645ee95d Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-07-07Fix: also avoid cleaning generated packaging filesRomain Forlot1-36/+11
Change-Id: I312e0743e8faf03ecfc5b43c77a9edaf9b40d937 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-07Fix: cleaning of autobuild script using make cleanRomain Forlot1-6/+10
Fake files output to avoid cleaning those files once generated. Doing that target always trigger and regenerate files. Change-Id: I514318e2f08b1db2bf4e75bd0f0bf15c09329907 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-07Fix: cleaning generated additionals filesRomain Forlot1-3/+2
Change-Id: I979b699e6ce090b354d6271c549111c2bd44cd2d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-07Add configured file to files to clean up with makeRomain Forlot1-0/+1
Change-Id: Ibef0a4628bf3fe0b830f19fc8aa2f3e5d4b1ff19 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-07Fix: wrong extension of configured filesRomain Forlot1-0/+1
Remove the ".in" template extension from filenames which have to be correctly named. Change-Id: I8128f5fa64d5fa914a717c18fbba14fc43de4935 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-05Fix Yocto can't compile project using app-templatesRomain Forlot1-8/+5
Change-Id: Id5a9c1ffa6f24278f16fceeed0ba7e46ed49b37d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-05Fix: wrong macro nameRomain Forlot1-2/+2
Change-Id: Ia0af4453536509606f55a9557eff73a4d44e56ec 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-07-04Add a CMakeLists.txt file to be used as root fileRomain Forlot1-0/+21
Change-Id: I62900402fe9d3ef0ff4f4f19793cb08a67b116dd Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-04Change location for custom CMake files and scriptsRomain Forlot1-2/+5
Use one additionnal level to put all app-templates related files in one directory. Change-Id: Iec297d0070d8d47a4ce9e351bedb3ec45f691af4 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-29Adding detection of a Yocto build environmentRomain Forlot2-7/+5
Change-Id: Id6a94153ada5b98a4a6d564859da8617ac636704 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh> # Conflicts: # cmake/cmake.d/01-variables.cmake
2017-06-29Fix deb packaging namingRonan Le Martret1-1/+3
Change-Id: I8355dee83379c6c24e02104913fad5dcdebd95f0 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2017-06-29Fix: idem...Romain Forlot1-2/+2
Change-Id: Iacc2ecf8dafce07fa9b8e1a3b123acf85417d650 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-29Fix: Debian things triggered even when use the SDKRomain Forlot2-3/+3
USe variable reference not its value to test if defined Change-Id: If59be00e2666d9e66f386fe0ca2cf39b386d0197 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-28Fix: wrong variable expands at configure_file timeRomain Forlot1-1/+1
Change-Id: Idcaae73f3e186a9646407ed61df3f1b7da6bf782 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-28Comments and README updateRomain Forlot1-0/+4
Change-Id: I5b790459cd17e5cebbc415df68f040a9863215a4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-28Use variable to handle autobuild target directoryRomain Forlot2-2/+6
Change-Id: If544267154111148b4e279ad6937c60195b20e26 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-28Fix: Debian detection, only valid in native envRomain Forlot2-56/+59
Generate packaging files for Debian isn't available from SDK. Only native and configured environment is supported about now. Change-Id: I70f6b19a4a04ecd7a902ef9d6f2300f4f98209a5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh> # Conflicts: # cmake/cmake.d/01-variables.cmake
2017-06-28Move variable definition to the right place.Romain Forlot2-3/+3
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 Martret5-9/+9
Change-Id: I98d51ce911c51ced28760c53420ffdf474fe48f1 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2017-06-28Custom targets depends on input filesRomain Forlot1-5/+14
Change-Id: I315df31ac299cf43c9bf7c5d7ee0043f65c5946c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-28Fix: multiline COMMAND not supported...Romain Forlot1-16/+8
Change-Id: Ic5bedd44fc032c07952b46b6c773c986fd641ad9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-28templated autobuild script generation.Romain Forlot1-6/+16
Change-Id: Ie7e411f30a30e073570c546aeec6ee05972f8e2a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-27Adding autobuild generation targetRomain Forlot1-1/+18
Change-Id: Idb231d005abbca3eb0a779320ab2382f6ff81108 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-27Back to previous populate http and data behaviorRomain Forlot1-4/+2
Change-Id: I3ecd7f4175925ee48a394ea3bfc233bb016098be Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-27Only 1 include in root CMake and no macro to callRomain Forlot2-14/+18
Added a variable to specify pattern to search CMakeLists.txt over directories and include common.cmake from config.cmake file. Now it isn't needed to call any macro to configure the project. Change-Id: I0c0eecc684db4f8ee1055d84205ad457a6fde179 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-27Correct precedence over included filesRomain Forlot1-1/+1
Change-Id: Ifc6f2bf72ea5bc9f497745cc65041f047e8b86bd Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-27Recurse over template files to configure them.Romain Forlot2-9/+19
Change-Id: I4e18946ac986a0c128b1d6f00185c0fd2200f643 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-06-27Recursive include cmake file systemn home, projectRomain Forlot5-100/+132
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>