68 Commits

Author SHA1 Message Date
Sebastian Huber
e5dad3cfed Change RTEMS version from 4.12 to 5
Update #3220.
2017-11-09 08:06:16 +01:00
Chris Johns
c68beb8181 tester: Add the rtems-run command. 2017-11-03 17:59:53 +11:00
Chris Johns
a248471737 rtemstoolkit: Remove test import for YAML.
Closes #3204.
2017-10-25 08:53:27 +11:00
Chris Johns
bf58911519 tester: Refactor to use INI format files for BSP configurations.
- Add support for user condfigurations files with the --user-config.
- Add support for a $HOME/.rtemstesterrc for a user configuration.

Closes #3204.
2017-10-24 22:21:35 +11:00
Chris Johns
7051ba5b19 bsb-builder: Add email support, and config report types. 2017-10-22 18:56:26 +11:00
Chris Johns
dc5de5f299 rtemstoolkit: Update the mailer module to the option interface. 2017-10-12 06:11:16 +11:00
Chris Johns
7c032b0939 rtemstoolkit: Add a capture hook to logging. 2017-10-12 06:09:52 +11:00
Chris Johns
7f1167002c rtemstoolkit: Fix error message in options. 2017-10-12 06:08:31 +11:00
Sebastian Huber
5df7c3cd51 Install missing files 2017-10-10 20:07:15 +02:00
Chris Johns
fa81491764 Move the reraise logic into the tool kit. 2017-09-21 17:45:39 +10:00
Joel Sherrill
875c071feb rtemstoolkit/rld-compression.cpp: Fix warning for comparing signed to unsigned 2017-09-14 18:22:44 -05:00
Chris Johns
8e64821c9f rtemstoolkit: Remove throw from file::image destructor. 2017-09-14 12:22:14 +10:00
Cillian O'Donnell
67d48e2e07 rtemstoolkit/host.py: Change option to search parent directory in Python3.
This works in Python2.7 and Python3.5. Python2 __import__ searches relative
and absolute paths by default. Python3 searches only absolute paths as default.
The option change searches 1 parent directory relative to the calling function
and has the same meaning in Python2 and Python3.
2017-08-29 18:05:00 +10:00
Chris Johns
f2bb43913b rtemstoolkit/libiberty: Fix broken configure detection.
The file libiberty.h requires some configure macros to control some parts
and these are not provided so the file did not match what was needed. Hard
code the result and remove the need for the macros. The related calls
are not provided in our libiberty usage and not needed.

Closes #3103.
2017-08-20 17:19:06 +10:00
Chris Johns
78bbe4c1a3 linkers/exe-info Support ARM static constructors.
Note, ARM destructors are registered at runtime and currently not
easly found.

Update libiberty to get a newer demangler.

Closes #3102.
2017-08-16 18:18:35 +10:00
Cillian O'Donnell
718b23024d rtemstoolkit/rld-process.h: Include rld.h to find 'strings' definition 2017-05-31 21:08:09 +10:00
Chris Johns
4c24f40a99 rtemstoolkit: Improve performance. 2017-05-24 12:27:22 +10:00
Chris Johns
ed80d2c041 rtemstoolkit: Add the configuration.py module to the install. 2017-05-16 16:43:19 +10:00
Chris Johns
ef38b5d7c2 rtemstoolkit: Add Python INI configuration support. 2017-05-15 11:48:44 +10:00
Chris Johns
9e7ed079b3 rtemstoolkit: Set proc buffering to 0 to not block on smaller reads. 2017-04-25 09:31:37 +10:00
Chris Johns
224fb21b30 rtemstoolkit: Add a textbox module for formatted reporting. 2017-04-25 02:38:40 +10:00
Chris Johns
437092487f execute: Use the io python module for output capture.
This change drops the overhead of capturing the process output. The
io module in Python is similar to the POSIX API for a file read
where a read will return up to the buffer size rather than blocking
until the buffer is full.
2017-04-25 00:32:53 +10:00
Chris Johns
7d3350d0bb rtemstoolkit: Move host support access into a separate module.
Moving the host support into a module lets it get used where options
is not being used.
2017-04-25 00:31:44 +10:00
Chris Johns
31e22e337c libelf: Use minimal environment for C translation with readelf.
The output of readelf needs to be in English.
2017-01-09 09:05:18 +11:00
Chris Johns
1676b9c80b rtemstoolkit: Trace opening a macro file. 2016-08-18 14:24:13 +10:00
Chris Johns
3e1459496a Add rtems-bsp-builder.
This is a testing tool that builds BSPs with a range of configure options
for regression testing changes do not break the kernel code.

The builds are controlled by an INI file. The INI configuration has profiles
which define a specific set of architures and BSP to build. There are architectures
which contain BSPs and these further define the options needed to build the BSP.
There is also builds which define the variations each BSP is built with.

