Romlib makefile refactoring and script rewriting
authorImre Kis <imre.kis@arm.com>
Tue, 9 Jul 2019 16:30:58 +0000 (18:30 +0200)
committerImre Kis <imre.kis@arm.com>
Mon, 22 Jul 2019 16:07:57 +0000 (18:07 +0200)
commitd8210dc67af5b8c5f17a799bc2af5186dd30ba21
treeb8d0b1759ce3e6e4eb6edb8459739d21198a2045
parent7871fff2a2a7459db89bea85e82b8ced09025fbe
Romlib makefile refactoring and script rewriting

The features of the previously existing gentbl, genvar and genwrappers
scripts were reimplemented in the romlib_generator.py Python script.
This resulted in more readable and maintainable code and the script
introduces additional features that help dependency handling in
makefiles. The assembly templates were separated from the script logic
and were collected in the 'templates' directory.

The targets and their dependencies were reorganized in the makefile and
the dependency handling of included index files is possible now.
Incremental build is available in case of modifying the index files.

Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: I79f65fab9dc5c70d1f6fc8f57b2a3009bf842dc5
14 files changed:
docs/components/romlib-design.rst
lib/romlib/Makefile
lib/romlib/gentbl.sh [deleted file]
lib/romlib/genvar.sh [deleted file]
lib/romlib/genwrappers.sh [deleted file]
lib/romlib/romlib_generator.py [new file with mode: 0755]
lib/romlib/templates/jmptbl_entry_function.S [new file with mode: 0644]
lib/romlib/templates/jmptbl_entry_function_bti.S [new file with mode: 0644]
lib/romlib/templates/jmptbl_entry_reserved.S [new file with mode: 0644]
lib/romlib/templates/jmptbl_entry_reserved_bti.S [new file with mode: 0644]
lib/romlib/templates/jmptbl_glob_var.S [new file with mode: 0644]
lib/romlib/templates/jmptbl_header.S [new file with mode: 0644]
lib/romlib/templates/wrapper.S [new file with mode: 0644]
lib/romlib/templates/wrapper_bti.S [new file with mode: 0644]