| Commit message (Collapse) | Author | Files | Lines |
|
|
|
Update #3706.
|
|
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.
|
|
|
|
|
|
|
|
This was done by the following script run from libbsp:
find * -name bsp.h | xargs -e grep -l "#ifndef.*_BSP_H" | while read b
do
echo $b
cpu=`echo $b | cut -d'/' -f1 | tr '[:lower:]' '[:upper:]' `
bsp=`echo $b | cut -d'/' -f2 | tr '[:lower:]' '[:upper:]' `
g="LIBBSP_${cpu}_${bsp}_BSP_H"
# echo $g
sed -e "s/ifndef _BSP_H/ifndef ${g}/" \
-e "s/define _BSP_H/define ${g}/" \
-i $b
done
|
|
Some includes may use C++ and this conflicts if surrounded extern "C".
|
|
|
|
|
|
Include <bsp/default-initial-extension.h> in all BSPs. Call
rtems_fatal() with RTEMS_FATAL_SOURCE_EXIT as source and the exit()
status code as fatal code in every bsp_cleanup(). Move previous
bsp_cleanup() code into bsp_fatal_extension().
|
|
|
|
|
|
PR 1738/bsps
* clock/clock.c, include/bsp.h, network/network.c: system clock driver
programs the PIT w/o assuming the CPU clock frequency being a power
of two.
|
|
|
|
* clock/clock.c, include/bsp.h: Rename BSP specific idle thread to
bsp_idle_thread.
|
|
|
|
* clock/clock.c, include/bsp.h: Make bsp idle thread names match.
|
|
* clock/clock.c, include/bsp.h: Change prototype of IDLE thread to
consistently return void * and take a uintptr_t argument.
|
|
* Makefile.am, configure.ac, include/bsp.h, startup/bspstart.c: Rename
existing bsp_reset() to bsp_sysReset() since the prototype did not
match the standard one. Add standard bsp_reset().
* startup/bspreset.c: New file.
|
|
* include/bsp.h: Remove unnecessary boilerplate comments.
|
|
* include/bsp.h: Review of all bsp_cleanup() implementations. In this
phase, all prototypes were removed from bsp.h and empty
implementations were removed and made to use the shared stub.
|
|
* clock/clock.c, include/bsp.h: Correct prototype of idle thread. Eric
Norum pointed out this was wrong.
|
|
* clock/clock.c, include/bsp.h, startup/bspstart.c: Eliminate copies of
the Configuration Table. Use the RTEMS provided accessor macros to
obtain configuration fields.
|
|
* include/bsp.h, startup/bspstart.c: Moved most of the remaining CPU
Table fields to the Configuration Table. This included
pretasking_hook, predriver_hook, postdriver_hook, idle_task,
do_zero_of_workspace, extra_mpci_receive_server_stack,
stack_allocate_hook, and stack_free_hook. As a side-effect of this
effort some multiprocessing code was made conditional and some style
clean up occurred.
|
|
* clock/clock.c, console/console.c, include/bsp.h, include/coverhd.h,
include/tm27.h, network/network.c, start/start.S, startup/bspclean.c,
startup/bspstart.c, startup/init5282.c, startup/linkcmds,
timer/timer.c: Correct license URL and/or fix mistake in copyright
notice. Both of these mistakes appear to be from code submitted after
these changes were made previously.
|
|
PR 1227/bsps
* include/bsp.h: Remove MAX_LONG_TEST_DURATION and
MAX_SHORT_TEST_DURATION. They are obsolete and unused.
|
|
|
|
|
|
* include/bsp.h: New header guard.
|
|
|
|
Improve in-line assembly.
|
|
Add some more system calls.
|
|
* console/console.c, include/bsp.h, network/network.c,
startup/bspstart.c: Remove obsolete fixed size types.
|
|
|
|
mechanism for applications to find a free level/priority.
|
|
|
|
|
|
|