URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [MERGE.PROCEDURE] - Rev 507
Go to most recent revision | Compare with Previous | Blame | View Log
## $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 cleanupto be done.=========================================================================Add an entry to ACKNOWLEDGEMENTS.Send letter with permission to distribute the BSP with RTEMS.Verify all test link.Remove compilation warnings.Make sure that all files submitted are really intended to do intothe distribution. For example, you may have a myfile.S produced bygcc -S myfile.c.=========================================================================This section of the file describes how to run the acpolish script tocheck Makefile style and construction compliance.The BSP's still apply RTEMS's old autoconf configuration. The only thingthat have changed are some details inside the Makefile.ins and some detailsin make/custom/<bsp>.cfg. Acpolish should be able to convert 4.0.0Makefile.in into new style Makefile.ins. However, sometimes acpolish hasproblems/contains bugs, which require manual intervention. There is no toolto adapt a BSP's <bsp>.cfg, but this shouldn't be a problem for you.Therefore, this is my coarse recipe to merge BSPs is:1. Copy a BSP's files and directories to appropriate directories.2. Manually run acpolish on each Makefile.in and check the output, eg:cd some_subdir/path_to_RTEMS/tools/update/acpolish < Makefile.old > Makefile.newCheck Makefile.new for correctness, evtl. edit it, then re-run acpolishagain:/path_to_RTEMS/tools/update/acpolish < Makefile.new > Makefile.inCompare Makefile.new against Makefile.in. These must not differ, if theydo, edit Makefile.new until the Makefile.in generated by re-runningacpolish on Makefile.new does not differ from the freshly generatedMakefile.in. If they differ permanently, then you probably are affectedbugs in acpolish (This happens for some styles of conditionals).This sounds much worser than it actually is, because the bugs in acpolishonly hit very seldom. Furthermore, BSPs normally only contain a fewMakefile.ins, therefore individually running acpolish should be tolerable.3. If a BSP contains tools, you have to convert its configuration toautomake manually. Typically these tools are rather simple, therefore atool's configuration applies standard automake Makefile.ams andconfigure.ins. RTEMS should contain enough examples which could serve astemplates for this (My advice: Try to avoid preinstallation andinstallation to the temporary installation tree whenever possible; Don'tforget to add all sources which do not get installed by automaketo automake's EXTRA_DIST, e.g. noinst_SCRIPTS, noinst_DATA have to be addedto EXTRA_DIST.Please let me know if you meet problems and if we/I can fix them. Iconsider acpolish to be an internal developer's and maintainer's helperscript, which was never intended to be of general use, which is why I amnot much concerned about bugs in it.Ralf.=========================================================================
Go to most recent revision | Compare with Previous | Blame | View Log
