96boards / meta-96boards

OpenEmbedded BSP Layer for the 96boards.org boards
MIT License
41 stars 59 forks source link

u-boot-juno: Add patch to fix Python build problem #296

Closed mrchapp closed 5 years ago

mrchapp commented 5 years ago

A problem while building from Sumo onwards was related to libfdt and using the host's Python. This was not present in Rocko, probably due to an improved host isolation that was implemented starting with Sumo.

Quoting Jon Mason, who investigated this issue and proposed this fix: The problem is an overhaul in how libfdt was done in u-boot, and this occurred in and after the v2017.07 u-boot release.

$ git log --oneline v2017.05..v2017.07 lib/libfdt/ 2bf9412 libfdt: Drop -FDT_ERR_TOODEEP 727f153 fdt: Stop building the old python libfdt module 555ba48 fdt: Rename existing python libfdt module 7e91b10 fdt: Allow swig options to be provided by Makefile a2b2caa fdt: Move header files into lib/libfdt cf2064d fdt: Add Python bindings

As you can see above, libfdt requires python. In sumo, they added the "native python" logic to the OE u-boot recipe (to correct the fallout from the libfdt changes). See patch https://git.openembedded.org/openembedded-core/commit/?id=71c9fc5a9398dc77a4e0f440a7fde346990c0475

This is what is causing the problem. The OE u-boot.inc assumes we are running 2018.01 (and is setup to build for such), while Juno u-boot is 2017.07-rc3.

Signed-off-by: Daniel Díaz daniel.diaz@linaro.org