]> git.baikalelectronics.ru Git - uboot.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)
commit5b24789e5049824749a5539852a52ed2aca125ec
tree631b32eb533290811eb06c13ee66018afd65869f
parentcd76344a1a6c0a5755303f9dee15fc356b608cba
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