#
|
#
|
# $Id: MERGE.PROCEDURE,v 1.2 2001-09-27 11:59:36 chris Exp $
|
# $Id: MERGE.PROCEDURE,v 1.2 2001-09-27 11:59:36 chris Exp $
|
#
|
#
|
|
|
When adding a BSP to the RTEMS tree, there is usually some cleanup
|
When adding a BSP to the RTEMS tree, there is usually some cleanup
|
to be done.
|
to be done.
|
|
|
=========================================================================
|
=========================================================================
|
|
|
Add an entry to ACKNOWLEDGEMENTS.
|
Add an entry to ACKNOWLEDGEMENTS.
|
|
|
Send letter with permission to distribute the BSP with RTEMS.
|
Send letter with permission to distribute the BSP with RTEMS.
|
|
|
Verify all test link.
|
Verify all test link.
|
|
|
Remove compilation warnings.
|
Remove compilation warnings.
|
|
|
Make sure that all files submitted are really intended to do into
|
Make sure that all files submitted are really intended to do into
|
the distribution. For example, you may have a myfile.S produced by
|
the distribution. For example, you may have a myfile.S produced by
|
gcc -S myfile.c.
|
gcc -S myfile.c.
|
|
|
=========================================================================
|
=========================================================================
|
This section of the file describes how to run the acpolish script to
|
This section of the file describes how to run the acpolish script to
|
check Makefile style and construction compliance.
|
check Makefile style and construction compliance.
|
|
|
The BSP's still apply RTEMS's old autoconf configuration. The only thing
|
The BSP's still apply RTEMS's old autoconf configuration. The only thing
|
that have changed are some details inside the Makefile.ins and some details
|
that have changed are some details inside the Makefile.ins and some details
|
in make/custom/.cfg. Acpolish should be able to convert 4.0.0
|
in make/custom/.cfg. Acpolish should be able to convert 4.0.0
|
Makefile.in into new style Makefile.ins. However, sometimes acpolish has
|
Makefile.in into new style Makefile.ins. However, sometimes acpolish has
|
problems/contains bugs, which require manual intervention. There is no tool
|
problems/contains bugs, which require manual intervention. There is no tool
|
to adapt a BSP's .cfg, but this shouldn't be a problem for you.
|
to adapt a BSP's .cfg, but this shouldn't be a problem for you.
|
|
|
Therefore, this is my coarse recipe to merge BSPs is:
|
Therefore, this is my coarse recipe to merge BSPs is:
|
|
|
1. Copy a BSP's files and directories to appropriate directories.
|
1. Copy a BSP's files and directories to appropriate directories.
|
|
|
2. Manually run acpolish on each Makefile.in and check the output, eg:
|
2. Manually run acpolish on each Makefile.in and check the output, eg:
|
cd some_subdir
|
cd some_subdir
|
/path_to_RTEMS/tools/update/acpolish < Makefile.old > Makefile.new
|
/path_to_RTEMS/tools/update/acpolish < Makefile.old > Makefile.new
|
|
|
Check Makefile.new for correctness, evtl. edit it, then re-run acpolish
|
Check Makefile.new for correctness, evtl. edit it, then re-run acpolish
|
again:
|
again:
|
/path_to_RTEMS/tools/update/acpolish < Makefile.new > Makefile.in
|
/path_to_RTEMS/tools/update/acpolish < Makefile.new > Makefile.in
|
|
|
Compare Makefile.new against Makefile.in. These must not differ, if they
|
Compare Makefile.new against Makefile.in. These must not differ, if they
|
do, edit Makefile.new until the Makefile.in generated by re-running
|
do, edit Makefile.new until the Makefile.in generated by re-running
|
acpolish on Makefile.new does not differ from the freshly generated
|
acpolish on Makefile.new does not differ from the freshly generated
|
Makefile.in. If they differ permanently, then you probably are affected
|
Makefile.in. If they differ permanently, then you probably are affected
|
bugs in acpolish (This happens for some styles of conditionals).
|
bugs in acpolish (This happens for some styles of conditionals).
|
|
|
This sounds much worser than it actually is, because the bugs in acpolish
|
This sounds much worser than it actually is, because the bugs in acpolish
|
only hit very seldom. Furthermore, BSPs normally only contain a few
|
only hit very seldom. Furthermore, BSPs normally only contain a few
|
Makefile.ins, therefore individually running acpolish should be tolerable.
|
Makefile.ins, therefore individually running acpolish should be tolerable.
|
|
|
3. If a BSP contains tools, you have to convert its configuration to
|
3. If a BSP contains tools, you have to convert its configuration to
|
automake manually. Typically these tools are rather simple, therefore a
|
automake manually. Typically these tools are rather simple, therefore a
|
tool's configuration applies standard automake Makefile.ams and
|
tool's configuration applies standard automake Makefile.ams and
|
configure.ins. RTEMS should contain enough examples which could serve as
|
configure.ins. RTEMS should contain enough examples which could serve as
|
templates for this (My advice: Try to avoid preinstallation and
|
templates for this (My advice: Try to avoid preinstallation and
|
installation to the temporary installation tree whenever possible; Don't
|
installation to the temporary installation tree whenever possible; Don't
|
forget to add all sources which do not get installed by automake
|
forget to add all sources which do not get installed by automake
|
to automake's EXTRA_DIST, e.g. noinst_SCRIPTS, noinst_DATA have to be added
|
to automake's EXTRA_DIST, e.g. noinst_SCRIPTS, noinst_DATA have to be added
|
to EXTRA_DIST.
|
to EXTRA_DIST.
|
|
|
Please let me know if you meet problems and if we/I can fix them. I
|
Please let me know if you meet problems and if we/I can fix them. I
|
consider acpolish to be an internal developer's and maintainer's helper
|
consider acpolish to be an internal developer's and maintainer's helper
|
script, which was never intended to be of general use, which is why I am
|
script, which was never intended to be of general use, which is why I am
|
not much concerned about bugs in it.
|
not much concerned about bugs in it.
|
|
|
Ralf.
|
Ralf.
|
|
|
=========================================================================
|
=========================================================================
|
|
|
|
|