bitcalc: New tool for bit calculations

This is a very simple tool for performing bit calculations. It is intended as a
first step towards getting rid of bit calculations in the partrt script, since
this part of the partrt script is pretty messy.

It uses a postfix notation, and supports the following data formats:
  - Hex bit mask of arbitrary length, with optional "," for each 32-bit word,
    optionally starting with 0x. E.g.: "fe", "00001000,88880000", "0x5f00221223"
  - Comma separated list of bit ranges, e.g.: "#1-2,6,9-10"
  - Number of bits to set starting from 0, e.g. "&5".

It supports the following operators:
 and        Pop two values, perform <oldest> bitwise-and <newer> on them and
            push the result back
 xor        As and, but bitwise-xor
 print-bit-count Pop one value, count the number of bits, and print the result
            to stdout

Signed-off-by: Mats Liljegren <mats.liljegren@enea.com>
Signed-off-by: Andreas Sundström <andreas.sundstrom@enea.com>
Introducing CMake

rt-tools is now built using CMake. CMake will build bitcalc, and install
bitcalc, partrt and count_ticks scripts and partrt man page.

$ mkdir build
$ cmake <rt-tools repo root> -DCMAKE_INSTALL_PREFIX:PATH=<install prefix>
$ make install DESTDIR=<install root>

This will install everything at the following path:
<install root>/<install prefix>

with binaries residing under "bin" and man pages under "man".

<install root> defaults to /
<install prefix> defaults to usr/local

i.e., if giving "cmake <src>" followed by "make install" only, it will install
to "/usr/local". This usually requires root privileges.

bitcalc has a unit test, which is invoked using "make test" from the top
build directory when cmake has been run.

NOTE: list2mask script has not been moved to CMake build and must be installed
      manually. The reason for this is that bitcalc will soon replace list2mask.

Signed-off-by: Mats Liljegren <mats.liljegren@enea.com>
Signed-off-by: Andreas Sundström <andreas.sundstrom@enea.com>
partrt: Made script ash-compatible, use bitcalc, move man page to share

This also increments the version from 1.1 to 1.2.
This also means that list2mask is no longer needed. Since this was the last
file in the install directory, this directory is now removed.

The man page was moved from man/man1 -> share/man/man1, since this seems to be
the standard location.

The README file was deleted in the rt-tools root, since the README.md using
markdown format has replaced it with an updated content.

Signed-off-by: Mats Liljegren <mats.liljegren@enea.com>
Signed-off-by: Andreas Sundström <andreas.sundstrom@enea.com>
partrt: Added verbose messages for test_partition.py

If verbose is enabled, these messages have been added:
- Test case start execution
- Shell commands executed
- Result of get_task_info

Note: There is a known issue with false fails where the test reports that
      a process has wrong affinity. The problem is that the test is measuring
      a tramponline process, not the process executing in the RT partition.
      This is somewhat non-trivial to fix, and has therefore not been fixed
      yet.

Signed-off-by: Mats Liljegren <mats.liljegren@enea.com>
Signed-off-by: Andreas Sundström <andreas.sundstrom@enea.com>