apps/app-templates.git
15 months agoAdd gitreview file for Optimistic Octopus branch octopus
Jan-Simon Moeller [Wed, 1 Feb 2023 00:08:55 +0000 (01:08 +0100)]
Add gitreview file for Optimistic Octopus branch

Update the .gitreview file.

Bug-AGL: SPEC-4695
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I580cbcc63c495593bed4dbd3241152c8f31c598a

4 years agoUpdate docs with deprecated message 71/21771/1 halibut 10.91.0 10.92.0 10.93.0 11.91.0 11.92.0 12.90.0 12.90.1 12.91.0 12.92.0 12.93.0 13.93.0 7.99.2 7.99.3 8.0.0 8.0.1 8.0.2 8.0.3 8.0.4 8.0.5 8.0.6 8.99.1 8.99.2 8.99.3 8.99.4 8.99.5 9.99.1 9.99.2 9.99.3 9.99.4 halibut/7.99.2 halibut/7.99.3 halibut/8.0.0 halibut/8.0.1 halibut/8.0.2 halibut/8.0.3 halibut/8.0.4 halibut/8.0.5 halibut/8.0.6 halibut_7.99.2 halibut_7.99.3 halibut_8.0.0 halibut_8.0.1 halibut_8.0.2 halibut_8.0.3 halibut_8.0.4 halibut_8.0.5 halibut_8.0.6 icefish/8.99.1 icefish/8.99.2 icefish/8.99.3 icefish/8.99.4 icefish/8.99.5 icefish_8.99.1 icefish_8.99.2 icefish_8.99.3 icefish_8.99.4 icefish_8.99.5 jellyfish/9.99.1 jellyfish/9.99.2 jellyfish/9.99.3 jellyfish/9.99.4 jellyfish_9.99.1 jellyfish_9.99.2 jellyfish_9.99.3 jellyfish_9.99.4 koi/10.91.0 koi/10.92.0 koi/10.93.0 koi_10.91.0 koi_10.92.0 koi_10.93.0 lamprey/11.91.0 lamprey/11.92.0 lamprey_11.91.0 lamprey_11.92.0 marlin/12.90.0 marlin/12.90.1 marlin/12.91.0 marlin/12.92.0 marlin/12.93.0 marlin_12.90.0 marlin_12.90.1 marlin_12.91.0 marlin_12.92.0 marlin_12.93.0 needlefish/13.93.0 needlefish_13.93.0
Sebastien Douheret [Thu, 27 Jun 2019 15:55:48 +0000 (17:55 +0200)]
Update docs with deprecated message

Change-Id: I1e72c255b7714a08a0ec92d504db5d6662f1ae64
Bug-AGL: SPEC-2027
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoUse app-templates: Minor grammar fix and spacing updates. 86/20986/1 7.99.1 halibut/7.99.1 halibut_7.99.1
Scott Rifenbark [Wed, 10 Apr 2019 17:06:03 +0000 (10:06 -0700)]
Use app-templates: Minor grammar fix and spacing updates.

Change-Id: I1b9b96ba57454cc5d4c4c439cc9251bf8b01df70
Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
5 years agoSelect the test set to run 63/17363/2 6.99.1 6.99.2 6.99.3 6.99.4 7.90.0 guppy/6.99.1 guppy/6.99.2 guppy/6.99.3 guppy/6.99.4 guppy_6.99.1 guppy_6.99.2 guppy_6.99.3 guppy_6.99.4 halibut/7.90.0 halibut_7.90.0
Romain Forlot [Sat, 20 Oct 2018 00:12:18 +0000 (02:12 +0200)]
Select the test set to run

The widget launcher script has been modified to use the environment
variable VERBSELECTED and VERBARGS. Then you are able to select a test set
defined by the testVerb configuration section in your JSON configuration file.

You can also use the special argument {'lavaOutput': true} to enable specials
Lava markers on the output.

Change-Id: If677cbbc8cb6cf6eb1bdf9f76b83f5e7976dd5a5
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoAdd another mode to build a test widget. 89/17389/1
Romain Forlot [Tue, 23 Oct 2018 08:41:49 +0000 (10:41 +0200)]
Add another mode to build a test widget.

By default, the test widget is built using a cmake option, this commit adds
the ability to use makefile target to build it.

Change-Id: I09a42016c21466d4bbf0b34b5144c26fcda6133d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoAlways use wgt when talking about widget 11/17311/1
Romain Forlot [Fri, 19 Oct 2018 13:51:59 +0000 (15:51 +0200)]
Always use wgt when talking about widget

We already have a wgt directory so this just make use the same for
the test widget directory.

Change-Id: I2eb5c7a4faf17adb8f011b7e37ac98389340d41b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoMinor fixes 75/17275/2
Romain Forlot [Thu, 18 Oct 2018 08:23:02 +0000 (10:23 +0200)]
Minor fixes

