| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
_arch_from_arch_bsp() and _bsp_from_arch_bsp() has overly optimistic
assumptions that the argument must contain a '-'-separated field which
starts with "rtems". These functions are intended to find the target
triplet or the bsp parts of strings like "sparc-gaisler-rtems5-leon3"
and "arm-rtems6-xilinx_zynq_zc702"
But _find_installed_arch_bsps() may call _arch_from_arch_bsp() with the
name (without file extension) of any file which ends with ".pc",
including for example "expat". This triggers a StopIteration exception
when trying to find the next field after the "rtems" field, since no
"rtems" field exists to start with.
Rework these function to remove the preconditions, so that they return
None if no "rtems" field exist or if no field exists before or after the
"rtems" field.
It could be argued. based on their name, that calling these functions
with something that is not a triplet-bsp string is incorrect to start
with, but attempting to address that is not done here.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rework the splitting of arch and bsp to rely on the last field in the
arch section starting with "rtems", instead of relying on the arch being
exactly two fields in size.
This makes sure that toolchains with a vendor field in their target
triplet can be used with this build system.
Toolchains produced by the RTEMS source builder tend to omit the vendor
field, but for example the SPARC LEON/ERC32 toolchain provided by
Gaisler through the RCC package does include a vendor field.
|
|
|
|
| |
- This fixes the support for the change in RTEMS to use -isystem
|
| |
|
|
|
|
|
|
|
|
|
| |
- Fix the IFLAGS env variable to be a list of includes without the
compiler option
- Add a utility call to return the arch/bsp as a name
- Move the options into the configure section of waf
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Use a test body with a proper RTEMS application configuration to avoid a
dependency on the default configuration. Do not include
<rtems/score/cpuopts.h> directly since this header file is an
implementation detail.
Update #3551.
|
|
|
|
| |
closes #3424.
|
|
|
|
|
|
|
| |
There is no `bin` directory anymore with RTEMS 5 so the test fails. Check
for the `share/rtems<version>` directory.
Closes #3500.
|
|
|
|
|
|
| |
In the current version of libbsd, if the --show-commands option is used,
the cwd is passed as a Nod3. Popen does not work with that. Therefore
create a string from cwd if it isn't already.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
If the --show-commands is set, the cmd-string is joined for printing.
This breaks a later Popen call that expects an array instead of an fully
assembled string. This patch fixes the problem.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To use add to your wscript file:
rtems.root_filesystem(bld, 'rootfs',
['etc/rc.conf'],
'rootfs.tar', 'rootfs-tar.o')
to create a rootfs-tar.o which you add to your executable's list of
sources.
In your main or Init function add:
#include <rtems/untar.h>
extern int _binary_rootfs_tar_start;
extern int _binary_rootfs_tar_size;
static void expand_rootfs_tarfile(void)
{
rtems_status_code sc;
rtems_printer printer;
rtems_print_printer_printf(&printer);
sc = Untar_FromMemory_Print((void *)(&_binary_rootfs_tar_start),
(size_t)&_binary_rootfs_tar_size,
&printer);
if (sc != RTEMS_SUCCESSFUL)
fprintf(stderr, "error: untar failed: %s\n", rtems_status_text(sc));
}
Note, some arch's may not need the '_' at the start of the tar symbols.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
message.
Allow an application the ability to set a version number for RTEMS. This avoids
issues with the automatic detection code. It means an application becomes keyed
to a specific version of RTEMS.
Check the environment for variables being set that could effect a build. We
allow the environment to do this but it can have a side effect such as CC being
set for one architecture and the rtems_waf being asked to use another.
Print the version of CC being used. This is a diagnostic.
|
| |
|
| |
|
|
|
|
|
|
| |
Now the configuration is quite simple for standard installations, e.g.
waf configure --prefix=/opt/rtems-4.12 --rtems-bsps=sparc/sis
|
|
|
|
| |
Close #2440.
|
|
|
|
|
|
| |
Set mandatory C++ standard option in case SMP is enabled.
Close #2418.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
The handler is called with the BSP environment set up so the
user can perform various checks.
|
|
|