1905 Commits

Author SHA1 Message Date
Chris Johns
089780d2de waf: Implement module dependency checking in the build system
- Do not build a test if a dependency is not enabled.

- Perform a dependency check and generate an error if an enabled module
  depends on a disabled module.

Closes #4077
2020-09-16 15:52:15 +10:00
Chris Johns
025af7c529 build: Separate the kernel and user land include paths
- Provide support for separate user and kernel include paths in
  libbsd.py.

- Update all added files with a suitable context to build them
  with. Supported contexts are `kernel` and `user`.

- Kernel source use the kernel, CPU, and build header paths in
  this order.

- User source use the user, kernel, CPU and build header paths
  in this order. The FreeBSD /usr/include tree has some kernel
  header files installed as well as user land header files. This
  complicates the separation as some kernel header files are not
  visible to user land code while other are. This is handled by
  appending the kernel header paths to the user header paths so
  user land code will include a user header with the same name as
  a kernel header over the kernel header but will find a kernel
  header if there is no matching user header file.

Closes #4067
2020-09-16 15:52:15 +10:00
Chris Johns
c8c03f73f1 waf: Add a config report 2020-09-16 15:52:15 +10:00
Chris Johns
93effa4b01 waf: Reformat to PEP8 using yapf 2020-09-16 15:52:15 +10:00
Sebastian Huber
5eed6acb5f rtems-bsd-cxx: Undefine _GNU_SOURCE
At least the powerpc C++ compiler defines currently _GNU_SOURCE due to a GCC
configuration error.  This leads to conflicting qsort_r() definitions.

As a workaround undefine _GNU_SOURCE for this C++ compatibility test file.

Update #4078.
2020-09-14 17:13:12 +02:00
Sebastian Huber
2abb02ebae mcast01: Add test program 2020-09-10 09:49:28 +02:00
Sebastian Huber
272d5f522d ifmcstat: Port to RTEMS 2020-09-07 10:12:44 +02:00
Sebastian Huber
11bdcef24d ifmcstat: Import from FreeBSD 2020-09-07 09:39:22 +02:00
Sebastian Huber
03d7f76a81 nfsclient: Next attempt to fix 64-bit targets
In serporidok use the same structures used to hand over to the XDR
encode/decode routines.  We must not mix packed and unpacked structures.

Update #4025.
2020-08-18 07:32:20 +02:00
Sebastian Huber
d964a6703c telnet: Use rtems_shell_dup_current_env()
Update #3859.
2020-08-06 13:21:00 +02:00
Sebastian Huber
bd7e6eeb31 Conditionally include <bsp/linker-symbols.h>
Remove superfluous <bsp.h> include.
2020-08-05 15:04:48 +02:00
Sebastian Huber
c4233ce8ac racoon: Change type due to Newlib API changes 2020-08-05 13:21:46 +02:00
Christian Mauderer
9abf1d3885 testsuite: Use new name of test-info.h.
In RTEMS the test.h has been renamed to test-info.h to allow the new
test framework to take over.
2020-07-31 08:32:17 +02:00
Christian Mauderer
97dc907946 if_ffec: Align send buffers to cache if necessary. 2020-07-29 13:09:11 +02:00
Christian Mauderer
7e453ad5c9 imx: Don't use USB_NEED_BUSDMA_COHERENT_ALLOC
That option makes problems with some drivers because the buffers are not
allways cache line aligned.

