Difference between revisions of "Removing files from the target"
From ElphelWiki
m (Removing files from target moved to Removing files from the target) |
|
(No difference)
|
Latest revision as of 11:28, 29 November 2007
When the ported (to be able to run in the Elphel products) applications are being built, they are installed in "target" subdirectory. That directory tree is used for 2 purposes:
- it includes header files and static libraries needed for other applications to be compiled and linked (so the sequence of the subdirectories traversed by the Makefile - see subdirs.list is important).
- it includes actual files to be installed in the Elphel camera flash memory to be used at run time. Not all the files are needed there, some (like header files or static libraries) are removed when the flash images are created.
The process of removing unneeded files from the target tree relies on Axis scripts that create and maintain romfs_meta.txt files - they (among other functions) tell which files should be included or ignored from each sub directory. That mechanism is not very flexible (we may want to change it in the future) and I did not find an easy way to get rid of all "*.la" files, so currently we have to explicitly list files/directories to skip - this is done in packages/romfs_meta/common-R1_2_1/Makefile.