torizon / meta-toradex-torizon

Torizon OS OpenEmbedded Distro Layer
MIT License
5 stars 9 forks source link

image_type_torizon: parse layer information only once #64

Closed rborn-tx closed 2 months ago

rborn-tx commented 2 months ago

Obtaining layer information from Git was performed whenever variable EXTRA_OSTREE_COMMIT was expanded which caused metadata parsing to be very slow (20-30 minutes). Since layer information is not supposed to change during build, here we get the layer information only once by using the immediate expansion operator provided by Bitbake. This brings the parsing time to the usual values (1-2 minutes on a good machine).

Resolves #61

leograba commented 2 months ago

Nice! Just for curiosity's sake, do you know why we don't see this huge parsing time on kirkstone?

rborn-tx commented 2 months ago

Regarding the question of why the slow parsing doesn't seem to happen on kirkstone: I honestly have no idea :weary:.