- CMake module name has changed so the warning message needs to be updated
- Reset the shell color at the end of the warning message.
- Wrong variable used to add target's property
- Complete path to cmake script file, there is a difference between cmake module and
git submodule version

Change-Id: Ia730773cbefef485982da03dbf1281b29485ea51
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoImproved test widget launcher script 39/17239/3
Romain Forlot [Mon, 15 Oct 2018 16:14:29 +0000 (18:14 +0200)]
Improved test widget launcher script

Improved test widget launcher script which calls verb
synchronously and therefore we can correctly detect the end
of the test session and exit.

Bug-AGL: SPEC-1821

Change-Id: I76b777770403ad9afcc72faeeb50188f52fe1223
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoSet default link flags to the target property 37/17237/3
Romain Forlot [Mon, 15 Oct 2018 16:13:58 +0000 (18:13 +0200)]
Set default link flags to the target property

Set default link flags to the target property for binding target.

Bug-AGL: SPEC-1821

Change-Id: I76d85c56c34740240c1f7b2dac767d72637ec988
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoUse a custom test-config.xml file for test widget 35/17235/3
Romain Forlot [Mon, 15 Oct 2018 16:11:16 +0000 (18:11 +0200)]
Use a custom test-config.xml file for test widget

Bug-AGL: SPEC-1821

Change-Id: If664757a7dec8e43cd8f4776bab16d026e583752
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agocmake: coverage: disable compiler optimization for COVERAGE build 63/17163/1
Matt Ranostay [Thu, 11 Oct 2018 06:01:20 +0000 (14:01 +0800)]
cmake: coverage: disable compiler optimization for COVERAGE build

Switch to -O0 compile option to allow more accurate coverage reports
that function inlining and OOO execution can skew.

Bug-AGL: SPEC-1807
Change-Id: If3ea7e9fe931ac9087d4c4966d0b3ca77308eaf7
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
5 years agoAdding warning message to migrate on CMake module 01/16901/3
Romain Forlot [Wed, 3 Oct 2018 14:15:26 +0000 (16:15 +0200)]
Adding warning message to migrate on CMake module

Add a warning that no update will further be delivered and that the
developper should migrate to cmake module. With instructions on how to
do so.

Bugs-AGL: SPEC-1682

Change-Id: I0158b729f7cf1c9b3b7ab639f42bc52028d7835c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agocommon.cmake: fixed erroneous search path for os-release 83/16683/2 6.90.0 guppy/6.90.0 guppy_6.90.0
Thierry Bultel [Tue, 18 Sep 2018 11:39:04 +0000 (13:39 +0200)]
common.cmake: fixed erroneous search path for os-release

Change-Id: I20eb2c342e33d838b9f8c80b7ec93c32794b4eeb
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
5 years agoFix: missing gcov symbol in compiled binaries 33/16633/1
Romain Forlot [Fri, 14 Sep 2018 09:26:55 +0000 (11:26 +0200)]
Fix: missing gcov symbol in compiled binaries

Missing link option because of a wrong test against
CMAKE_BUILD_TYPE value.

Change-Id: I3b0a4cb090f4c53df8868a5f757a11f6046b3e3e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoapp-templates doc: Changed doc to fit new format. 15/16415/2 5.99.5 5.99.6 flounder/5.99.5 flounder/5.99.6 flounder_5.99.5 flounder_5.99.6
CorentinLGS [Thu, 30 Aug 2018 09:18:19 +0000 (11:18 +0200)]
app-templates doc: Changed doc to fit new format.

-Split book.json in 2.
-Deleted unwanted files.

Change-Id: Idaa2bc838917cade2b3ff1848e21415acae72aec
Signed-off-by: CorentinLGS <corentinlgs@gmail.com>
5 years agoUpdate Docs 99/16199/4
Romain Forlot [Tue, 21 Aug 2018 15:53:42 +0000 (17:53 +0200)]
Update Docs

Change-Id: If1c1e14233a765058a372fc25a88b21e8824f4d7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoFix: typo 59/16259/1 5.99.4 flounder/5.99.4 flounder_5.99.4
Romain Forlot [Wed, 22 Aug 2018 21:28:40 +0000 (23:28 +0200)]
Fix: typo

Change-Id: I3a27495d637960699d34e972aae2cd1655d6a6da
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoRollback about TEST build type 29/16129/1
Romain Forlot [Mon, 13 Aug 2018 12:42:49 +0000 (14:42 +0200)]
Rollback about TEST build type

This implies to much side effects over a complete AGL image
build. So it's better to not affect the CMAKE_BUILD_TYPE variable
to determine wether or not the test WGT file is generated.

Change-Id: I77e8bdb085d164a4dd387ac48c425c011840473b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoAdding a TEST build type 91/16091/2 5.99.3 flounder/5.99.3 flounder_5.99.3
Romain Forlot [Mon, 13 Aug 2018 08:27:31 +0000 (10:27 +0200)]
Adding a TEST build type

