ipu6-drivers module should not try to build when CONFIG_I2C is disabled
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
ipu6-drivers (Ubuntu) | Status tracked in Mantic | |||||
Jammy |
Confirmed
|
Undecided
|
Unassigned | |||
Kinetic |
Won't Fix
|
Undecided
|
Unassigned | |||
Lunar |
Confirmed
|
Undecided
|
Unassigned | |||
Mantic |
In Progress
|
High
|
You-Sheng Yang |
Bug Description
SRU justification:
[Impact]
This is encountered on linux kernel derivatives with fewer configuration options enabled.
First time seen on jammy:linux-
During build, it fails with the following error:
...
Building module:
cleaning build area...
make -j1 KERNELRELEASE=
Error! Bad return status for module build on kernel: 5.15.0-1030-kvm (x86_64)
Consult /var/lib/
E: ipu6-drivers/
========== /var/lib/
DKMS make.log for ipu6-drivers-
Wed Mar 8 23:42:18 UTC 2023
make -C /lib/modules/
make[1]: Entering directory '/usr/src/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
/var/lib/
/var/lib/
283 | i2c_unregister_
| ^~~~~~~
| pci_unregister_
cc1: some warnings being treated as errors
make[4]: *** [scripts/
make[3]: *** [scripts/
make[2]: *** [scripts/
make[1]: *** [Makefile:1906: /var/lib/
make[1]: Leaving directory '/usr/src/
make: *** [Makefile:37: all] Error 2
=======
./ipu6-
autopkgtest [23:42:45]: test dkms-autopkgtest: -------
autopkgtest [23:42:46]: test dkms-autopkgtest: - - - - - - - - - - results - - - - - - - - - -
dkms-autopkgtest FAIL non-zero exit status 1
autopkgtest [23:42:46]: @@@@@@@
because CONFIG_I2C=n
[Fix]
Add a rule to avoid building ipu6-drivers when CONFIG_I2C=n
[Test Plan]
Install a new version of jammy:linux-kvm (1029 for example).
apt install ipu6-drivers will fail as described above.
After the fix, it will not built at all.
Once the package is in proposed, a new adt is triggered against proposed for jammy:linux-kvm.
[Where problems could occur]
Low possibility of new issues.
[Note]
This fix is not scalable in the sense that if configuration name changes, the module has to be changed as well.
description: | updated |
Changed in ivsc-driver (Ubuntu Kinetic): | |
status: | New → Won't Fix |
no longer affects: | ivsc-driver (Ubuntu) |
no longer affects: | ivsc-driver (Ubuntu Jammy) |
no longer affects: | ivsc-driver (Ubuntu Kinetic) |
no longer affects: | ivsc-driver (Ubuntu Lunar) |
no longer affects: | ivsc-driver (Ubuntu Mantic) |
proposed fix is attached
Tested on jammy:linux: kvm-1029 jammy-kvm: ~/ipu6- drivers$ sudo dpkg -i intel-ipu6- dkms_0~ git202211220708 .278b7e3d- 0ubuntu0. 22.04.2_ amd64.deb dkms_0~ git202211220708 .278b7e3d- 0ubuntu0. 22.04.2_ amd64.deb ... 708.278b7e3d- 0ubuntu0. 22.04.2) ... 708.278b7e3d- 0ubuntu0. 22.04.2) ... 0~git2022112207 08.278b7e3d- 0ubuntu0. 22.04.2 DKMS files... dkms/ipu6- drivers/ 0~git2022112207 08.278b7e3d- 0ubuntu0. 22.04.2/ 5.15.0- 1029-kvm/ x86_64/ dkms.conf for module ipu6-drivers includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch.
ubuntu@
Selecting previously unselected package intel-ipu6-dkms.
(Reading database ... 142171 files and directories currently installed.)
Preparing to unpack intel-ipu6-
Unpacking intel-ipu6-dkms (0~git202211220
Setting up intel-ipu6-dkms (0~git202211220
Loading new ipu6-drivers-
Building for 5.15.0-1029-kvm
Building initial module for 5.15.0-1029-kvm
Error! The /var/lib/
This indicates that it should not be built.
Skipped.