ipu6-drivers module should not try to build when CONFIG_I2C is disabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ipu6-drivers (Ubuntu) |
Fix Released
|
High
|
You-Sheng Yang | ||
Jammy |
In Progress
|
Undecided
|
Unassigned | ||
Kinetic |
Won't Fix
|
Undecided
|
Unassigned | ||
Lunar |
Won't Fix
|
Undecided
|
Unassigned | ||
Mantic |
Fix Released
|
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_
[Test Plan]
```
$ sudo apt-get install linux-headers-kvm
$ grep -nr CONFIG_
No CONFIG_
$ sudo apt-get install intel-ipu6-dkms
```
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) |
description: | updated |
description: | updated |
Changed in ipu6-drivers (Ubuntu Mantic): | |
status: | Triaged → In Progress |
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.