Change-Id: Id2a2ede0f01bfc48757904f43b01e52a1c8b110d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoChange default compilation options. 87/16087/3
Romain Forlot [Thu, 9 Aug 2018 09:51:05 +0000 (11:51 +0200)]
Change default compilation options.

This changes the default build type to RELEASE as it would
be built using Yocto. Debug build should be activated if needed
temporary as the other type: coverage and profiling.

Doing this you are able to detect compilation error that would happens
when building with Yocto and if you need to debug your program you only
need to recompile changing temporary the build type to DEBUG.

Bugs-AGL: SPEC-1644

Change-Id: I1823509a1a48415d3d440dd84d1e43ef48736ebe
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoTest widget only if there are test materials 89/16089/3
Romain Forlot [Fri, 10 Aug 2018 10:08:53 +0000 (12:08 +0200)]
Test widget only if there are test materials

This checks if there is a target with a TEST LABELS property which
would indicate that there is something to pack in the test widget,
else it would generate an empty and useless test widget.

Change-Id: If2a3eb32762f5d62877ea19faed70d4b6e68a0a0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoHandles more test LABELS. 81/16081/2
Romain Forlot [Wed, 8 Aug 2018 15:19:26 +0000 (17:19 +0200)]
Handles more test LABELS.

You may need everything except for a binding since the
afb-test binding offers the possibility to emulate other
Apis. Or you can rely on platform binding if needed but
developping bindings only used for testing purpose isn't
a good solution and should be avoided.

Change-Id: I39e1a43bbe4d73b36f0155913125f0df837d2ec5
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoMissing flag for COVERAGE build type 63/16063/1
Romain Forlot [Wed, 8 Aug 2018 08:24:35 +0000 (10:24 +0200)]
Missing flag for COVERAGE build type

Change-Id: Icebe1850e5949c277722ac83958f73c0eed493c7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoCreate a test widget 69/15869/5
Romain Forlot [Tue, 31 Jul 2018 13:41:41 +0000 (15:41 +0200)]
Create a test widget

Create a test widget in addition of the normal one when you use
any build type except of RELEASE. This widget will only
provide the test files (configuration + test + fixtures ...).
It joins the test framework binding to your binding or app then
you only have to access to your defined test API and launch the
tests.

The entry point is a bash script which is in charge to launch all
tests it finds.

Change-Id: I8f4a670f17fd4e4319c53a861074fb5e10b63aad
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoFix: interpreted '&' character 43/15743/3
Romain Forlot [Wed, 25 Jul 2018 13:32:29 +0000 (15:32 +0200)]
Fix: interpreted '&' character

Use of '&' in CLOSING_MESSAGE is incorrectly interpreted by cmake
which tries to launch the afb-daemon when using the autobuild script.
This is not a problem since the build is finished but that produces
unwanted warning messages.

Change-Id: I910538c80539bbe6ec63cf42a7642506821bb33b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoMore accurate comment about widget template file. 73/15573/3
Romain Forlot [Sun, 22 Jul 2018 09:43:58 +0000 (11:43 +0200)]
More accurate comment about widget template file.

Also remove an unused variable.

Change-Id: Idd6b67b5d302dd489dd15797355507a08912206d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoAlign sample on actual default compile options 43/15443/2 5.99.2 flounder/5.99.2 flounder_5.99.2
Romain Forlot [Wed, 18 Jul 2018 12:29:16 +0000 (14:29 +0200)]
Align sample on actual default compile options

Change-Id: Ie46fe389c22dabb4bc7081be4dcafb2fc37a6951
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoAdd support to binding version 3. 41/15441/2
Romain Forlot [Wed, 18 Jul 2018 12:22:56 +0000 (14:22 +0200)]
Add support to binding version 3.

Add a new LABELS "BINDINGV3" to handle the v3 case. This implies
the same things than for v2 but generates the API definition using
the new version capabilities through afb-genskel tool.

Change-Id: Ib7b60f3f79c3634f27c90b2f9bf4aaf5b3ef2fcb
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoWarning if not using wgtpkg-pack to make a widget 83/15383/2
Romain Forlot [Fri, 13 Jul 2018 14:30:56 +0000 (16:30 +0200)]
Warning if not using wgtpkg-pack to make a widget

Also use zip host command instead of embedded CMake zip command
which could not be unzipped on a board. Using the host zip command
it allows to build the wgt file as a zip archive but it can't be
installed using afm-util like a real widget file but could still be
unzipped manually.

Change-Id: I5e13c27164294d99de1918df8d84cb04fc439317
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoRework CMAKE_INSTALL_PREFIX and INSTALL_PREFIX var 27/15227/2
Sebastien Douheret [Tue, 10 Jul 2018 17:28:17 +0000 (19:28 +0200)]
Rework CMAKE_INSTALL_PREFIX and INSTALL_PREFIX var

