129 Commits

Author SHA1 Message Date
Pat Bernardi
d5b6443c27 Add Morello support
Issue: eng/toolchain/gnat#941
2024-06-18 20:05:32 +00:00
Vasiliy Fofanov
09bc28ef78 Take into account DESTDIR environment variable
This comes from the GitHub pull request #18
no-tn-check

Change-Id: I8a7aaf4cd3b55c721b7d8e4b67bab81c8cf0fedd
2022-08-06 21:23:04 +02:00
Cedric Landet
6aa50ba0ae Setting large code model for kernel RTS on 64 bits architectures.
The large code model which is now the default for kernel RTS
(not triggered by the large multilib anymore) on 64 bits
architectures.

TN: UB03-045
Tested-with: $ anod test cross-testsuite \
   --target=x86_64-vx7r2,7.2,vxsim-64 \
   --qualifier=rts=kernel
   $ anod test cross-testsuite \
   --target=aarch64-vx7r2,7.2,vxsim-64 \
   --qualifier=rts=kernel
   $ anod test cross-testsuite \
   --target=ppc64-vx7r2,7.2,vxsim-64 \
   --qualifier=rts=kernel
Change-Id: Ia8376112db4b3a45e3948c8803a4191f58b51c42
2022-01-13 15:44:59 +00:00
Ivan Sokolov
7042dda2bd Fix #17 2021-06-16 01:18:23 +03:00
Fabien Chouteau
2c7b96aac7 shared.gpr.in: rename XMLADA_BUILD into XMLADA_BUILD_MODE
XMLADA_BUILD clashed with the scenario variable defined in the installed
project. It is actually the equivalent of LIBRARY_TYPE but with a
different name once the project is installed.

Part of T715-030.

Change-Id: I4f2dc963acfe8a8db3e9138cc4f408f904ded01d
2020-08-04 18:28:09 +02:00
Fabien Chouteau
73957ce0c2 shared.gpr.in: introduce the XMLADA_BUILD external
This external allows xmlada*.gpr to be used from a project that defines
the BUILD external in an incompatible way.

Part of T715-030.

Change-Id: I2485bafa4f7f103721558b82232c0134ebf8f8ee
2020-07-16 15:57:56 +02:00
Pascal Obry
d8fd79270a Simplify makefile installation rules by using a variable to share options.
Also properly use two --build-var as needed now.

For Q710-013.

Change-Id: Ie58f7f0cbc267f84b3d4d98996510570719f1a61
2017-11-16 18:05:57 +01:00
Pascal Obry
9d14140c6a Install project in share/gpr instead of lib/gnat.
Part of Q710-013.

Change-Id: I0dfecd27b22ac021829166e2b7ee3fc5550507be
2017-11-15 11:37:33 +01:00
Pascal Obry
0611bd30f1 Use two build variables for the installation.
One specific to the project, one generic shared with other projects.

Part of Q710-013.

Change-Id: I28ad4448d045412a9e753105ba4e8789a4966791
2017-11-15 11:37:27 +01:00
Joel Brobecker
de01855c92 Add support for RTS= Makefile variable
This variable can be used to build XmlAda with a given RTS,
and it also adjust the installation directory where XmlAda
gets installed afterwards.

For Q802-040.

Change-Id: I54b18f184517c7eded0409c264ce8030f33d6782
2017-08-17 18:37:43 -04:00
Joel Brobecker
b4fc5342b5 use @target_alias@ for --target option and install prefix
When trying to build XmlAda for e500v2-vx6, one calls configure
with --target=e500v2-wrs-vxworks, which results in the Makefile
containing the following definition for TARGET:

    TARGET=powerpc-wrs-vxworks

This is because the --target has been canonicalized by config.sub,
and this is expected. However, this causes problems during the build,
since we then call gprbuild with --target=powerpc-wrs-vxworks
instead of the target we specified during the configure.

This patch fixes the issue by declaring a new Makefile variable
called TARGET_ALIAS, and using that for gprbuild's --target=
option, as well as the installation prefix.

Unveiled while working on O611-016.

Change-Id: I7cf3b24c48d26af0930813b1aff304dc78561aad
2017-08-04 14:41:14 -04:00
Emmanuel Briot
2802f3f3c0 Add support for passing extra switches to GPRBUILD
Needed on some platforms like Darwin for shared libs that might get
repositioned by installers.
Also useful for passing -d to monitor progress

