Skip to content

Commit

Permalink
lmp-staging: serialize do_compile of heavy tasks
Browse files Browse the repository at this point in the history
This is a work around to not compile rust and clang at same
time as it is very huge tasks.

It uses the bitbake lockfiles to run the refered tasks one at a time.
The bitbake UI can be misleading since it will inform you that the tasks
are working at the same time, which is not true because only one is
working and all the others are blocked.
I have a pending bitbake patch to improve this situation.

Signed-off-by: Jose Quaresma <[email protected]>
  • Loading branch information
quaresmajose committed Oct 17, 2022
1 parent 6918228 commit f8631c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meta-lmp-base/classes/lmp-staging.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ python __anonymous() {

if bb.data.inherits_class('go-mod', d):
d.appendVarFlag('do_compile', 'network', '1')

if pn in ["clang", "rust"]:
d.appendVarFlag('do_compile', 'lockfiles', "${TMPDIR}/lmp-hack-avoid-oom-do_compile.lock")
}

inherit ${INHERIT_KERNEL_MODSIGN}

0 comments on commit f8631c5

Please sign in to comment.