735 Commits

Author SHA1 Message Date
Sebastian Huber
00b9f1d825 rtemstoolkit: Support more Linux distributions
The platform.dist() function is not always available.
2020-03-05 10:26:15 +01:00
Amar Takhar
2444acb0ad Add print statement similar to the original mkimage.
This is limited to Python 2.6+
2020-03-04 18:07:45 -05:00
Amar Takhar
9c7be8bc49 Fix to work under Pyhon 2 and Python 3.
Also changed 'python2' to 'python' in the shebang.
2020-03-04 18:07:41 -05:00
Amar Takhar
e29d0a6ac8 Convert optparse to argparse.
* Fix exceptions and print exception message.
 * Also add myself to copyright.
2020-03-04 18:07:37 -05:00
Amar Takhar
90713f7d36 Remove EOL whitespace. 2020-03-04 18:07:21 -05:00
Amar Takhar
e8c180f1be Add to wscript and add python2 shebang.
This script does work but needs some user friendliness added which is
acknowledged by the author as it was meant as a quick replacement.
2020-03-03 20:08:10 -05:00
Amar Takhar
fc078dbdef Add a pure Python clone of mkimage written by Craig Barker.
I emailed Craig Barker to ask if he would release his mkimage Python rewrite
as 2BSD.  He graciously accepted and you can see his work here:

  https://github.com/cmbarker83/pythonmkimage

This is a verbatim commit of 35d6d from his repository.
2020-03-03 19:58:25 -05:00
Sebastian Huber
4a2f3e5a58 waf: Update to waf-2.0.19
Update #3569.
2020-02-26 11:40:39 +01:00
Sebastian Huber
0d66fd5264 tester: Use prefix for rtems_tools by default
Commit 72c684eff2cd932b4948e21902680a93473340c3 removed the default
value of rtems_tools.  If the --rtems--tools option was omitted the
rtems-test command printed lots of

	error: run.cfg:61: macro '%{rtems_tools}' not found

error messages.
2020-02-26 07:29:53 +01:00
Cláudio Maia
fb241f8a56 Fix typo in error message 2020-02-26 14:18:45 +11:00
Sebastian Huber
629c330e14 tester: Add qemu_opts_serial
The realview_pbx_a9_qemu test configuration for Qemu produced no output
due to wrong serial/monitor settings.  Remove the serial/monitor
settings from qemu_opts_base and move them to the new qemu_opts_serial.
2020-02-25 09:23:47 +01:00
Sebastian Huber
b9d6d39cb2 linkers: Include proper header file 2020-02-25 09:19:22 +01:00
Sebastian Huber
ed15643221 linkers: Update due to API changes
Update #3835.
2020-02-25 09:19:22 +01:00
Vijay Kumar Banerjee
18d3daa237 covoar/wscript: Install covoar.css and table.js 2020-01-28 08:36:50 +11:00
Vijay Kumar Banerjee
2852cac71a rtemstoolkit/path: Add support to copy single file 2020-01-28 08:36:35 +11:00
Sebastian Huber
29ad0ec7a8 tester: Prefer '_' as test state separator char 2019-12-19 10:09:22 +01:00
Sebastian Huber
7045cc39b4 linkers: Remove _Thread_Life_action_handler
This is a static function.