Following change ID 1ec753146f, CMAKE_INSTALL_PREFIX has been
replaced by INSTALL_PREFIX. So differ CMAKE_PREFIX_PATH and
LD_LIBRARY_PATH setting in 03-macros in order to be sure that
CMAKE_INSTALL_PREFIX has been set correctly.

Change-Id: I6effcaaab658fd24c929cd4a30fa38ad8f4df145
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoBe able to overwrite BUILD_TYPE using CLI 85/15085/3 sandbox/sdesneux/4a_master
Romain Forlot [Fri, 6 Jul 2018 14:10:33 +0000 (16:10 +0200)]
Be able to overwrite BUILD_TYPE using CLI

If not defined using CLI CMake set the variable CMAKE_BUILD_TYPE
to an empty value. As it is a CACHE variable it can't be
overwritten except if you force it. This fix setting this variable
the first defined value wins:

CLI > Config.cmake > Default value (DEBUG)

Change-Id: I7ff3c9063febf71b898fa7f19058ce2fb25fae01
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoUse CACHE variable for other common CMAKE variable 35/15135/3
Romain Forlot [Mon, 9 Jul 2018 11:57:28 +0000 (13:57 +0200)]
Use CACHE variable for other common CMAKE variable

This is done to be able to overwite from CLI those variables.
CMAKE_INSTALL_PREFIX is a special case since it is set by default
to '/usr/local' at CMake invocation. So overwriting by CLI is fine
but set it up using config.cmake file not. So since CMake v3.7 there
is a variable to know if this variable has been set by default or not.

Change-Id: I60c5161fa9a4134d100ef709d0966d599871ad44
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoFix:: wrong wgt using RELEASE BUILD TYPE 65/15065/2
Romain Forlot [Fri, 6 Jul 2018 08:40:37 +0000 (10:40 +0200)]
Fix:: wrong wgt using RELEASE BUILD TYPE

The wgt filename is suffixed with the build type
except for RELEASE build type. In this case, the name
wasn't set. This fix this issue.

Change-Id: I5a0be07c5f380676ba9ecfdd1b51ebab95aca3dd
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoFix: SYSROOT location detection... Wrong test. 33/15033/2
Romain Forlot [Thu, 5 Jul 2018 14:48:19 +0000 (16:48 +0200)]
Fix: SYSROOT location detection... Wrong test.

Change-Id: I8c783cf3bc966b2bec54cab98de97f1e47d3b54c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoChange the default debug compilation options. 57/14957/4
Romain Forlot [Wed, 4 Jul 2018 10:22:33 +0000 (12:22 +0200)]
Change the default debug compilation options.

Because fortify source need optimization then the most
correct optimization to chose is -0g for debugging purpose.

Also be able to specify options for Clang which could differ
slightly from GNU.

Change-Id: I166c0cb62cbf9fc171cffc29c29df993f5ccb8f5
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoClearer coverage compilation options configuration 63/14963/2
Romain Forlot [Tue, 3 Jul 2018 15:35:17 +0000 (17:35 +0200)]
Clearer coverage compilation options configuration

Rename CCOV to COVERAGE to make it more clearer which compilation profile
use and add a suffix to the built widget name except for
the RELEASE built type which output the normal name.

Change-Id: Ied0dfb47c25402c4146ebb190d65d17cff9ec360
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoDon't overwrite the autobuild script if it exists 49/14749/1 5.99.1 flounder/5.99.1 flounder_5.99.1
Romain Forlot [Wed, 27 Jun 2018 17:07:21 +0000 (19:07 +0200)]
Don't overwrite the autobuild script if it exists

Bug-AGL: SPEC-1529

Change-Id: I0c048e8bfe4f8eb23f31fb22808168b706cf12f8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoDisable the in-tree build method. 43/14743/1
Romain Forlot [Wed, 27 Jun 2018 16:33:18 +0000 (18:33 +0200)]
Disable the in-tree build method.

In-tree build could lead to problems and is not recommended
because only one-setup, generated files spread over the project
tree, clean is a pain in the ass and it just trash completely
your git repo...

Bug-AGL: SPEC-1534

Change-Id: I68cfd0e03933d87db7f6b2bdb88f22ddd94c2b98
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoDetect Yocto as OS distribution 41/14741/1
Romain Forlot [Wed, 27 Jun 2018 16:20:25 +0000 (18:20 +0200)]
Detect Yocto as OS distribution

When you are in a Yocto Environment there isn't os-release
file, so if the Yocto env is detected then position
manually the OSRELEASE variable to yocto-build.

Change-Id: I10029664100bb73aa74eaa85c1a4295c4ab65428
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoFix: wrong compile options added 81/14681/2
Romain Forlot [Tue, 26 Jun 2018 09:47:55 +0000 (11:47 +0200)]
Fix: wrong compile options added

Change-Id: I697e3812be657abc0b1877e55044225cc001c93e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoFallback using zip format if no wgtpkg-pack found 63/14463/1
Romain Forlot [Fri, 15 Jun 2018 08:40:01 +0000 (10:40 +0200)]
Fallback using zip format if no wgtpkg-pack found

