1047 Commits

Author SHA1 Message Date
Chris Johns
f408c0f8d9 rtemstoolkit, linkers: Fix C++17 warnings
Closes #4970
2023-11-22 14:34:16 +11:00
Chris Johns
00af5a6ada rtemstoolkit: Update SimpleIni to latest
The resolves C++17 warnings.

Updates #4970
2023-11-22 14:33:54 +11:00
Chris Johns
a4b312ee4f rtemstoolkit/libierty: Update to gcc latest
- Use POSIX spawn support for MacOS

Closes #4969
2023-11-21 16:30:24 +11:00
Chris Johns
75ffa6781a python: Updates for Python 3.12
- Change SafeConfigParser to ConfigParser

- Fix escape sequences in strings

Updates #4968
2023-11-21 15:47:17 +11:00
Chris Johns
a22b396a32 tester/tftp: Add a session timeout
- Fix listener done state

- Finish open with the state as finished

Closes #4959
2023-11-08 08:34:14 +11:00
Sebastian Huber
af2b1532e8 linkers: Print a proper 0x-hex number
It is so easy in standard C++.
2023-10-18 11:25:34 +02:00
Sebastian Huber
a4e1b7fff8 linker: Fix typo in symbol table generator
Updates #4920.
2023-10-18 11:25:34 +02:00
Sam Price
7dc34d2cab rtems-tools: stty rename / spelling bug.
This patch fixes a spelling/rename mistake in rtems-tools.
2023-09-11 14:11:48 -05:00
Chris Johns
eda9325e58 rtemstoolkit: Provide a shlex.join for python 3.8 and earlier 2023-08-30 09:51:47 +10:00
Chris Johns
3ea0c24934 rtemstoolkit: Fix shell execution
The fixes to parse the command along with the pipe options broke
a simple shell command such as '/sbin/sysctl hw.ncpu' on FreeBSD.
This patch fixes the shell command by passing a string for the
various options.

The unit test has been updated to catch errors and report them.

Closes #4951
2023-08-28 16:48:13 +10:00
Chris Johns
349bbd9654 tester/sis: Use the RTEMS SIS command
Make sis and sis-run the same as there is no SIS support in
gdb anymore.

Closes #4945
2023-08-21 09:53:47 +10:00
Chris Johns
aba4d3b8da linker: Add TLS support to the symbol table generator
Updates #4920
2023-08-17 12:53:30 +10:00
Sebastian Huber
c05c4a9cbf tester: Use shorter SHA512 encoding
Encode the SHA512 digest in base64urlsafe instead of a hex string to
reduce the report size.
2023-08-11 07:51:49 +02:00
Muhammad Sulthan Mazaya
bd2d3d5523 rtemstoolkit: Fix shlex.split to use posix mode and add unit test for pipe operation
Turns out subprocess.Popen operates on posix mode. Also, there is an
issue with previous implementation of pipe command that is fixed by
Chris. Now, it can also accepts command in form of a string. The unit
test for that is added via this patch.
2023-06-21 14:30:48 +10:00
Chris Johns
493c8bff70 rtemstoolkil: Fix execute as strings after pipe addition 2023-06-21 10:33:46 +10:00
Muhammad Sulthan Mazaya
60e793a17c tester/rt: use shlex.split to split command args
The regular split-by-space function used to split command arguments
creates compatibility issues with many shell command syntaxes. A
specific example is the handling of string arguments, as shown below:

%define renode_args -e start_opts -e "s %{bsp_resc_script}"

Thus, it is changed to use shlex.split instead. It splits
the command arguments using shell-like syntax. More about shlex
module here: https://docs.python.org/3/library/shlex.html
2023-06-21 09:09:06 +10:00
Muhammad Sulthan Mazaya
38162e17d9 rtemstoolkit: add support for executing pipe command
added unit tests and shorten long lines.
2023-06-21 08:59:41 +10:00
Karel Gardas
eaf14a654b tester/bsps: change stm32h7-stlink to handle SIGTRAP as a nostop
The ST-Link GDB server throws spurious SIGTRAP into the GDB sometimes.
When this happen, the gdb exits immediately as it's run in batch/script
manner. Unfortunately this may be while testcase itself is still running
and does not have enough time to print all the required output.
Such testcase is then marked as failed although otherwise it may run
well to its end.
Adding handle of SIGTRAP as a nostop means that GDB will not exit
after receiving SIGTRAP but rather be forced to continue as nothing
would happen and the running testcase will have a chance to finish
its business.
2023-03-27 07:05:56 +02:00
Joel Sherrill
c8bf730933 rtems-bsps-riscv.ini: Update list to drop medany and add BSPs 2023-03-14 09:13:35 -05:00
Joel Sherrill
0b9bb40e76 waf: Update to waf 2..0.25
Updates #4860
2023-02-17 14:46:16 -06:00
Hesham Almatary
7ee62e9698 RISC-V: Test rv32i and rv32imafdc on QEMU
Updates #4775
2023-02-08 07:29:12 +00:00
Hesham Almatary
a735d42b37 RISC-V Default rv64* BSPs to medany and 0x80000000 start address
To run on both QEMU and Spike

