Lollipop 5.1.1 error in makefile

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lollipop 5.1.1 error in makefile

603 Views
emilmyhrman
Contributor IV


Hi everyone,

since I've spent many many days on this I wanted to let you know so you don't have to.

Short version:

"make -j24 otapackage" cause random build errors

Longer version:

The otapackage generation for Lollipop (might also be applicable for M?) will start multiple "make" processes to build an otapackage for each dtb-file (device tree blob). Since there is no dependency on the "otapackage" target, running with the make jobserver enabled (i.e. make -j) this will start multiple builds at the same time causing random build errors (corrupt zip/apk-files etc...).

A simple solution to this is to add a dependency on the built files for otapackage.

Example:

In build/core/Makefile:1690

.PHONY: otapackage

-otapackage:

+otapackage: $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS)

Labels (2)
0 Kudos
1 Reply

407 Views
SergioSolis
NXP Employee
NXP Employee

Thank you for posting this information!

0 Kudos