Rework J1939 and ISO TP feature enabling 37/25137/1 9.99.3 9.99.4 jellyfish/9.99.3 jellyfish/9.99.4 jellyfish_9.99.3 jellyfish_9.99.4
authorScott Murray <scott.murray@konsulko.com>
Wed, 19 Aug 2020 17:08:30 +0000 (13:08 -0400)
committerScott Murray <scott.murray@konsulko.com>
Wed, 19 Aug 2020 17:19:58 +0000 (13:19 -0400)
commitabca4da0e817e77cacef2cb01805b4c1816adf62
tree03a073c6fe443f92a456b26a65a95ed5c8c67380
parentd9331446fe666ce14c93b915789ded3838916d9e
Rework J1939 and ISO TP feature enabling

Rework the J1939 and ISO TP feature enabling logic in config.cmake to:
- define WITH_FEATURE_J1939 and WITH_FEATURE_ISOTP to default to off,
  thus requiring explicit enabling.  This is safer than making
  assumptions based solely on the presence of the headers at build
  time.
- honor WITH_FEATURE_* definitions given on the cmake command-line;
  the checks for header presence only over-ride an "ON" value if the
  required header is not present.

Bug-AGL: SPEC-3538

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ie2b84ac50bbed0bbb775cae49f7f4fbe14f2f8ae
conf.d/cmake/config.cmake
docs/3-Installation-J1939.md
docs/4-Installation-ISOTP.md