Update 3869
2020-07-29 13:09:11 +02:00
Christian Mauderer
5e3780023c busdma: Don't sync nocache memory on ARM
The busdma shouldn't try to flush or invalidate cache in a nocache area.
2020-07-29 13:09:11 +02:00
Christian Mauderer
bbdac23a5a rtwn_usb: Make sure buffers are cache aligned 2020-07-29 13:09:11 +02:00
Christian Mauderer
cdd6003eb8 busdma: Option to round to cache lines on sync
Some targets support only flushing or invalidating complete cache lines.
In this cases misaligned buffers might lead to unexpected results. This
patch adds a flag that allows drivers to signal to the bus dma driver
that it is OK to round a buffer to the next full cache line. That's for
example necessary if a driver wants to send out 14 byte via a USB DMA.
Only the driver knows whether these 14 bytes are located in an otherwise
unused cache line aligned buffer.
2020-07-29 13:09:11 +02:00
Christian Mauderer
1398d9329f imx: Use RTEMS GPIO driver instead of FreeBSD one
Update 3869
2020-07-29 13:09:11 +02:00
Christian Mauderer
4c762de2fd gpioregulator: Remove.
There is a bug in the #ifdef regarding FDT so this file hasn't been
compiled. If that bug is solved, the driver doesn't work for some other
reason.

With the FDT-bug the driver hasn't been used by anyone. So just remove
it again.
2020-07-29 13:09:11 +02:00
Christian Mauderer
d044b29ac4 wscript: Update RTEMS version to 6. 2020-07-29 13:09:11 +02:00
Sebastian Huber
26866d2c1f Fix linker errors with minimal build set 2020-07-08 10:21:20 +02:00
Sebastian Huber
36a19bfde4 build: Do not convert cflags to defines
This makes it possible to use module-specific C flags, for example to
instrument functions (-finstrument-functions).
2020-06-25 09:38:10 +02:00
Sebastian Huber
7d194e5f55 mDNSResponder: Port to RTEMS
Update #4010.
2020-06-23 18:13:59 +02:00
Sebastian Huber
2cd95115ef mDNSResponder: Update to v878.270.2
The sources can be obtained via:

https://opensource.apple.com/tarballs/mDNSResponder/mDNSResponder-878.270.2.tar.gz

Update #4010.
2020-06-23 18:13:59 +02:00
Sebastian Huber
d58e81b8bc mDNSResponder: Update to v878.260.1
The sources can be obtained via:

https://opensource.apple.com/tarballs/mDNSResponder/mDNSResponder-878.260.1.tar.gz

Update #4010.
2020-06-23 18:13:59 +02:00
Sebastian Huber
d49a86298c mDNSResponder: Update to v878.250.4
The sources can be obtained via:

https://opensource.apple.com/tarballs/mDNSResponder/mDNSResponder-878.250.4.tar.gz

Update #4010.
2020-06-23 18:13:59 +02:00
Sebastian Huber
8aace47bba mDNSResponder: Update to v878.240.1
The sources can be obtained via:

https://opensource.apple.com/tarballs/mDNSResponder/mDNSResponder-878.240.1.tar.gz

Update #4010.
2020-06-23 18:13:59 +02:00
Sebastian Huber
a8a0ba93fa mDNSResponder: Update to v878.230.2
The sources can be obtained via:

https://opensource.apple.com/tarballs/mDNSResponder/mDNSResponder-878.230.2.tar.gz

Update #4010.
2020-06-23 18:13:59 +02:00
Sebastian Huber
c6d65faa42 mDNSResponder: Update to v878.200.35
The sources can be obtained via:

https://opensource.apple.com/tarballs/mDNSResponder/mDNSResponder-878.200.35.tar.gz

Update #4010.
2020-06-23 18:13:59 +02:00
Sebastian Huber
0a1f82a346 mDNSResponder: Update to v878.70.2
The sources can be obtained via:

https://opensource.apple.com/tarballs/mDNSResponder/mDNSResponder-878.70.2.tar.gz

Update #4010.
2020-06-23 18:13:59 +02:00
Sebastian Huber
79fabda817 mDNSResponder: Update to v878.50.17
The sources can be obtained via:

https://opensource.apple.com/tarballs/mDNSResponder/mDNSResponder-878.50.17.tar.gz

