Commit Graph

36 Commits

Author SHA1 Message Date
Sebastian Huber
715d6167e0 bsps: Support .rtemsstack.* linker input sections
Use a dedicated memory region or place it between the BSS and workspace.

Update #3459.
2018-06-27 08:58:16 +02:00
Sebastian Huber
7ee5931393 Remove Clock_driver_support_shutdown_hardware()
The aim of this clock driver hook was to stop clock tick interrupts at
some late point in the exit() procedure.

The use of atexit() pulls in malloc() which pulls in errno. It is
incompatible with the intention of the
CONFIGURE_DISABLE_NEWLIB_REENTRANCY configuration option.

The exit() function must be called from thread context, so accompanied
clock tick interrupts should cause no harm.  On the contrary, someone
may assume a normal operating system operation, e.g. working timeouts.

Remove the Clock_driver_support_shutdown_hardware() clock driver hook.

Close #3436.
2018-06-27 08:58:16 +02:00
Sebastian Huber
e8b28ba004 tools: Remove packhex
All tools should be removed from the RTEMS source repository at some
point in time.  Tools with a BSD-style license will be moved to the
RTEMS tools repository.  Unfortunately, this tool has no license
information.

Remove all uses of this tool from the code base.  Users of HEX files
should consider to use ELF instead.

Close #3379.
2018-06-15 07:14:36 +02:00
Sebastian Huber
419d1e91a2 bsp/mcf5206elite: Do not install runtest script
Provide the runtest script only as a part of the sources.  This
simplifies the build system.

Test support should be included in the RTEMS Tester.
2018-04-26 07:17:58 +02:00
Sebastian Huber
eb36d1198c bsps: Move documentation, etc. files to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-26 07:17:57 +02:00
Sebastian Huber
a79d650d0d bsp/mcf5206elite: Move nvram.c to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-25 11:02:24 +02:00
Sebastian Huber
0e15ba3ea3 bsp/mrm332: Move interr.c to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-25 11:02:23 +02:00
Sebastian Huber
100c9723d1 bsp/mrm332: Move spinit.c to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-25 11:02:23 +02:00
Sebastian Huber
fd67814e06 bsps: Move GDB stubs to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-23 15:18:45 +02:00
Sebastian Huber
4fb1b79a80 bsps: Move RTC drivers to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-23 15:18:44 +02:00
Sebastian Huber
031df39149 bsps: Move legacy network drivers to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-23 15:18:44 +02:00
Sebastian Huber
8f8ccee0d9 bsps: Move interrupt controller support to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-23 15:18:44 +02:00
Sebastian Huber
276afd2b48 bsps: Move SPI drivers to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-23 15:18:43 +02:00
Sebastian Huber
a2dad96ab7 bsps: Move I2C drivers to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-23 15:18:43 +02:00
Sebastian Huber
adb85dd473 bsps: Move make/custom/* files to bsps
Adjust various build files.  Remove automatic generation of the
c/src/lib/libbsp/*/acinclude.m4 files from bootstrap script.

This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-23 15:18:42 +02:00
Sebastian Huber
1efa1c8389 bsps: Move MPCI support to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-20 14:32:43 +02:00
Sebastian Huber
e0dd8a5ad8 bsps: Move benchmark timer to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-20 13:52:19 +02:00
Sebastian Huber
9964895866 bsps: Move startup files to bsps
Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-20 13:52:14 +02:00
Sebastian Huber
fbcd7c8fa6 bsps: Move start files to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-20 13:08:36 +02:00
Sebastian Huber
d7d66d7d45 bsps: Move console drivers to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-20 13:08:32 +02:00
Sebastian Huber
7632906fc2 bsps: Move clock drivers to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-20 09:57:01 +02:00
Sebastian Huber
0510cd506b bsps: Move doxygen.h files to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-20 09:49:36 +02:00
Sebastian Huber
c4ccf26cb7 bsps: Convert all bsp_predriver_hook()
Use RTEMS_SYSINIT_ITEM() instead.

Update #2408.
2018-04-20 09:49:36 +02:00
Sebastian Huber
d5842691e1 bsps: Remove librtemsbsp.a wrapup
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-09 07:09:47 +02:00
Sebastian Huber
0f0f249c79 bsps/m68k: Rename fpsp.am to fpsp-sources.am
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-05 07:26:24 +02:00
Sebastian Huber
b54558ac9d bsps/mcf5225x: Move libcpu content to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-03-26 15:12:50 +02:00
Sebastian Huber
4d22b554c2 bsps/m68k: Fix warning 2018-03-26 15:12:50 +02:00
Sebastian Huber
945095d062 bsps/genmcf548x: Move libcpu content to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-03-26 15:12:50 +02:00
Sebastian Huber
ddf3ea2bc3 bsps/csb360: Move libcpu content to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-03-26 15:12:49 +02:00
Sebastian Huber
2190bc61bf bsps/mcf5206elite: Move libcpu content to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-03-26 15:12:49 +02:00
Sebastian Huber
3cf2bf633f bsps/m68k: Move fpsp support to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-03-26 15:12:49 +02:00
Sebastian Huber
fc2ec62978 bsps/m68k: Move libcpu content to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-03-26 15:12:48 +02:00
Joel Sherrill
0c70535d54 mcf5272.h: Fix duplicate defintions for INT3
Closes #3344.
2018-03-16 08:36:18 -05:00
Joel Sherrill
ca866cc519 mcf5206elite/include/ds1307.h: Fix extra tokens at end of #endif warning 2018-03-16 08:36:17 -05:00
Sebastian Huber
4cf93658ef bsps: Rework cache manager implementation
The previous cache manager support used a single souce file
(cache_manager.c) which included an implementation header (cache_.h).
This required the use of specialized include paths to find the right
header file.  Change this to include a generic implementation header
(cacheimpl.h) in specialized source files.

Use the following directories and files:

* bsps/shared/cache

* bsps/@RTEMS_CPU@/shared/cache

* bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILY/start/cache.c

Update #3285.
2018-01-31 12:49:09 +01:00
Chris Johns
2afb22b7e1 Remove make preinstall
A speciality of the RTEMS build system was the make preinstall step.  It
copied header files from arbitrary locations into the build tree.  The
header files were included via the -Bsome/build/tree/path GCC command
line option.

This has at least seven problems:

* The make preinstall step itself needs time and disk space.

* Errors in header files show up in the build tree copy.  This makes it
  hard for editors to open the right file to fix the error.

* There is no clear relationship between source and build tree header
  files.  This makes an audit of the build process difficult.

* The visibility of all header files in the build tree makes it
  difficult to enforce API barriers.  For example it is discouraged to
  use BSP-specifics in the cpukit.

* An introduction of a new build system is difficult.

* Include paths specified by the -B option are system headers.  This
  may suppress warnings.

* The parallel build had sporadic failures on some hosts.

This patch removes the make preinstall step.   All installed header
files are moved to dedicated include directories in the source tree.
Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc,
etc.  Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g.
erc32, imx, qoriq, etc.

The new cpukit include directories are:

* cpukit/include

* cpukit/score/cpu/@RTEMS_CPU@/include

* cpukit/libnetworking

The new BSP include directories are:

* bsps/include

* bsps/@RTEMS_CPU@/include

* bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include

There are build tree include directories for generated files.

The include directory order favours the most general header file, e.g.
it is not possible to override general header files via the include path
order.

The "bootstrap -p" option was removed.  The new "bootstrap -H" option
should be used to regenerate the "headers.am" files.

Update #3254.
2018-01-25 08:45:26 +01:00