Requested on githuba for commit 0f5b329

Change-Id: Icf78b82cd9f7bbcf81b9d3bbb11809078f4c84f1
2016-06-30 09:26:38 +02:00
Nicolas Roche
2f701b3874 Update makefile to build, install and clean static pic version
Part of P217-025

Change-Id: I3a5fd5c593b8c97c4ff41199bf4b858fb0eb4e9c
2016-02-17 12:56:49 +01:00
Nicolas Roche
7e881a5fda Add support for xmlada static pic
Part of P204-021

Change-Id: I00641908d80a6b6afe058a3763091476fbe7ea8a
2016-02-04 12:37:28 +01:00
Vasiliy Fofanov
c5ea01355b Mask errors from gprclean so that this target can always run successfully.
Change-Id: I1cb8b33448479bb7be2068232ff230698781c550
TN: OB03-038
2015-11-11 12:00:49 +01:00
Emmanuel Briot
765cacd81b Move '-m' to the GPRBUILD variable, so that scripts can override it.
In the context of the nightly builds, we do not want to use -m, since
that would not recompile properly when the runtime changes

Change-Id: Ie393a2e3b68b3568c57a435b1dfd57c7d1ee283f
2015-11-07 10:44:34 +01:00
Emmanuel Briot
227a3814a6 Reorganize the Makefile for the testsuite
We now have a single makefile, and properly separate each test that
should be visible in the nightly tests. All results are stored in a
results/ directory to help integration with the nightly tests.

O710-005
2015-07-16 15:06:11 +02:00
Emmanuel Briot
63b47c6599 Reorganize testsuites
Move all the */test/ directories to tests/*
Move all tests that potentially contain customer code or data to tests/adacore
 These will be moved to a separate git repository

Part of O527-038

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@240170 936e1b1b-40f2-da11-902a-00137254ae57
2015-07-09 15:17:03 +02:00
Pascal Obry
7d0c12be53 Remove support for building without project.
The script xmlada-config is not distributed anymore.

For O608-006.

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@239596 936e1b1b-40f2-da11-902a-00137254ae57
2015-06-16 10:05:29 +00:00
Pascal Obry
b5fe276f6b Use install name for installing xmlada.
This enable grouping all sources and objects/libraries under a single
sub-directory of include and lib respectively.

Motivated by L626-014.
For O608-006.

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@239595 936e1b1b-40f2-da11-902a-00137254ae57
2015-06-16 10:05:27 +00:00
Emmanuel Briot
44bb12c67c The tests can now be run outside of the build directory.
To run the tests, we no longer need to have run "make" first.
Instead, "make test" requires: shared.gpr and the W3C tests, and will
only recompile the sources found in */test/*, not the code of XML/Ada itself.
So will "make run_test".
A new target "run_test_and_setenv" was added for developers who need to
test the local build.

NA17-039

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@233386 936e1b1b-40f2-da11-902a-00137254ae57
2014-10-20 10:03:11 +00:00
Pascal Obry
d2a0a5cb3d Revert part of previous commit.
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@232738 936e1b1b-40f2-da11-902a-00137254ae57
2014-09-29 18:14:29 +00:00
Pascal Obry
e8a170acd8 Update and install xmlada-config script.
This was lost during the rework of the install procedure using gprinstall.
At the same time the xmlada.gpr is now installed as an artifact. Also remove
some now unused makefile's variables.

Continued work for N403-037.
For N929-003.

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@232737 936e1b1b-40f2-da11-902a-00137254ae57
2014-09-29 17:38:49 +00:00
Pascal Obry
d214ac70ea Rework the XMLAda build and install procedure.
An aggregate project is now used to build XMLAda. The builder is now
gprbuild and the installation is conducted by gprinstall. This has
permitted a large clean-up of the makefile.

For N403-037.

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@232625 936e1b1b-40f2-da11-902a-00137254ae57
2014-09-24 07:47:03 +00:00
Pascal Obry
d51d3a30bc Set default PROCESSORS to 0.
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@232624 936e1b1b-40f2-da11-902a-00137254ae57
2014-09-24 07:46:58 +00:00