wgtpkg-pack tool is part of "application-framework-main" project
and not mandatory when developing natively. As a wgt package is
a zip file then use the zip format to simulate a real wgt package.

Change-Id: If2d5a86e93b9c9dc707658b2367f59a7824eddf6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years ago02-variables.cmake: Avoid checking CXX version if not required 13/14413/2
José Bollo [Thu, 14 Jun 2018 09:16:39 +0000 (11:16 +0200)]
02-variables.cmake: Avoid checking CXX version if not required

Change-Id: Id5a8987d3222df9cfaa258cdce8353dad6ca9a4a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoconfig.cmake.sample: Remove dependency to libsystemd 07/14407/2
José Bollo [Thu, 14 Jun 2018 08:15:23 +0000 (10:15 +0200)]
config.cmake.sample: Remove dependency to libsystemd

The dependency to libsystemd isn't strictly required.

Change-Id: I763e6a8d63af921c25c8dfdfb2d2021671dfd9d2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoconfig.cmake.sample: Remove dependency to libmicrohttpd 05/14405/1
José Bollo [Thu, 14 Jun 2018 08:09:23 +0000 (10:09 +0200)]
config.cmake.sample: Remove dependency to libmicrohttpd

The dependency to libmlicrohttpd is a fake. Just remove it!

Change-Id: I511acc0ea9207aa973aac28fe02b1262ad8a47c2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoAdded -D_FORTIFY_SOURCE=2 to CFLAGS 79/14279/1
Thierry Bultel [Mon, 11 Jun 2018 14:08:03 +0000 (16:08 +0200)]
Added -D_FORTIFY_SOURCE=2 to CFLAGS

Added this option, to match the given ones when building
from yocto with bitbake.
Also fixed the sample example, and some copy-paste issues
on build targets (RELEASE/DEBUG/PROFILING/CCOV).

Change-Id: I759305e54d427e6763f32b1a86207fe35add1b3f
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
5 years agostart-on-target: uses RSYNC_PREFIX path for config 97/14097/2
Thierry Bultel [Fri, 25 May 2018 14:44:29 +0000 (16:44 +0200)]
start-on-target: uses RSYNC_PREFIX path for config

Bindings using the controller need to have a right base
search path for the config files, loaded plugins, and other extra
files (lua, for instance).
Therefore, in the development workflow here, where the binding
is uploaded to the target at a typically unsusual location,
the afb-daemon is given the RSYNC_PREFIX/etc as a base through the
CONFIG_CONTROL_PATH env variable.

Change-Id: Ieb39174918f0d51985e1d63b9f7c6509a05f284a
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
5 years agoFixed spelling. 75/13975/2
Sebastien Douheret [Tue, 15 May 2018 13:13:43 +0000 (15:13 +0200)]
Fixed spelling.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoImprove OS detection
Romain Forlot [Wed, 16 May 2018 08:26:06 +0000 (10:26 +0200)]
Improve OS detection

Every distribution name detected in ID_LIKE field could
be used.

Change-Id: I767b1bb20521248b30269955ce6a15912a62df33
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix: OS detection
Romain Forlot [Mon, 14 May 2018 13:11:51 +0000 (15:11 +0200)]
Fix: OS detection

Change-Id: Idcf5e85bfeab4edf1dbf52b6a0e3470ad350f939
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoLaunch from workdir
Romain Forlot [Mon, 7 May 2018 15:00:04 +0000 (17:00 +0200)]
Launch from workdir

This will ensure we are to be able to correctly debug
with GDB. Indeed workdir afb-daemon parameter need to be
set at the current dir to correctly retrieve source files
path for GDB

Change-Id: Ib59e80ec48314d5d58e033d894314d0bd676fb85
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoChange closing that could fix native debugging
Romain Forlot [Mon, 30 Apr 2018 21:31:13 +0000 (23:31 +0200)]
Change closing that could fix native debugging

Change-Id: I5b1f48d2ad70bb5903e13e1df76d523ee12a52b1
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix filename pattern to match .cmake files
Romain Forlot [Tue, 24 Apr 2018 15:44:41 +0000 (17:44 +0200)]
Fix filename pattern to match .cmake files

Change-Id: I1c659045f178f5e45d31b0203abcd91485b55838
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoAdding cmake file at the root directory
Romain Forlot [Fri, 20 Apr 2018 13:17:49 +0000 (15:17 +0200)]
Adding cmake file at the root directory

It may be needed to include additionnal files from the root dir
as populate and remote_target_populate targets are created
at inclusion parts you can't adds target using app-template
macros after the config.cmake first inclusion.

Change-Id: I92a98d997aa239ab56183da8dc95f6db993c17a2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoAdds commit hash to the version. 61/13661/3
Romain Forlot [Sun, 25 Mar 2018 12:38:40 +0000 (14:38 +0200)]
Adds commit hash to the version.