Update #4010.
2020-06-23 18:13:59 +02:00
Sebastian Huber
a4a6523309 mDNSResponder: Back to mDNSResponder-878.30.4
Update #4010.
2020-06-23 18:13:59 +02:00
Sebastian Huber
6ac77389a3 epoch01: Fix sporadic test failures 2020-06-23 14:10:44 +02:00
Christian Mauderer
d38dbbe18e imx6_usbphy: Fix regulator (vbus-supply)
Update #3869.
2020-04-20 09:20:09 +02:00
Christian Mauderer
318422720b regulator: Disable FDT parts for non-FDT targets 2020-04-17 14:43:51 +02:00
Jan Sommer
a69293ca57 i386: Port to RTEMS
- Update imported files to compile rtems-libbsd for i386 based BSPs
- Mostly commenting out parts which create compile or link errors in
RTEMS, but aren't needed
2020-04-17 13:18:06 +02:00
Jan Sommer
dc86c55f51 i386: Delete old machine dependent files
- The files in the i386 directory have been moved to common x86 directories by FreeBSD:
  - freebsd/sys/x86/x86/legacy.c
  - freebsd/sys/x86/include/machine/legacyvar.h
  - freebsd/sys/x86/include/machine/specialreg.h
- Add header files in rtemsbsd directory to direct compiler to new files
2020-04-17 13:15:51 +02:00
Jan Sommer
efe9b55393 iflib.c: Deactivate use of ifc_cpus
- cpusets and SMP are currently not supported in libbsd for RTEMS
- Disable the ifc_cpus context variable and replace its usage,
essentially hard-coding for cpu 0
2020-04-17 13:15:51 +02:00
Jan Sommer
fb5499af2f Callout: Redefine callout_reset_on for rtems
- callout_reset_on takes a cpu which is ignored by the subsequent call
to callout_reset_sbt_on in RTEMS.
- The macro is redefined to discard the cpu argument directly which
enables uses of it with cpu-dependent variables (disabled in
RETMS) without further changes, e.g. in iflib.c.
2020-04-17 13:15:51 +02:00
Jan Sommer
079bdd3677 i386: Add missing files to build system
- Update FreeBSD files in libbsd.py to required by i386 based BSPs
- Some machine specific header files have moved to different directories
in FreeBSD
- Add missing files e1000 network driver (iflib*)
2020-04-17 13:15:50 +02:00
Jan Sommer
dbf72c205d waf: Add path-mappings feature
- path-mappings allow to fix autogenerated include paths for some corner
cases of target platforms without the need to change the build system
- Currently used for i386 based bsps
2020-04-17 13:15:50 +02:00
Jan Sommer
ce5b52d575 i386: Add missing files from FreeBSD
- Files needed to make rtems-libbsd build again for i386
2020-04-17 13:15:50 +02:00
Christian Mauderer
592003fa3e imx: Fix build for all other BSPs. 2020-04-16 10:51:48 +02:00
Christian Mauderer
b3da96ceb8 imx6_usbphy: Add regulator (vbus-supply).
Update #3869.
2020-04-15 16:14:18 +02:00
Christian Mauderer
2eab5465f3 ehci_imx: Set/clear ENHOSTDISCONNECT in USB PHY.
This is not a nice solution but it should work on all chips. As soon as
FreeBSD has a nice solution via the USB PHY driver, this should be
replaced.

Update #3869.
2020-04-15 16:14:18 +02:00
Christian Mauderer
c5455b03ed ehci_imx: Add to build. 2020-04-15 16:14:18 +02:00
Christian Mauderer
4a2d99b4b0 ehci_imx: Port to RTEMS
Update #3869.
2020-04-15 16:14:18 +02:00
Sebastian Huber
29eda67d54 ehci_imx: Import from FreeBSD
Update #3869.
2020-04-15 16:14:18 +02:00
Christian Mauderer
113662dfaf Add support for i.mx cache.
Update #3869.
2020-04-14 16:39:21 +02:00