Commit Graph

289 Commits

Author SHA1 Message Date
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
Joel Sherrill
7d905dffad aclocal/check-bsps.m4: Do not rely on bsp_specs to find BSP families
Updates #3520.
2017-11-27 09:50:05 -06:00
Sebastian Huber
cb406870aa Change RTEMS_API from 5.0 to 5
This fixes the legacy Makefile based build system which expects
RTEMS_API to be identical to the tool chain version.

Update #3220.
2017-11-13 08:39:54 +01:00
Sebastian Huber
4a14751879 Upgrade to 5.0.0
Tool name will be "rtems5", e.g. arm-rtems5-gcc.

Next release will 5.1.0.  Branch version after release will be 5.1.1.
Next master will be 6.0.0.
2017-11-09 08:12:11 +01:00
Hesham Almatary
11ff3a9e72 cpukit: RISC-V - make riscv32 code work for riscv64 - v2
* Use #ifdefs for 32/64 bit code
* Use unsigned long which is 32-bit on riscv32 and 64-bit on riscv64 (register size)
* Move the code to a new shared riscv folder to be shared between riscv32 and riscv64
* Rename RTEMS_CPU extracted from command line to shared riscv target s/riscv*/riscv

Update #3109
2017-11-01 10:10:27 +11:00
Chris Johns
9a4eca5843 build-system: Always enable C++ if the compiler is present.
We always build a C++ compiler and building with C++ does not effect
RTEMS or the runtime. This patch always enabled the support. There is
no need to manually enable it any more.

You can disable C++ with '--disable-cxx'.

If an architecture does not have a C++ compiler support is automatically
disabled.
2016-08-11 17:20:10 +10:00
Sebastian Huber
808230add9 Upgrade to 4.11.99.0 2015-09-11 08:24:18 +02:00
Daniel Hellstrom
e7fade3ac4 DRVMGR: added driver manager to cpukit/libdrvmgr 2015-04-17 01:10:16 +02:00
Sebastian Huber
d9196d1da7 configure: Paravirtualization for all targets
Virtual machines with paravirtualization exist not only on x86.
2014-05-08 08:40:35 +02:00
Philipp Eppelt
a9051de9e0 add --enable-paravirt to the configure options 2013-11-27 15:54:04 -05:00
Sebastian Huber
aec0e1958e configure: Documentation 2013-06-12 16:11:24 +02:00
Sebastian Huber
f2f211c543 smp: Add ARM support 2013-05-31 15:20:32 +02:00
Sebastian Huber
ffbeb6f6a3 smp: Add PowerPC support 2013-05-31 15:20:32 +02:00
Ralf Corsépius
6963854ddc Remove references to configure.in. 2012-05-18 07:47:52 +02:00
Ralf Corsépius
bbb69abb98 Remove stray dnl. 2012-05-18 07:24:47 +02:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
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.
2012-05-11 08:44:13 -05:00
Joel Sherrill
33a105fb69 Revert: Remove CVS Ids
See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html
for details.
2012-05-07 11:08:48 -05:00
Ralf Corsépius
27272db336 Remove CVS-Ids. 2012-05-04 09:36:25 +02:00
Joel Sherrill
b6afcb6083 2011-05-24 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1810/misc
	* ChangeLog: Fix previous damage.
2011-06-28 20:43:53 +00:00
Joel Sherrill
054b1c6fe9 2011-03-16 Jennifer Averett <jennifer.averett@OARcorp.com>
PR 1729/cpukit
	* aclocal/enable-smp.m4: New file.
2011-03-16 20:06:55 +00:00
Ralf Corsepius
44dd5dc438 2011-03-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/rtems-top.m4: Add pkgdatadir.
	Override pkgdatadir to $(datadir)/rtems$_RTEMS_API.
	* Makefile.am: Install make/Templates to pkgdatadir.
2011-03-06 11:03:33 +00:00
Ralf Corsepius
b42cae739f 2011-03-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* Makefile.maint, aclocal/rpm.m4, aclocal/rtems-top.m4,
	aclocal/version.m4: Rename RTEMS_API into _RTEMS_API.
2011-03-04 16:22:17 +00:00
Joel Sherrill
f79bc77d8e 2010-07-27 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1532/testing
	* aclocal/project-root.m4: Add initial tests for untar capabilities.
2010-07-27 18:17:46 +00:00
Ralf Corsepius
dea33e831c 2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/enable-itron.m4: Remove.
	* configure.ac: Remove itron.
2010-06-17 15:38:54 +00:00
Ralf Corsepius
ba021d5c42 2010-06-07 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/version.m4: Bump RTEMS_API to 4.11.
	Bump _RTEMS_VERSION to 4.10.99.0.
2010-06-07 19:33:53 +00:00
Ralf Corsepius
ea2b19d9a5 2010-05-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/bsp-alias.m4: Change quoting to work-round
	http://www.freebsd.org/cgi/query-pr.cgi?pr=146378.