Added the short hash coming from git lastest git commit
to the version number. In addition of the dirty flag
it make possible to know from where modifications
divergences begin.

Change-Id: Id25256f896c8179009d8588f79e7801cc2c90821
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoChange default sample settings.
Romain Forlot [Mon, 26 Mar 2018 07:33:03 +0000 (09:33 +0200)]
Change default sample settings.

No needs to force CMAKE build type to debug as
it's the default. Only kept for convenience if
needed to specify other build type.

Change-Id: Idf88f09eebf6ab4defe070b7df23ebf769861c63
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoForgot updating README also...
Romain Forlot [Tue, 9 Jan 2018 08:42:37 +0000 (09:42 +0100)]
Forgot updating README also...

Change-Id: If650347cb598c27fe11fbb60666af57189bc00f6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUpdate documentation
Romain Forlot [Fri, 5 Jan 2018 17:06:13 +0000 (18:06 +0100)]
Update documentation

Better description to use BINDINGV2 labels.
Adding documentation for macros:
- add_input_files
- set_openapi_filename

Change-Id: I7eb685faf4a5d4f92343d826877066b54b0012f0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUse LFSH named, rename data to var
Romain Forlot [Fri, 5 Jan 2018 17:02:27 +0000 (18:02 +0100)]
Use LFSH named, rename data to var

Change-Id: I63ad812fc69c0ac38db0b16af405614fa68f6d54
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUse new CPP generation from afb-genskel
Romain Forlot [Thu, 21 Dec 2017 15:57:51 +0000 (16:57 +0100)]
Use new CPP generation from afb-genskel

Include a new options calling afb-genskel depending on
PROJECT_LANGUAGES variable

Change-Id: Id7719b399eac58f0ced54a49e09350a587e4e997
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUpdate README with latest docs modifications
Romain Forlot [Thu, 7 Dec 2017 12:48:01 +0000 (13:48 +0100)]
Update README with latest docs modifications

Change-Id: If00a115e7f58ed6f2fcd6d4ebe00d96df58c0747
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoDoesn't set rpath for built target and update doc
Romain Forlot [Wed, 6 Dec 2017 17:44:43 +0000 (18:44 +0100)]
Doesn't set rpath for built target and update doc

Rpath could be set using a target property if needed
in the mean time no rpath is used by default.

Change-Id: Ia704b00972545ed73dee98ea88e17d0ef08cf014
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoDetails external library.
Romain Forlot [Tue, 5 Dec 2017 09:39:40 +0000 (10:39 +0100)]
Details external library.

Linting and little typo fixes.

Change-Id: I714477b429c9257595ee8eae05ba1ef4901234a2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoDeprecate PROJECT_LIBDIR and PROJECT_RESOURCES var
Romain Forlot [Wed, 29 Nov 2017 08:59:02 +0000 (09:59 +0100)]
Deprecate PROJECT_LIBDIR and PROJECT_RESOURCES var

Change-Id: I9fc0e4389ade90e22e4ede77720effeff87834b7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoMake sure to point to correct dir for cmake script 4.99.3 eel/4.99.3 eel_4.99.3
Romain Forlot [Fri, 24 Nov 2017 10:07:10 +0000 (11:07 +0100)]
Make sure to point to correct dir for cmake script

Change-Id: I1ec3541aa5ab6f82a91e150193c954e586cb06f8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix variables checking.
Romain Forlot [Thu, 23 Nov 2017 18:41:55 +0000 (19:41 +0100)]
Fix variables checking.

Change-Id: Ifbe95bbcb7f192ec9e84c26a73dc260926360b37
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoCMake doesn't path protection.
Romain Forlot [Thu, 23 Nov 2017 18:40:35 +0000 (19:40 +0100)]
CMake doesn't path protection.

Keep using a classic CMake variable not escape with quote
for path PKG_TEMPLATE_PREFIX else path isn't correct for internal
cmake usage.

Change-Id: I9ebff240e28c5cc8922ff6bbc5e6c14a62997f65
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoCompare to manual Project version if not from git
Romain Forlot [Thu, 23 Nov 2017 18:21:23 +0000 (19:21 +0100)]
Compare to manual Project version if not from git

Change-Id: I7e83d2e587757edf5cfa22709ead85ce82f52dcc
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoNo failure if none tags found on project git repo
Romain Forlot [Thu, 23 Nov 2017 18:09:13 +0000 (19:09 +0100)]
No failure if none tags found on project git repo

Change-Id: Idb46117feb860c84a14b6c256ee809e31546fd7c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoProtect path with space in it.
Romain Forlot [Thu, 23 Nov 2017 08:55:21 +0000 (09:55 +0100)]
Protect path with space in it.

Bug-AGL: SPEC-1117