The build output can be pointed to any suitable disks so you can control where
the output ends up.

This initial release contains tiers and these are only seeded with something to
test with. It does not define the tiers.

Wanrings, object files and libraries are counted.
2016-07-06 17:58:56 +10:00
Chris Johns
6c94148e62 linkers: Demangle the C++ labels in the .ctors/.dtors sections.
Show user friendly labels for the C++ constructors and destructors.
2016-04-03 16:26:36 +10:00
Chris Johns
635a28f1fb rtemstoolkit: Add a buffer helper class to insert and extract data. 2016-04-03 15:41:08 +10:00
Chris Johns
8dc277265b rtemstoolkit: Add the address to the section. 2016-04-03 15:39:58 +10:00
Chris Johns
2e973519a4 rtemstoolkit: Add an address table of symbols key by the symbol address.
This is useful if you need to look up a symbol based on its address.
2016-04-03 15:38:14 +10:00
Chris Johns
0c0b2d4b52 rtemstoolkit: Add version number parsing to get major, minor, revision.
Add support to return the major, minor or revision numbers as numbers.
2016-04-03 15:37:01 +10:00
Chris Johns
6f8b07c3b6 rtemstoolkit: Fix execute's writer thread to not eval() the input.
The conversion to Python3 added an eval() call which is wrong.

Fix the spelling in execute.

Fix labels in the tester gdb locking.

Check the debug-trace arguments.

Close #2642.
2016-03-14 14:59:11 +11:00
Chris Johns
2de37f3432 Python 2 and python 3 refactor fixes.
Updates #2619.
2016-03-09 14:27:42 +11:00
Chris Johns
b0fa2ae998 Update rtems-tool to support Python 2 and 3.
Add solaris and netbsd.

Close #2619.
2016-03-03 16:53:39 +11:00
Chris Johns
7148caeb91 Add Windows specific waf support for MSYS2.
Limit the compilers used to gcc and clang. Clang has not been tested.
Users with MSVC install does not need to remove now.

Force the os.sep path to the standard '\\' on Windows. The MSYS2 python
sets it to '/' for internal project reasons. Doing this does cause waf
problems when running configure so only do this for the build target.

Closes #2583.
2016-02-19 14:51:28 +11:00
Chris Johns
de1beea245 Disable installing PYO and PYC. Fix install paths.
Installing PYO and PYC does not work so disable this. Move the
Python check to the top level and have a single place.

Fix the install paths a revert the 'from . import' changes. This
is resolved by installing into the correct paths.
2016-02-19 11:26:51 +11:00
Sebastian Huber
66c6301c3f rtemstoolkit: Python 3 compatibility 2016-01-08 07:59:05 +01:00
Sebastian Huber
606c08c8b5 rtemstoolkit: msys2 compatibility 2016-01-08 07:58:54 +01:00
Chris Johns
a6f5f188ce Fix how to use the waf py feature to get py source and pyo file installed.
Thanks to ita for the example.
2015-12-11 17:17:22 +11:00
Chris Johns
3828e5033c VERSION as an INI format file.
One section is supported [version] with a 'release' entry.
2015-12-11 17:01:51 +11:00
Chris Johns
efc4f099b4 Add release versioning support.
Support a top level VERSION file that defines an RTEMS release.

Fix the install of the python modules including thertems-test.

Update the git python module to the RSB version. Fix the options to
not call clean and to call dirty.

Update the version python module.

Fix the rtld C++ support to the VERSION file and the top level waf
script.
2015-12-09 20:08:19 +11:00
Sebastian Huber
04a52040ae Python 3 compatibility 2015-11-12 11:15:23 +01:00
Sebastian Huber
5cb66b4def rtd-rtems.cpp: Default to version 4.12 2015-11-11 10:18:41 +01:00
Chris Johns
baa798a083 Update the versions strings. 2015-10-19 09:14:57 +11:00
Chris Johns
0382b6863b Fix Windows build issues.
Fix biulding the mmap Windows code.
Fix installing the files for Windows.
2015-10-19 09:06:49 +11:00
Ric Claus
5a801c25ef rtems-tester.txt, options.py: Improved clarity and spelling. 2015-09-26 17:16:44 +10:00
Chris Johns
b24951645d rtemstoolkit: Add support to return the system path split as paths.
Seacch the path for the program name if not found and set it as
an absolute path. This allow the prefix to be found.
2015-03-29 18:06:00 +11:00
Chris Johns
8531776882 rtemstoolkit: Add an array operator to return recs in a section. 2015-03-23 17:18:39 +11:00
Chris Johns
36e663162f rtemstoolkit: Remove warning on Windows. 2015-03-18 17:02:40 +11:00
Chris Johns
dfc5994847 elftoolchain: Add support for Cygwin. 2015-03-17 21:37:43 +11:00