Cross compile workarounds are breaking some kernel tests
Hijacking this issue request to provide more details about other tests which are broken due to cross compile workarounds, multiple tests affected with how we cross compile our kernels:
- fwts (details included in this issue)
- Tracepoints
Part of the workaround for cross compile is in the pipeline itself where the kernels are built and the other part is performed on the system under test where we install the kernel using the kpkginstall task (Boot test):
Pipeline: https://gitlab.com/cki-project/pipeline-definition/-/blob/main/cki_pipeline.yml#L1387
kpkginstall task: https://gitlab.com/cki-project/kernel-tests/-/blob/main/distribution/kpkginstall/runtest.sh#L420
We need to understand what changes need to happen for either the boot task and/or the pipeline to make certain kernel tests happy again.
fwts details listed below
The current fwts suite test is only running on x86_64 due to "leaking" x86_64 binaries in CKI kernel devel package. The test try to compile efi module and failed with " cannot execute binary file: Exec format error" . This seems all the build script binaries that required for building kernel module are in x86_64, not in aarch64 format.
Criteria:
- fwts can be ran on aarch64 without errors
- Test is stable for aarch64
JIRA ticket created by @ftjahjad