Change-Id: I36ba8047c3dc722c6c99ecbd90e14d5d717cb808
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoCheck version between app-templates and project. 39/12039/1
Romain Forlot [Fri, 17 Nov 2017 15:24:40 +0000 (16:24 +0100)]
Check version between app-templates and project.

PROJECT_VERSION could be detected if project is located in AGL gerrit repo
or with personal tags when in personal repository
This version is checked against app-templates version which is
aligned on AGL tags.
A warning is displayed if app-templates version is outdated related to
project_version.

Also a "dirty" flag is appended to the project version if
git repo isn't in sync with its remote counterpart. Then you could
know if see an installed widget on a target that got that "-dirty"
flag appended to the version that this widget include code that could
not be merged in the git repository.

Bug-AGL: SPEC-951

Change-Id: I99687560d19d746c887fc7a095e71407bda34325
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoCleaning
Romain Forlot [Thu, 16 Nov 2017 09:22:54 +0000 (10:22 +0100)]
Cleaning

Change-Id: Ia040321ddf86d80c04b63f56041b571b24a802ec
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoCould specify others default install directories
Romain Forlot [Thu, 16 Nov 2017 09:22:43 +0000 (10:22 +0100)]
Could specify others default install directories

Path to default package BINDIR, LIBDIR, ETCDIR, DATADIR and
HTTPDIR.

Change-Id: I0e820f48f60e5e18053077fdbaa1d45912d5bb12
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix finding config template 03/11803/1
Scott Murray [Fri, 10 Nov 2017 04:00:53 +0000 (23:00 -0500)]
Fix finding config template

Commit 9a73785 ("Better handling icon&config.xml to build widget")
seems to have accidentally broken an application providing its own
config template, resulting in the stock templates always being used.
That results in breakage like extra permissions in the app's version
not being picked up.  The logic for setting WIDGET_CONFIG_TEMPLATE
has been reverted to what it was previously to fix the behavior.

Change-Id: I245bc08f466b883b61c286faed933a5e57a74845
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
6 years agoDisallow build in-source. 4.99.2 eel/4.99.2 eel_4.99.2
Romain Forlot [Mon, 23 Oct 2017 15:14:06 +0000 (17:14 +0200)]
Disallow build in-source.

Change-Id: If606d1ad283a37b7a2c1d4e45d8459ace2ba76c5
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoKeep libraries and binding in the same directory 4.99.1 eel/4.99.1 eel_4.99.1
Romain Forlot [Mon, 9 Oct 2017 08:45:43 +0000 (10:45 +0200)]
Keep libraries and binding in the same directory

Change-Id: I40a3424b689d03e3f6cf471495ed869511a30d2d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUpdate README and documentation
Romain Forlot [Wed, 4 Oct 2017 11:43:08 +0000 (13:43 +0200)]
Update README and documentation

Instructions to include external library into a widget

Change-Id: Ic5c8c477fdbc1d374f1f88260b51cb9f200d02e1
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoInclude ExternalProject CMake module by default
Romain Forlot [Wed, 4 Oct 2017 11:41:57 +0000 (13:41 +0200)]
Include ExternalProject CMake module by default

Change-Id: Icf3929e6f2b0c28d3281ee451527ec1085ac9c7f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoCleaning
Romain Forlot [Wed, 4 Oct 2017 09:22:11 +0000 (11:22 +0200)]
Cleaning

Change-Id: Id06766a8c24dd21fdee6211a384bfccf7c6535ad
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoHandle imported target to populate package folder
Romain Forlot [Wed, 4 Oct 2017 09:22:06 +0000 (11:22 +0200)]
Handle imported target to populate package folder

Can use an external library builded as an external project
or an already built library/executable to include it into
a widget.

Change-Id: Ia3282f875fe0f6f9e8f1153d87ccfbecf8559dbb
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoControl install destination directory
Romain Forlot [Wed, 4 Oct 2017 09:18:47 +0000 (11:18 +0200)]
Control install destination directory

Either put all in a dedicated binding directory like a classic
widget install, either put all directly a CMAKE_INSTALL_PREFIX
root directory.

Change-Id: I54ebe8a680ea09af73c7fc9e6646fdd203fdeb98
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix: wrong if closure...
Romain Forlot [Tue, 26 Sep 2017 12:59:37 +0000 (14:59 +0200)]
Fix: wrong if closure...

Change-Id: I6b8964c0c7db970b88e636222fb8394a51dbde8e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoMake use of LibEfence optional
Romain Forlot [Sun, 24 Sep 2017 10:01:37 +0000 (12:01 +0200)]
Make use of LibEfence optional

Change-Id: I22b52611dab0be6021b08d6c6d63bc369df0b4d4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUpdate Readme
Romain Forlot [Sun, 24 Sep 2017 10:01:21 +0000 (12:01 +0200)]
Update Readme

Change-Id: I30b75cec8634ffe52f3918e9da7bc1c656c6215d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix: No build error on input files checked
Romain Forlot [Wed, 20 Sep 2017 14:50:53 +0000 (16:50 +0200)]
Fix: No build error on input files checked

