buildtools: add Python pmdinfogen
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Sun, 24 Jan 2021 20:51:55 +0000 (23:51 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 25 Jan 2021 22:23:30 +0000 (23:23 +0100)
commit6c4bf8f42432d421ef162135d1e8c353a6ebe6dc
tree0888dfce65be32e19bb5e969a492103357ccd266
parent6c51ba3c42a3784b0cb5f4cafe0c5276b687b49d
buildtools: add Python pmdinfogen

Using a high-level, interpreted language simplifies maintenance and
build process. Furthermore, ELF handling is delegated to pyelftools
package. Original logic is kept, the copyright recognizes that.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Tested-by: Jie Zhou <jizh@microsoft.com>
buildtools/pmdinfogen.py [new file with mode: 0755]