Debian: qat1.7.l driver package build uses a single CPU and builds the driver twice
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
M. Vefa Bicakci |
Bug Description
Brief Description
-----------------
The Debian build for the QAT device driver uses a single CPU and builds the driver twice due to the following reasons:
The build makefile snippet (debian/rules) calls "make" directly instead of calling "$(MAKE)". The latter allows inheriting the parent make instance's parallel-job settings, but the former does not. This translates to the build system using a single CPU to build the driver. To fix this issue, the following:
override_
make
make sample-all
should be replaced with:
override_
$(MAKE)
$(MAKE) sample-all
Finally, the debian/rules makefile snippet does not disable the dh_auto_test hook (it does not override this hook). This causes the build system to call "make -j1 check VERBOSE=1" after the main build, but this rebuilds the whole driver one more time, also using a single CPU, due to the use of "-j1" and due to the apparent fact that the "check" target is recognized by the QAT driver's makefiles as another target to rebuild everything. Quoting from the driver's Makefile.in:
ALL_TARGETS = qat-driver-all quickassist-all adf-rl-all adf-ctl-all qat-service-all
...
check-am: all-am
check: check-am
all-am: Makefile config.h all-local
...
all-local: $(ALL_TARGETS)
The resolution of this issue is to define an override for dh_auto_test (in the debian/rules file) that does nothing:
override_
true
Severity
--------
Minor: The identified issues increase the build time by about 13~14 minutes (~ 2 x 7 minutes, because of the standard and preempt-rt variants of the driver build). This is admittedly a minor build optimization issue.
Note
----
I did not fill out the full bug report template. This bug report exists just so that I can publish a commit fixing this issue.
Changed in starlingx: | |
assignee: | nobody → M. Vefa Bicakci (vbicakci) |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.8.0 stx.debian stx.distro.other |
Fix proposed to branch: master /review. opendev. org/c/starlingx /kernel/ +/857741
Review: https:/