Output a warning if no checker found but at usage must
crash the build if input files has errors.

Change-Id: I282c4eb2303922ce1cd7055b51182ed222b62d08
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoAdding install target to autobuild script
Romain Forlot [Fri, 15 Sep 2017 12:37:43 +0000 (14:37 +0200)]
Adding install target to autobuild script

Change-Id: I1ee2fb376e247c74e383428ec5c0b7994cba1f54
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoHandle controller plugin populate and install
Romain Forlot [Thu, 14 Sep 2017 11:31:47 +0000 (13:31 +0200)]
Handle controller plugin populate and install

Change-Id: Ib48817e4634990b6369de29ce81fa86354d73652
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoClearer output when checking data file
Romain Forlot [Tue, 12 Sep 2017 16:10:19 +0000 (18:10 +0200)]
Clearer output when checking data file

Change-Id: I942b11b460c15618cc3c6a731f588d7a8b91abcf
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoDon't fails if data files checker not found.
Romain Forlot [Tue, 12 Sep 2017 09:22:42 +0000 (11:22 +0200)]
Don't fails if data files checker not found.

Change-Id: If28a37406175dc318c3ed62153e3276f2eb77525
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUpdate doc
Romain Forlot [Sat, 9 Sep 2017 14:07:37 +0000 (16:07 +0200)]
Update doc

Change-Id: I942267d9673651db6986177e8d47aa0dbc235e3e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoCopying content not the directory.
Romain Forlot [Fri, 1 Sep 2017 17:36:02 +0000 (19:36 +0200)]
Copying content not the directory.

Change-Id: I3d221379459ff5451b6933fac2383c8c3797d0d3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoDisabling packaging target. To be externalized
Romain Forlot [Wed, 30 Aug 2017 13:44:18 +0000 (15:44 +0200)]
Disabling packaging target. To be externalized

Change-Id: I4ff1c05eae2a8542f1ad002acc6bf0d4a7ff72d6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoAdded populate binding config files
Romain Forlot [Wed, 30 Aug 2017 09:14:52 +0000 (11:14 +0200)]
Added populate binding config files

Change-Id: I9fd0ccd917c0fbbfe67910a169001c85220a78c0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix: wrong OS detection when SDK env or Yocto
Romain Forlot [Tue, 29 Aug 2017 15:50:05 +0000 (17:50 +0200)]
Fix: wrong OS detection when SDK env or Yocto

Change-Id: Iece230f0708129ea5980c61dae2d2cb66d32e7eb
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agotemplates.d: adjustments for xds (gdb*.ini, xds-project-target.conf)
Stephane Desneux [Mon, 28 Aug 2017 17:05:20 +0000 (19:05 +0200)]
templates.d: adjustments for xds (gdb*.ini, xds-project-target.conf)

Change-Id: Ic3b029793670aac617d6d23e67ce15084f855cdb
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
6 years agostart-on-target.sh.in: use --monitoring option to start afb-daemon
Stephane Desneux [Mon, 28 Aug 2017 17:01:35 +0000 (19:01 +0200)]
start-on-target.sh.in: use --monitoring option to start afb-daemon

Change-Id: I397613a350aafd46b52d2e83d9f4c7951a9da8fe
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
6 years agoDirty fix to handle distro specific packages deps
Romain Forlot [Mon, 28 Aug 2017 16:54:41 +0000 (18:54 +0200)]
Dirty fix to handle distro specific packages deps

Could include first distro specific file to be able to modify
variable from config.cmake and then process classic submodule
cmake files.

Change-Id: Id5dad2504d44c86cb165ad56f5314e9c0c545f0b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix pkgconfig parsing result
Ronan Le Martret [Mon, 28 Aug 2017 14:03:12 +0000 (16:03 +0200)]
Fix pkgconfig parsing result

Change-Id: I1d278188126baae20ef6890ea140b2136f1a09f0
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
6 years agoFix deb packaging pkgconfig dependency
Ronan Le Martret [Mon, 28 Aug 2017 13:52:06 +0000 (15:52 +0200)]
Fix deb packaging pkgconfig dependency

 * dpkg must be use to find the package whose provides
   the .pc file

Change-Id: I475559264c5dd1116e773a6842889cfd230917a0
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
6 years agoFix: output msg if build fail on remote populate
Romain Forlot [Sat, 26 Aug 2017 13:10:01 +0000 (15:10 +0200)]
Fix: output msg if build fail on remote populate

Change-Id: Id0ee4805854181dab1885af42f9c9f4603ad796f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoadd_input_target targets built by default
Romain Forlot [Fri, 25 Aug 2017 08:06:44 +0000 (10:06 +0200)]
add_input_target targets built by default

Adding to 'all' target

Change-Id: I3b4696ced961a5ccc6a35cbb1ab64cbd489af45b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>