Updates #4775
2023-02-08 07:28:47 +00:00
Kinsey Moore
6970c47c70 linkers/rtems-syms: Generate TLS symbols
When generating the symbol table for loadable modules, include TLS
symbols so that the modules can reference them.
2023-01-17 09:32:45 -06:00
Sebastian Huber
66b81d6baf record: Fix thread name handling
Reset the thread name at thread create and ID events.
2022-11-30 19:11:20 +01:00
Joel Sherrill
f29483d14d rtems-boot.ini: Correct spelling of %{ubootdir}
Closes #4065.
2022-11-29 17:34:58 -06:00
zhengxiaojun
df2d86ecda fix _mkdir parameter error.
fix _mkdir parameter error.

Signed-off-by: zhengxiaojun <jameszxj at gmail.com>
2022-11-28 10:16:12 +11:00
Ryan Long
40529bc566 _libelf_config.h: Add removed Cygwin code
This code was removed for some reason. Without it, we are unable to build
RTEMS with Cygwin.
2022-10-12 09:58:58 -05:00
Sebastian Huber
203077030d tester: Check for begin/end of test
Check for "BEGIN OF TEST" and "END OF TEST" to not use other information blocks
such as "END OF GCOV" to determine the test status.
2022-10-07 06:26:31 +02:00
Joel Sherrill
d0a65c72d1 rtems-bsps-aarch64.ini: Remove trailing comma causing empty BSP name 2022-09-21 08:31:00 -05:00
Joel Sherrill
53a8d85914 rtems-bsps-aarch64.ini, rtems-bsps-tiers.ini: Remove versal ilp32 variants 2022-09-07 10:02:07 -05:00
Daniel Cederman
99cc1fb79a tester: Load RISC-V image using -bios and increase memory size
This avoids overlapping the RTEMS image with the builtin opensbi image
and the location of the fdt.
2022-08-19 16:14:35 +02:00
Daniel Cederman
a5d0291ccc tester: Add option to specify how to load image with QEMU
Defaults to "-kernel", but can be changed to, for example, "-bios".
2022-08-19 16:12:43 +02:00
Ryan Long
f3d9c87958 rtemstoolkit: Fix conditions using "is" with literals
Fix warnings that come from python 3.8 about using the "is" operator with
string literals.

Closes #4700
2022-08-12 09:26:27 -05:00
Sebastian Huber
1cd476e155 tester: Sort test reports for JSON/YAML
This makes the reports more git friendly.

Update 4671.
2022-08-08 06:42:34 +02:00
Ryan Long
ace7db96d4 rtems-syms.cpp: Change check to pointer size
Changed from a RISC-V specific value being in the conditional to a check for
the size of the architecture's pointer.

Closes #4673
2022-07-29 08:25:35 -05:00
Sebastian Huber
ef4b8c53f9 tester: Normalize JSON and YAML reports
Report the same data in JSON and YAML reports.  Do not report redundant
information.

Update 4671.
2022-07-26 14:31:32 +02:00
Sebastian Huber
e3a5912249 tester: Fix string representation 2022-07-26 13:43:37 +02:00
Chris Johns
3d54ccfaa5 tester: Make the SIS time limit user configurable
Let the user set the test time limit in a config file to
provide site specific overrides. Optimisation can effect
the time a test may take to run.
2022-07-06 09:43:44 +10:00
Karel Gardas
dafcdf4400 rtems-bsps-tiers: add new stm32h7 BSP variants to the tier-3 2022-06-04 18:45:48 +02:00
Karel Gardas
a7ba0563ff rtems-bsps-arm: add new stm32h7 BSP variants 2022-06-04 18:44:38 +02:00
Karel Gardas
ff36d6b42d tester/bsps: add stm32h7-stlink family configuration
Sponsored-By:	Precidata
2022-05-30 01:21:53 +02:00
Karel Gardas
43843b85fe tester/gdb: allow kill on the test end
Sponsored-By:	Precidata
2022-05-29 19:47:05 +02:00
Chris Johns
f199d42e47 linkers: Speed up reading large executables for all cases except inlining
- Only load the function DWARF data if checking inlines
2022-05-18 18:17:33 +10:00
Karel Gardas
ff68bccc25 rtemstoolkit:libelf: sync _libelf_config.h with FreeBSD
This fixes compilation issue on Apple M1.
2022-05-17 21:19:49 +10:00
Alex White
072f88f4d4 rtemstoolkit/rld-path.cpp: Fix double free 2022-03-09 16:06:09 -06:00
Christian Mauderer
3c0e4f74f1 bin2c: Add option for alignment
Sometimes it's useful if structures are aligned. This patch add a

  -A alignment

option. Note that this doesn't check for valid alignments. It accepts
any positive number in decimal or hex format. If for example an
alignment of 7 is specified, the compiler will complain that it is not a
power of 2. But it's not really useful to duplicate this check here.
2022-02-14 16:35:31 +01:00
Joel Sherrill
5c80f3023e rtems-bsps.ini: Correct spelling of aarch64 2022-02-03 11:49:42 -06:00
Joel Sherrill
7568978183 linkers/rtems-score/thread*.ini: Remove symbols no longer present.
Close #4585.
2022-01-25 17:55:02 -06:00
Joel Sherrill
91a58afdc8 rtems-bsps-tiers.ini: Move appropriate aarch64 BSPs to Tier 1 and 2
This also resulted in finding some BSPs listed which were no longer
in the RTEMS source.

Updates #4581.
2022-01-21 09:20:26 -06:00
Joel Sherrill
74270bc912 rtems-bsps.ini: Add missing architectures and BSPs
The aarch64, microblaze, nios2, and x86_64 needed to be added.
2022-01-21 09:19:08 -06:00