2010-05-11 15:05:19 +00:00
Ralf Corsepius
d387391a7e 2009-10-23 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/check-custom-bsp.m4: Be less verbose.
2009-10-23 13:09:30 +00:00
Ralf Corsepius
2627c966dc 2009-10-21 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/bsp-alias.m4: Fix quoting bug.
2009-10-21 09:26:05 +00:00
Ralf Corsepius
565fdd2d41 Remove "blacklist". 2009-10-17 15:53:54 +00:00
Ralf Corsepius
eba5dc6b44 Remove "${srcdir}/${RTEMS_TOPdir}/make/custom/$1". 2009-10-17 15:53:40 +00:00
Ralf Corsepius
b68265df9b 2009-10-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/bsp-alias.m4: Remove bare BSP (Abandoned).
2009-10-16 14:24:43 +00:00
Ralf Corsepius
c14858f098 Cosmetics. 2009-10-16 01:41:54 +00:00
Ralf Corsepius
9ffd6b80b9 2009-10-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/bsp-alias.m4: Pickup bsps from
	c/src/lib/libbsp/<cpu>/<bsp_family>/make/custom*.cfg.
2009-10-16 01:34:46 +00:00
Ralf Corsepius
6504558153 2009-10-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/check-bsps.m4: Pickup bsps from
	c/src/lib/libbsp/<cpu>/<bsp_family>/make/custom*.cfg.
2009-10-15 14:15:34 +00:00
Ralf Corsepius
bc7353d5f2 2009-10-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/check-custom-bsp.m4: Let _RTEMS_CHECK_CUSTOM_BSP look for
	*.cfg into c/src/lib/libbsp/<cpu>/<bsp_family>/make/custom.
2009-10-15 03:50:38 +00:00
Ralf Corsepius
6cb0f7ed02 Remove posix/unix simulator. 2009-10-14 12:12:01 +00:00
Thomas Doerfler
aa5ddd3d77 renamed lpc24xx BSPs 2009-10-05 10:32:55 +00:00
Joel Sherrill
58236c8ffa 2009-10-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* aclocal/bsp-alias.m4: Add BSP for GDB ARM simulator so we can easily
	experiment with and debug different ARM architectural variations.
2009-10-01 21:49:22 +00:00
Ralf Corsepius
a512ed213f 2009-09-14 Ralf Corsepius <ralf.corsepius@rtems.org>
* aclocal/check-bsps.m4: Add csb337 bsp family.
2009-09-14 15:42:28 +00:00
Ralf Corsepius
18e23e9100 2009-07-23 Ralf Corsepius <ralf.corsepius@rtems.org>
* aclocal/enable-itron.m4: Default to not building itron.
2009-07-23 21:23:13 +00:00
Joel Sherrill
86abd5b984 2009-05-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* aclocal/bsp-alias.m4: Add csb637 as variant of csb337.
2009-05-28 20:09:16 +00:00
Thomas Doerfler
9647f7feac * README: Added NCS.
* Makefile.am, configure.ac, preinstall.am: Added BSP variants.
	* console/console-config.c, clock/clock-config.c, ssp/ssp.c: Fixed
	register settings.  Cleanup.
	* include/bsp.h: Added network defines and functions.
	* include/lpc24xx.h: Added AHB and EMC defines.  Fixed Ethernet status
	sizes.
	* include/system-clocks.h, misc/system-clocks.c: Added micro seconds
	delay function that uses Timer 1.  Changed PLL setup.
	* network/network.c, startup/bspreset.c, startup/linkcmds.lpc2478,
	startup/linkcmds.lpc2478_ncs, startup/linkcmds.lpc2478_ncs_ram: New
	files.
	* startup/bspstart.c: Added EMC initialization.  Changes for ROM boot.
2009-02-27 11:26:44 +00:00
Joel Sherrill
f239aa9a04 2009-02-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* aclocal/bsp-alias.m4: Add simsh2e.
2009-02-19 21:34:09 +00:00
Ralf Corsepius
9ae11656f7 2009-02-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/canonical-target-name.m4:
	Remove comment referring to HPUX9.
2009-02-06 05:54:51 +00:00
Ralf Corsepius
f3e077ef17 Remove pck6 BSP. 2009-02-05 15:59:19 +00:00
Ralf Corsepius
686cf398ee 2008-12-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/check-bsps.m4: remove stray ")" from rtl22xx_t alias.
2008-12-30 14:22:25 +00:00
Ralf Corsepius
ab92255414 Remove tic4x. 2008-12-22 03:58:22 +00:00
Joel Sherrill
7d35b7ff1a 2008-10-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* aclocal/bsp-alias.m4, aclocal/check-bsps.m4: Add h8sxsim as variant
	of h8sim.
2008-10-14 21:58:07 +00:00
Joel Sherrill
a2a40272d2 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* README.configure, aclocal/bsp-alias.m4, aclocal/check-bsps.m4: Add
	M32C port and m32csim BSP.
2008-10-02 21:44:50 +00:00
Ralf Corsepius
08ecdaa4e6 2008-10-01 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1324/bsps
        * aclocal/check-bsps.m4: Revert Joel's icecube patch.
2008-10-01 01:12:15 +00:00