]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: make_fit_atf.py: Eliminate pyelftools dependency
authorChris Webb <chris@arachsys.com>
Tue, 16 Jul 2019 19:52:57 +0000 (20:52 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 20 Jul 2019 15:59:44 +0000 (23:59 +0800)
commitf05d5743567984b4fff6a862fc0f42760ff135da
tree631b32eb533290811eb06c13ee66018afd65869f
parentfb7b1b79c182ae00cbcdbaf56b57434479262db6
rockchip: make_fit_atf.py: Eliminate pyelftools dependency

make_fit_aft.py depends on the non-standard library pyelftools to pull
out PT_LOAD segments from ELF files. However, this is as easy to do
manually, without imposing the extra dependency on users.

Structures in the ELF file are unpacked into variables named to exactly
match the ELF spec to ensure the destructuring code is reasonably
self-documenting.

Signed-off-by: Chris Webb <chris@arachsys.com>
Reviewed-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Kever Yang <Kever.yang@rock-chips.com>
arch/arm/mach-rockchip/make_fit_atf.py