Update #3413.
2019-12-19 10:09:22 +01:00
Christian Mauderer
beeeb59cea record: Allow to compile with recent llvm version.
It seems that the API for symbolizeCode changed between llvm8 and llvm9.
This patch uses the same adaption that is used for the llvm-symbolizer
tool in llvm commit b2c4b8bded3ff2efaaebe0d8b33c65116f9ef8de.
2019-12-18 09:11:35 +01:00
Sebastian Huber
e2c8c49a6c Fix build issues on Debian 10 2019-12-18 07:05:17 +01:00
Chris Johns
429b747258 tiers: Move bsps from tier-3 to tier-2
Closes #3213
2019-12-14 02:46:12 +11:00
Sebastian Huber
83b8f1f2a5 bin2c: Improve file name sanitation
Only use alpha-numeric characters for header guards.
2019-12-02 06:44:40 +01:00
Hesham Almatary
c02459ee65 tester: Add basic support to generate JUnit test reports 2019-11-22 09:05:23 +00:00
Sebastian Huber
d1486f25f5 record: Remove unused constant 2019-11-18 07:00:35 +01:00
Hesham Almatary
e6e610d262 rld-rap: Ignore relocations with section index 0 2019-11-12 10:20:05 +00:00
Hesham Almatary
a1c0f92883 rtems-syms: Use .quad instead of .long for riscv64
.long in RISC-V assembly is 4 bytes, while the address in riscv64
is 8 bytes (.quad). Moreover, RTEMS' libdl increases the symbols
pointer by sizeof(long) in C when iterating over global symbols.
2019-11-12 10:19:58 +00:00
Hesham Almatary
dcfccb1072 Add RISC-V machine to rld-elf 2019-11-12 10:19:53 +00:00
Chris Johns
4cb2ddc568 rtemstoolkit: Interpolate realing rtems configuration files. 2019-10-18 02:20:36 +11:00
Kinsey Moore
e9f48e9fac Fix exception when no output format is specified
The JSON log generation patch introduced a bug when the report output
generation was not configured due to attempting to iterate over 'None'.
2019-09-24 08:32:52 +10:00
Sebastian Huber
12bd8f77ba record: Fix use of std::min
Update #3665.
2019-09-10 12:49:41 +02:00
Sebastian Huber
5d80d0b2e1 record: Optionally use LLVM to resolve addresses
Update #3665.
2019-09-10 11:01:00 +02:00
Sebastian Huber
a2e7158792 record: Windows compatibility
Update #3665.
2019-09-10 10:54:28 +02:00
Sebastian Huber
f8f91d6507 record: Add generic record events
Update #3665.
2019-09-05 10:47:45 +02:00
Sebastian Huber
07829ca0b4 record: Use C++ header files and namespace std
Update #3665.
2019-09-05 10:44:31 +02:00
Sebastian Huber
0b12f00de9 record: Clean up metadata
Update #3665.
2019-09-05 10:38:31 +02:00
Chris Johns
1eaa300b3c waf: Clean up trace's wscript 2019-09-05 09:47:01 +10:00
Chris Johns
4cd76f2bd8 waf: Do not filter flags to be unique using set()
Filtering the flags to be unique using `set()` changes the order and
this results in waf thinking the flags have changed rebuilding various
pieces of code.
2019-09-05 09:47:01 +10:00
Chris Johns
b4227d9196 waf: Minor format clean up. 2019-09-05 09:47:01 +10:00
Chris Johns
5588b827cb waf: Update to waf-2.0.18 2019-09-05 09:47:01 +10:00
Chris Johns
128ee7b7ec bsp-builder: Do not clean the build space when starting with --no-clean 2019-09-05 09:47:01 +10:00
Chris Johns
72c684eff2 tester: Minor fix to prefix handling. 2019-09-05 09:47:01 +10:00
Chris Johns
89442b7c0c tester/tftp: Handle ctl-C when active. 2019-09-05 09:47:01 +10:00
Sebastian Huber
71929ce0d6 record: Add limit option
Update #3665.
2019-09-04 14:42:51 +02:00
Sebastian Huber
876ace89bc record: Simplify command line options
Update #3665.
2019-09-04 14:03:26 +02:00
Sebastian Huber
58edee96f5 record: Simplify content and packet size
Update #3665.
2019-09-04 13:47:00 +02:00
Sebastian Huber
0df7b2f392 record: Add support for interrupt handlers
Update #3665.
2019-09-04 13:47:00 +02:00
Sebastian Huber
ff942d52fd record: Simplify CopyThreadName()
Update #3665.
2019-09-04 07:17:06 +02:00
Sebastian Huber
ce308fad89 record: Only create necessary stream files
Rename the files to stream_* so that they appear after the metadata
file.  This makes it easier to open a new trace in Trace Compass.

Update #3665.
2019-09-04 07:17:06 +02:00
Sebastian Huber
fb5b75a9f3 record: Use exceptions
Update #3665.
2019-09-03 14:59:35 +02:00
Sebastian Huber
a124bdb851 record: Add Client base class
Update #3665.
2019-09-03 14:59:33 +02:00
Sebastian Huber
e0ac299e06 record: Convert to C++
Formatted with:

clang-format -style=Chromium -i trace/record/record-main-lttng.cc

Update #3665.
2019-09-03 14:59:00 +02:00