Li Zhou 1d12e939d9 Debian: add kmod-opae-fpga-driver-common for common files
There are common files in the kmod-opae-fpga-driver packages for
std and rt kernel.
They are files with the same paths and names in different packages
for std/rt, which include all the files except *.ko
(ko files have different paths 5.10.0-6 vs. 5.10.0-6-rt).
They are mainly config files and aren't related with std/rt.

Because the multi kernel feature wants to install the oot kernel
drivers' packages for std and rt kernel into one rootfs, error will
be reported such as:
dpkg: error processing archive .../[KENREL MOUDLE FOR RT].deb
trying to overwrite '.../[COMMON FILE NAME]',
which is also in package [KERNEL MODULE FOR STD].

So move the common files into a new package named as
kmod-opae-fpga-driver-common.
The dependency will install the common package together with the driver
package.

Test plan:
 - PASS: Check that there aren't common files in the driver packages
         for kernel-std and kernel-rt.

 [Test together with all the patches about supporting multi-kernel
  feature (kernel part).]
 - PASS: Build std kernel and its kernel modules OK.
         Build std image OK.
         Boot on qemu OK.
         Boot on target ProLiant ML350 Gen10 OK.
 - PASS: Do above tests for kernel-rt too.

Depends-On: https://review.opendev.org/c/starlingx/tools/+/842030
Story: 2009221
Task: 45380

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Change-Id: Ic1a794c9e19b1df2a90144342fc2a715b2807c56
2022-05-23 01:35:22 -04:00
..