| Commit message (Collapse) | Author | Files | Lines |
|
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.
|
|
warnings
|
|
|
|
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().
|
|
Script does what is expected and tries to do it as
smartly as possible.
+ remove occurrences of two blank comment lines
next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
contain CVS Ids
+ If the processing left a blank line at the top of
a file, it was removed.
|
|
|
|
* include/bsp.h: Eliminate BSPs defining NUMBER_OF_TERMIOS_PORTS.
Should be automatically handled by confdefs.h or the application.
|
|
* include/bsp.h, startup/bspstart.c:
|
|
* include/bsp.h: Remove unnecessary boilerplate comments.
|
|
* ChangeLog, Makefile.am, README, bsp_specs, configure.ac,
preinstall.am, console/console.c, include/bsp.h,
network/networkconfig.c, start/start.S, startup/bspstart.c,
startup/linkcmds: New files.
|
|
* include/bsp.h: Fix CVS Id.
|
|
* 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: Move interrupt_stack_size field
from CPU Table to Configuration Table. Eliminate CPU Table from all
ports. Delete references to CPU Table in all forms.
|
|
|
|
* include/bsp.h, startup/bspstart.c: Fix compile errors and address
most warnings about constants being too large.
|
|
* include/bsp.h: Eliminate hi, lo, HI, LO, and MK_BMSK.
|
|
* configure.ac, eZKit533/configure.ac, eZKit533/include/bsp.h,
shared/start/start.S: Make use of separated bfin helper .h files.
|
|
* bfin/ChangeLog, bfin/Makefile.am, bfin/acinclude.m4,
bfin/configure.ac, bfin/eZKit533/.cvsignore, bfin/eZKit533/ChangeLog,
bfin/eZKit533/Makefile.am, bfin/eZKit533/README,
bfin/eZKit533/bsp_specs, bfin/eZKit533/configure,
bfin/eZKit533/configure.ac, bfin/eZKit533/preinstall.am,
bfin/eZKit533/times, bfin/eZKit533/console/console-io.c,
bfin/eZKit533/include/.cvsignore, bfin/eZKit533/include/bsp.h,
bfin/eZKit533/include/bspopts.h.in, bfin/eZKit533/include/coverhd.h,
bfin/eZKit533/include/tm27.h, bfin/eZKit533/startup/bspstart.c,
bfin/eZKit533/startup/linkcmds, bfin/shared/clock/clockdrv.c,
bfin/shared/clock/rtc.c, bfin/shared/clock/tod.h,
bfin/shared/console/console.c, bfin/shared/start/start.S,
bfin/shared/timer/timer.c: New files.
|